How To Get One Year Free Red Hat Subscription - CentLinux

Latest

Monday, 15 February 2021

How To Get One Year Free Red Hat Subscription

How To Get One Year Free Red Hat Subscription

Red Hat Enterprise Linux (RHEL) is a commercial Linux distro, In this article, you will learn how to get one year free red hat subscription.

 

Problem Definition:

Almost every Linux user has encounter the following error message on a Red Hat Enterprise Linux server, while trying to install a software package by using dnf command.

[root@rhel8 ~]# dnf update -y Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: There are no enabled repos.

Many Linux users think that, there must be a Red Hat subscription cost and they prefer to switch to other free Linux distro.

Up-till now the most preferred choice of RHEL based users is the CentOS Linux, that was the largest community supported, free and 100% binary compatible fork of RHEL.

As the CentOS Linux is discontinued and the CentOS Linux alternatives are currently on the way such as AlmaLinux (Beta Released) and RockyLinux. The users are now stucked with the Red Hat Enterprise Linux.

Luckily, The RHEL is now offering 1 year free subscription to Individuals for up to 16 Computer systems.

01-acquire-one-year-free-red-hat-subscription-developer-account

In this article, we will show you how simple it is to get one year free Red Hat subscription for your RHEL 8 server.

 

Sign Up for a Red Hat Developer Account:

First of all you are required to create a Red Hat developer account.

You can sign up for a Red Hat Developer account free of cost at their official website.

02-acquire-one-year-free-red-hat-subscription-developer-sign-up

After successful sign up with Red Hat, you should note down your Developer login credentials. You will need these credentials later to register your RHEL server with Red Hat Subscription Manager.

 

Register RHEL 8 server with Red Hat Subscription Manager:

Connect to your RHEL 8 server as root user by using a ssh client.

The necessary commands to interact with Red Hat Subscription Manager are already installed on standard and minimal RHEL 8 operating systems.

Execute the following command at Linux Bash prompt to initiate the Registration process for your RHEL 8 server.

[root@rhel8 ~]# subscription-manager register Registering to: subscription.rhsm.redhat.com:443/subscription Username: centlinux Password: The system has been registered with ID: 89a88c49-fe24-46d2-9231-2723b03bb7ac The registered system name is: rhel8.centlinux.com

Red Hat Subscription Manager requires the Login credentials. You may use your Red Hat Developer account for this purpose.

After successful registration, execute the following command to acquire the free Red Hat subscription.

