To enable a Red Hat Enterprise Linux (RHEL) subscription, you register your system with Red Hat Subscription Management and attach the subscription that covers your system. This is done with the subscription-manager command-line tool, which is included with RHEL by default. Below is the complete process, along with common issues and how to verify that your subscription is active.
Background: Why RHEL Requires a Subscription
RHEL is a commercial Linux distribution. Unlike free community distributions, Red Hat provides enterprise features such as security patches, technical support, and compliance certifications. A subscription grants you access to the Red Hat CDN (Content Delivery Network) for package downloads and updates. Without an active subscription, you cannot install packages from the official repositories, and the system will not receive critical security fixes.
Red Hat offers several subscription models, including self-supported (for developers) and paid tiers with support. All of them require registration through Subscription Management.
How Subscription Management Works
Red Hat Subscription Management (RHSM) is the service that tracks your subscriptions and links them to your systems. When you register a system, it is associated with your Red Hat account. You then attach a subscription, which is essentially a license that allows the system to access repositories and receive updates.
The main tool is subscription-manager. It communicates with the Red Hat Customer Portal or a local Subscription Asset Manager (SAM) server. The system stores its subscription status in local files, and the subscription-manager commands query and modify that state.
Step-by-Step: Enabling Your Subscription
Before you begin, make sure you have a Red Hat account and an active subscription. If you are using a free developer subscription, you can create one at the Red Hat Developer portal.
- Register the system
Run the following command as root:subscription-manager register --username--password
If you have multi-factor authentication enabled, you may need to append--forceor use an activation key instead (see below). - Attach a subscription
After registration, find your available subscriptions:subscription-manager list --available
Note the Pool ID of the subscription you want. Then attach it:subscription-manager attach --pool=
Alternatively, to automatically attach a compatible subscription, run:subscription-manager attach --auto - Verify the subscription
Check that the system is now subscribed:subscription-manager status
You should see a message indicating that the system is fully subscribed. Also, check the identity:subscription-manager identity - Enable repositories (if needed)
By default, the base OS repository is enabled. To see all repositories:subscription-manager repos --list
Enable a specific repository (e.g., for AppStream):subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
Once these steps are complete, you can install packages with dnf as normal.
Using Activation Keys for Automation
If you are provisioning many systems, typing usernames and passwords is inefficient and insecure. Red Hat provides activation keys, which are stored in the Customer Portal under Systems > Activation Keys. An activation key bundles a username, a list of subscriptions, and repository settings. To use it:
subscription-manager register --activationkey= --org=
This registers the system without exposing a password. The organization ID is found in the same portal section.
Common Problems and Fixes
Several issues can arise during subscription management. Here are the most frequent and how to resolve them.
- “Unable to connect to subscription service”
Check your network connection and firewall. The system must reachsubscription.rhsm.redhat.comon port 443. If you use a proxy, set it in/etc/rhsm/rhsm.conf. - “No available subscriptions”
Ensure the subscription is not already used by another system. You can release it from the old system or from the Customer Portal. Also, verify that the subscription type matches your architecture (e.g., x86_64 vs. ARM). - “System is not subscribed” after attach
Sometimes the attach command fails silently. Runsubscription-manager attach --autoagain, or check if you have multiple subscriptions and need to specify the pool ID. - Repositories not showing
Runsubscription-manager refreshto pull the latest repository data. If still missing, check that the subscription includes the desired repositories (e.g., AppStream for RHEL 8).
Costs and Subscription Types
RHEL subscriptions are not free, except for the developer subscription for individual developers (up to 16 systems) and the no-cost Red Hat Enterprise Linux for Open Source Infrastructure (for production use by open-source projects). Paid subscriptions are tiered by support level and number of systems. For most users, the self-supported developer subscription is sufficient for learning and testing. For production, you typically need a Standard or Premium subscription that includes technical support and service-level agreements.
Pricing is not public and varies by region and reseller; you must contact Red Hat or a partner for a quote. The subscription cost covers access to updates, support, and compliance tools like Insights.
Alternatives to Subscription Manager
If you prefer a graphical interface, the subscription-manager-gui package provides a desktop application. However, Red Hat has deprecated it in favor of the command-line tools. For managing many systems, Red Hat Satellite offers centralized subscription management, but it is a separate product with its own licensing.
Another alternative is to use the Red Hat Customer Portal’s web interface to manage subscriptions and then run subscription-manager attach --auto on each system, but the CLI remains the primary method.
Verifying Your Subscription Status
To ensure everything is working, use these commands:
subscription-manager status– shows overall subscription status (Subscribed, Not Subscribed, etc.)subscription-manager list --consumed– shows which subscriptions are attached to this systemdnf repolist– lists enabled repositories; if you see the base OS and AppStream repos, you are good to go
If the status says “Not Subscribed,” repeat the attach step. If it says “Unknown,” the system may not have network access to check with the server; run subscription-manager refresh.
Frequently Asked Questions
Do I need a subscription to use RHEL?
Yes, to receive updates and install packages from the official repositories, you need an active subscription. Without one, you can still install RHEL and run it, but you will not get security patches or support.
Can I use a free developer subscription?
Yes, Red Hat offers a no-cost developer subscription for individual developers. It includes RHEL and allows up to 16 systems. You can sign up at the Red Hat Developer portal.
How do I unregister a system?
To remove a system from your account, run subscription-manager unregister as root. This releases the subscription so it can be used elsewhere.
What is the difference between registering and subscribing?
Registration associates the system with your Red Hat account (creates an identity). Subscribing attaches a specific subscription (entitlement) to that system, which grants access to repositories. Both are required.
Why can’t I enable AppStream repository?
If the AppStream repository is not listed, your subscription may not include it, or you may need to refresh the repository list. Run subscription-manager refresh and then subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms (adjust for your RHEL version and architecture).
Can I use subscription-manager with a local Satellite server?
Yes, you can configure subscription-manager to use a Red Hat Satellite server instead of the hosted Subscription Management. This requires setting the server hostname in /etc/rhsm/rhsm.conf and using the appropriate organization and activation keys.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Gadgets After Support Ends: Do They Improve?
- Delete Google Search Results About You
- OnePlus Buds Pro 3 Price Drop: Are They Worth It?
- Cloud Migration Ways to Prepare
- Remote Work Productivity Hacks That Actually Work
- Epic Games Removes Dark and Darker? Fact Check