0% found this document useful (0 votes)
30 views2 pages

Command

The document outlines the process of registering a system with Red Hat Subscription Management and enabling the EPEL repository on RHEL 9. It includes commands for registration, refreshing local data, attaching subscriptions, and installing the EPEL release package. Additionally, it highlights the importance of enabling the CodeReady Builder repository for EPEL packages.

Uploaded by

Prashant Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Command

The document outlines the process of registering a system with Red Hat Subscription Management and enabling the EPEL repository on RHEL 9. It includes commands for registration, refreshing local data, attaching subscriptions, and installing the EPEL release package. Additionally, it highlights the importance of enabling the CodeReady Builder repository for EPEL packages.

Uploaded by

Prashant Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

SUBSCRIPTION REGISTARTION

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@mypc ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: lti_cicg
Password:
The system has been registered with ID: ecb7a038-5e51-4823-8157-83821f172c34
The registered system name is: mypc.example.com

[root@mypc ~]# subscription-manager refresh


All local data refreshed

[root@mypc ~]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed

EPEL Repository Enable on RHEL 9


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@mypc ~]# yum repolist
Updating Subscription Management repositories.
repo id repo name
rhel-9-for-x86_64-appstream-rpms Red Hat
Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms Red Hat
Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
[root@mypc ~]# subscription-manager repos --enable codeready-builder-for-rhel-9-$
(arch)-rpms
Repository 'codeready-builder-for-rhel-9-x86_64-rpms' is enabled for this system.
[root@mypc ~]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-
latest-9.noarch.rpm
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)
2.4 MB/s | 4.2 MB 00:01
epel-release-latest-9.noarch.rpm
13 kB/s | 18 kB 00:01
Dependencies resolved.
===================================================================================
===================================================================================
====
Package Architecture
Version Repository
Size
===================================================================================
===================================================================================
====
Installing:
epel-release noarch 9-
4.el9 @commandline
18 k

Transaction Summary
===================================================================================
===================================================================================
====
Install 1 Package

Total size: 18 k
Installed size: 25 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : epel-release-9-4.el9.noarch
1/1
Running scriptlet: epel-release-9-4.el9.noarch
1/1
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

Verifying : epel-release-9-4.el9.noarch
1/1
Installed products updated.

Installed:
epel-release-9-4.el9.noarch

Complete!
[root@mypc ~]# yum repolist
Updating Subscription Management repositories.
repo id repo
name
codeready-builder-for-rhel-9-x86_64-rpms Red
Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)
epel Extra
Packages for Enterprise Linux 9 - x86_64
rhel-9-for-x86_64-appstream-rpms Red
Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms Red
Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
[root@mypc ~]#
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++

You might also like