[root@rhel8 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed

Your system is successfully subscribed for the Red Hat subscription.

Check the details of Red Hat subscriptions on your RHEL 8 server.

[root@rhel8 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.0 Arch: x86_64 Status: Subscribed Status Details: Starts: 02/14/2021 Ends: 02/13/2022

 

Update RHEL 8 Software Packages:

To test your Red Hat subscription, you can execute dnf command and update your Linux server.

Build cache for yum repositories.

[root@rhel8 ~]# dnf makecache Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStre 244 kB/s | 25 MB 01:44 Red Hat Enterprise Linux 8 for x86_64 - BaseOS 242 kB/s | 27 MB 01:54 Last metadata expiration check: 0:00:12 ago on Sun 14 Feb 2021 12:52:05 PM EST. Metadata cache created.

Update RHEL 8 software packages by using dnf command.

[root@rhel8 ~]# dnf upgrade -y ... python3-subscription-manager-rhsm-1.27.16-1.el8.x86_64 kpartx-0.8.4-5.el8.x86_64 bash-4.4.19-12.el8.x86_64 libssh-0.9.4-2.el8.x86_64 elfutils-default-yama-scope-0.180-1.el8.noarch platform-python-pip-9.0.3-18.el8.noarch libgcrypt-1.8.5-4.el8.x86_64 pciutils-libs-3.6.4-2.el8.x86_64 libfdisk-2.32.1-24.el8.x86_64 libsss_sudo-2.3.0-9.el8.x86_64 filesystem-3.8-3.el8.x86_64 python3-libdnf-0.48.0-5.el8.x86_64 sssd-client-2.3.0-9.el8.x86_64 glibc-2.28-127.el8.x86_64 subscription-manager-1.27.16-1.el8.x86_64 openssh-server-8.0p1-5.el8.x86_64 grub2-common-1:2.02-90.el8.noarch libffi-3.1-22.el8.x86_64 dnf-plugins-core-4.0.17-5.el8.noarch file-libs-5.33-16.el8.x86_64 libxml2-2.9.7-8.el8.x86_64 libtalloc-2.3.1-2.el8.x86_64 logrotate-3.14.0-4.el8.x86_64 python3-rpm-4.14.3-4.el8.x86_64 python3-syspurpose-1.27.16-1.el8.x86_64 lshw-B.02.19.2-2.el8.x86_64 device-mapper-8:1.02.171-5.el8.x86_64 libsemanage-2.9-3.el8.x86_64 numactl-libs-2.0.12-11.el8.x86_64 kbd-2.0.4-10.el8.x86_64 rpm-libs-4.14.3-4.el8.x86_64 libcom_err-1.45.6-1.el8.x86_64 cyrus-sasl-lib-2.1.27-5.el8.x86_64 elfutils-libelf-0.180-1.el8.x86_64 subscription-manager-rhsm-certificates-1.27.16-1.el8.x86_64 libcap-2.26-4.el8.x86_64 libmount-2.32.1-24.el8.x86_64 lz4-libs-1.8.3-2.el8.x86_64 dnf-plugin-subscription-manager-1.27.16-1.el8.x86_64 libkcapi-hmaccalc-1.2.0-2.el8.x86_64 dhcp-libs-12:4.3.6-41.el8.x86_64 brotli-1.0.6-2.el8.x86_64 grub2-tools-extra-1:2.02-90.el8.x86_64 crypto-policies-20200713-1.git51d1222.el8.noarch tar-2:1.30-5.el8.x86_64 libusbx-1.0.23-4.el8.x86_64 libteam-1.31-2.el8.x86_64 libsss_certmap-2.3.0-9.el8.x86_64 python3-gobject-base-3.28.3-2.el8.x86_64 initscripts-10.00.9-1.el8.x86_64 authselect-1.2.1-2.el8.x86_64 libstdc++-8.3.1-5.1.el8.x86_64 libdnf-0.48.0-5.el8.x86_64 shadow-utils-2:4.6-11.el8.x86_64 libsss_nss_idmap-2.3.0-9.el8.x86_64 libsss_idmap-2.3.0-9.el8.x86_64 python3-hawkey-0.48.0-5.el8.x86_64 pam-1.3.1-11.el8.x86_64 gpgme-1.13.1-3.el8.x86_64 python3-dnf-plugins-core-4.0.17-5.el8.noarch dracut-049-95.git20200804.el8.x86_64 rpm-plugin-selinux-4.14.3-4.el8.x86_64 libgomp-8.3.1-5.1.el8.x86_64 openssh-clients-8.0p1-5.el8.x86_64 zlib-1.2.11-16.el8_2.x86_64 python3-firewall-0.8.2-2.el8.noarch coreutils-common-8.30-8.el8.x86_64 nftables-1:0.9.3-16.el8.x86_64 libblkid-2.32.1-24.el8.x86_64 dracut-squash-049-95.git20200804.el8.x86_64 libseccomp-2.4.3-1.el8.x86_64 python3-libxml2-2.9.7-8.el8.x86_64 device-mapper-event-libs-8:1.02.171-5.el8.x86_64 dbus-1:1.12.8-11.el8.x86_64 kbd-misc-2.0.4-10.el8.noarch libpcap-14:1.9.1-4.el8.x86_64 python3-librepo-1.12.0-2.el8.x86_64 iprutils-2.4.19-1.el8.x86_64 pcre2-10.32-2.el8.x86_64 dhcp-client-12:4.3.6-41.el8.x86_64 krb5-libs-1.18.2-5.el8.x86_64 procps-ng-3.3.15-3.el8.x86_64 sqlite-libs-3.26.0-11.el8.x86_64 libsolv-0.7.11-1.el8.x86_64 dnf-4.2.23-4.el8.noarch sssd-kcm-2.3.0-9.el8.x86_64 libxslt-1.1.32-5.el8.x86_64 elfutils-libs-0.180-1.el8.x86_64 cryptsetup-libs-2.3.3-2.el8.x86_64 libkcapi-1.2.0-2.el8.x86_64 dmidecode-1:3.2-6.el8.x86_64 grub2-tools-minimal-1:2.02-90.el8.x86_64 lvm2-8:2.03.09-5.el8.x86_64 vim-minimal-2:8.0.1763-15.el8.x86_64 util-linux-2.32.1-24.el8.x86_64 librepo-1.12.0-2.el8.x86_64 rpm-plugin-systemd-inhibit-4.14.3-4.el8.x86_64 iproute-5.3.0-5.el8.x86_64 device-mapper-persistent-data-0.8.5-4.el8.x86_64 hwdata-0.314-8.6.el8.noarch openssh-8.0p1-5.el8.x86_64 platform-python-setuptools-39.2.0-6.el8.noarch libpsl-0.20.2-6.el8.x86_64 teamd-1.31-2.el8.x86_64 xfsprogs-5.0.0-4.el8.x86_64 platform-python-3.6.8-31.el8.x86_64 openldap-2.4.46-15.el8.x86_64 bind-export-libs-32:9.11.20-5.el8.x86_64 dbus-common-1:1.12.8-11.el8.noarch python3-dnf-4.2.23-4.el8.noarch glibc-common-2.28-127.el8.x86_64 lvm2-libs-8:2.03.09-5.el8.x86_64 rpm-4.14.3-4.el8.x86_64 python3-libselinux-2.9-4.el8_3.x86_64 libselinux-2.9-4.el8_3.x86_64 libselinux-utils-2.9-4.el8_3.x86_64 freetype-2.9.1-4.el8_3.1.x86_64 iwl3160-firmware-1:25.30.13.0-101.el8_3.1.noarch iwl6000-firmware-9.221.4.1-101.el8_3.1.noarch iwl5000-firmware-8.83.5.1_1-101.el8_3.1.noarch iwl7260-firmware-1:25.30.13.0-101.el8_3.1.noarch NetworkManager-libnm-1:1.26.0-12.el8_3.x86_64 openssl-libs-1:1.1.1g-12.el8_3.x86_64 iwl2000-firmware-18.168.6.1-101.el8_3.1.noarch kexec-tools-2.0.20-34.el8_3.1.x86_64 microcode_ctl-4:20200609-2.20201112.1.el8_3.x86_64 gnutls-3.6.14-7.el8_3.x86_64 iwl4965-firmware-228.61.2.24-101.el8_3.1.noarch iptables-1.8.4-15.el8_3.3.x86_64 iwl6050-firmware-41.28.5.1-101.el8_3.1.noarch iptables-ebtables-1.8.4-15.el8_3.3.x86_64 iwl6000g2a-firmware-18.168.6.1-101.el8_3.1.noarch systemd-pam-239-41.el8_3.1.x86_64 iwl105-firmware-18.168.6.1-101.el8_3.1.noarch systemd-libs-239-41.el8_3.1.x86_64 iwl135-firmware-18.168.6.1-101.el8_3.1.noarch iwl2030-firmware-18.168.6.1-101.el8_3.1.noarch iwl1000-firmware-1:39.31.5.1-101.el8_3.1.noarch libcurl-7.61.1-14.el8_3.1.x86_64 tuned-2.14.0-3.el8_3.1.noarch iwl3945-firmware-15.32.2.9-101.el8_3.1.noarch curl-7.61.1-14.el8_3.1.x86_64 systemd-239-41.el8_3.1.x86_64 iptables-libs-1.8.4-15.el8_3.3.x86_64 NetworkManager-tui-1:1.26.0-12.el8_3.x86_64 NetworkManager-1:1.26.0-12.el8_3.x86_64 iwl5150-firmware-8.24.2.2-101.el8_3.1.noarch NetworkManager-team-1:1.26.0-12.el8_3.x86_64 linux-firmware-20200619-101.git3890db36.el8_3.noarch systemd-udev-239-41.el8_3.1.x86_64 iwl100-firmware-39.31.5.1-101.el8_3.1.noarch openssl-1:1.1.1g-12.el8_3.x86_64 kernel-tools-4.18.0-240.10.1.el8_3.x86_64 kernel-tools-libs-4.18.0-240.10.1.el8_3.x86_64 python3-perf-4.18.0-240.10.1.el8_3.x86_64 tzdata-2021a-1.el8.noarch sudo-1.8.29-6.el8_3.1.x86_64 selinux-policy-targeted-3.14.3-54.el8_3.2.noarch selinux-policy-3.14.3-54.el8_3.2.noarch Installed: kernel-modules-4.18.0-240.10.1.el8_3.x86_64 kernel-4.18.0-240.10.1.el8_3.x86_64 kernel-core-4.18.0-240.10.1.el8_3.x86_64 crypto-policies-scripts-20200713-1.git51d1222.el8.noarch elfutils-debuginfod-client-0.180-1.el8.x86_64 memstrack-0.1.11-1.el8.x86_64 mozjs60-60.9.0-4.el8.x86_64 python3-nftables-1:0.9.3-16.el8.x86_64 libmodulemd-2.9.4-2.el8.x86_64 libzstd-1.4.4-1.el8.x86_64 python3-setuptools-wheel-39.2.0-6.el8.noarch python3-pip-wheel-9.0.3-18.el8.noarch libssh-config-0.9.4-2.el8.noarch grub2-tools-efi-1:2.02-90.el8.x86_64 Complete!

Check the updated Linux Kernel and operating system versions.

[root@rhel8 ~]# uname -r 4.18.0-80.el8.x86_64 [root@rhel8 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa)

 

Conclusion:

You have successfully get one year free red hat subscription for your RHEL 8 server.

No comments:

Post a comment