How to use the RHEL / CentOS Media as the Repository.

March 6, 2018 at 10:39 am Leave a comment

When you don’t have an active subscription with RHN , you will not be ale to install any packages via yum command. In that case the only way to overcome this situation is to use your installation CD or the binary CD you have downloaded from the RHEL website.

1.
#mount /dev/sr0 /mnt

2.Copy the media.repo file from the root of the mounted directory to /etc/yum.repos.d/ and set the permissions to something sane,

#cp /mnt/media.repo /etc/yum.repos.d/rhel7dvd.repo
#chmod 644 /etc/yum.repos.d/rhel7dvd.repo

3.Edit the new repo file, changing the gpgcheck=0 setting to 1 and adding the following 3 lines

enabled=1
baseurl=file:///mnt/¬† –> Here provide the mount point you used in Step1—>
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4.

# yum clean all
# subscription-manager clean

5. Once the above steps are completed you could begin with your familiar yum installation.

NOTE: I have not tried these steps in CentOS , but I believe it is portable and applicable.

 

Advertisements

Entry filed under: Linux. Tags: , , , .

How to recover from FWS and DAG Member failure in 2 Node DAG Using RHEL Subscription in Virtual Data Center.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trackback this post  |  Subscribe to the comments via RSS Feed


Archives

Categories

Follow Hope you like it.. on WordPress.com

Blog Stats

  • 23,586 hits

%d bloggers like this: