Professional Documents
Culture Documents
Linux commands
Learn how to enable repository using subscription-manager in RHEL. The article also includes steps to
register system with Red Hat, attach subscription and errors along with resolutions.
1 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
Advertise
In this article, we will walk you through step by step process to enable Red Hat repository in RHEL fresh
installed server.
You will see the above error when your subscription is not in place. Let’s go through step by step procedure
to enable repositories via subscription-manager
You can check if your system is registered with Red Hat for the subscription using below command –
# subscription-manager version
server type: This system is currently not registered.
subscription management server: Unknown
subscription management rules: Unknown
subscription-manager: 1.18.10-1.el6
python-rhsm: 1.18.6-1.el6
Here, in the �rst line of output, you can see the system is not registered. So, let’s start with the registering
system. You need to use the subscription-manager command with register switch. You need to use your
Red Hat account credentials here.
2 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
If you are getting above error then your server is not able to reach RedHat. Check internet connection & if
you are able to resolve site names. Sometimes even if you are able to ping the subscription server, you will
see this error. This might be because you have the proxy server in your environment. In such a case, you
need to add its details in �le /etc/rhsm/rhsm.conf . Below proxy details should be populated :
Once you are done, recheck if subscription-manager taken up new proxy details by using below command
–
[rhsm]
baseurl = [https://cdn.redhat.com]
ca_cert_dir = [/etc/rhsm/ca/]
consumercertdir = [/etc/pki/consumer]
entitlementcertdir = [/etc/pki/entitlement]
full_refresh_on_yum = [0]
manage_repos = [1]
pluginconfdir = [/etc/rhsm/pluginconf.d]
plugindir = [/usr/share/rhsm-plugins]
productcertdir = [/etc/pki/product]
repo_ca_cert = /etc/rhsm/ca/redhat-uep.pem
report_package_profile = [1]
3 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
[rhsmcertd]
Home Disclaimer Contact Archives About Subscribe Support
autoattachinterval = [1440]
certcheckinterval = [240]
Advertise
[logging]
default_log_level = [INFO]
You will see the above error if you are adding the server to your Red Hat account for the �rst time. Go to the
URL and accept the terms. Come back to the terminal and try again.
Bingo! The system is registered with Red Hat now. You can again verify it with version switch.
As you can see subscription-manager couldn’t found any repositories, you need to attach subscriptions to
your server. Once the subscription is attached, subscription-manager will be able to list repositories under
it.
4 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
To attach subscription, check all available subscriptions for your server with below command –
Home Disclaimer Contact Archives About Subscribe Support
You will get the list of such subscriptions available for your server. You need to read through what it
provides and note down Pool ID of subscriptions that are useful/required for you.
If you are not sure which one to pick, you can simply attach subscriptions automatically which are best
suited for your server with below command –
5 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
Advertise
root@kerneltalks # subscription-manager repos --enable rhel-6-server-rhv-4-agent-beta-debu
Repository 'rhel-6-server-rhv-4-agent-beta-debug-rpms' is enabled for this system.
That’s it. You are done. You can list repositories with yum command and con�rm.
Related stu�:
• Highest size �les in mount point
• How to enter single user mode in SUSE 12 Linux?
• How to boot SPYRUS WorkSafe Pro Linux2Go drive
• How to disable GUI in SUSE Linux
• How to execute command inside Docker container
• How to add UUID entry in /etc/fstab in Linux
• bdf command formatted output in hpux
• How to convert JKS �le to KEY �le for Apache
• How to disable iptables �rewall temporarily
• How to remove product channels in Suse Manager
• 4 steps guide for SMTP con�guration in HPUX
• How to map Linux disk to vmware disk
If you like my tutorials and if they helped you in any way, then
Comments
6 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
Reply
mahesha says
September 23, 2020 at 1:38 pm
Reply
Alexandre says
August 29, 2019 at 7:21 pm
Reply
mahesha says
September 23, 2020 at 1:38 pm
Reply
7 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
Reply
Agent for Linux has been tested on Ubuntu 18.04, 19.10, Debian 10 and Linux Mint 19.3.
Other distributions might require further dependencies. Alternately, extra superior customers
with speci�c server needs should consider Debian. Who ought to use this:
ClearOS is a devoted Linux server operating.
In the same manner, use ‘cls’ for the primary argument for the class technique.
Documenting every technique with proper speci�cation of parameters,
return sort, and data types. All managed disks running Cloud PCs are encrypted, all
stored knowledge is encrypted at rest, and all network tra�c
to and from your Cloud PCs is also encrypted. Use tuples when data
is non-changeable, dictionaries when you want to map
things, and lists in case your data can change later on. This will not assist that a lot on a
pre-compiled Arch Linux kernel, since a decided attacker might simply download the kernel
bundle and get the symbols manually from there, but if you are compiling your personal kernel,
this may
also help mitigating native root exploits. In this text we are going to learn about a few of the
bene�ts of using
Amazon Web Services (AWS) and easy methods to dynamically create virtual machines (EC2) that
will help with these limitations in minutes.
One among the nice advantages of using EC2 is the
�nancial savings in administrative value, planning and funding in further-hardware that is
not necessary, which turns corporations large costs
into much smaller one.
8 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
Reply
Home Disclaimer Contact Archives About Subscribe Support
Advertise
ABKGOUD says
April 18, 2022 at 9:33 pm
Reply
Name * Email *
POST COMMENT
This site uses Akismet to reduce spam. Learn how your comment data is processed.
9 of 10 02/01/2023 10:08
How to enable repository using subscription-manager in RHEL - Kernel... https://kerneltalks.com/howto/how-to-enable-repository-using-subscript...
* indicates required
Name
Advertise
Email Address *
SUBSCRIBE
10 of 10 02/01/2023 10:08