Install Red Hat Linux and Subscription Manager
1. Install Red Hat Enterprise Linux:
- Obtain the RHEL installation ISO from the Red Hat Customer Portal.
- Create a bootable USB drive or DVD from the ISO.
- Boot the system from the USB drive or DVD.
- Follow the on-screen instructions to install RHEL, including configuring disk partitions, selecting software packages, and setting up user accounts.
2. Register and Enable Red Hat Subscription:
- After installing RHEL, you need to register your system with Red Hat to enable access to software updates and support.
- Open a terminal and run the following command to register your system:
subscription-manager register
- Enter your Red Hat account credentials when prompted.
3. Attach a Subscription:
- After registering, attach a subscription to your system. You can view available subscriptions with:
subscription-manager list –available
- Attach a subscription with:
subscription-manager attach –pool=POOL_ID
- Replace
POOL_ID
with the ID of the subscription you want to attach.
4. Enable Repositories:
- Enable the necessary repositories for software updates and packages:
subscription-manager repos –enable=rhel-8-for-x86_64-baseos-rpms –enable=rhel-8-for-x86_64-appstream-rpms
- Adjust the repository names according to your RHEL version and architecture.
5. Check Subscription Status:
- Verify the subscription status of your system:
subscription-manager status
- Ensure that the status is “Current” to indicate that the system is subscribed and can receive updates.
6. Update Your System:
- Update the system to install any available updates:
yum update
7. Configure Automatic Updates (Optional):
- You can configure Subscription Manager to automatically apply updates:
subscription-manager config –rhsm.auto_enable_yum_plugins=1
8. Verify Installation:
- Verify that your system is registered and receiving updates:
yum repolist
- This command will show the repositories enabled and the packages available for installation.
By following these steps, you can install Red Hat Enterprise Linux and configure Subscription Manager to manage software updates and subscriptions for your system.