Mateen Ahmed

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 11 June 2013

Set up yum repository for locally-mounted DVD onRHEL 5

Posted on 01:48 by Unknown
Mount the RHEL 5 installation ISO somewhere like /media/rhel5dvd, e.g.:


  1. Mount the RHEL 5 installation ISO somewhere like /media/rhel5dvd, e.g.:

    # mount -o loop RHEL5.9-Server-20121129.0-x86_64-DVD.iso /media/rhel5dvd
  2. Check the numeric value found on the first line of the .discinfo file from the mounted DVD
    # head -n1 /media/rhel5dvd/.discinfo
    1354216429.587870
  3. Create a new file in /etc/yum.repos.d/, e.g. /etc/yum.repos.d/dvd.repo and add the following content to it
    [dvd-Server]
    mediaid=1354216429.587870
    name=RHEL 5 Server DVD
    baseurl=file:///media/rhel5dvd/Server
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    enabled=1
    gpgcheck=1
    Customize the file appropriately, i.e.:
    • The value of baseurl must match up with where the DVD was mounted in step #1
    • If using RHEL Client or Workstation, the last directory in the baseurl will need to be changed to Client
    • Set the numeric value found from .discinfo file to mediaid.
  4. As a final step, it might be a good idea to run the command yum clean all once Also note that if the system is registered to Red Hat Network, yum can be run with the --noplugins option to prevent it from connecting to RHN
  5. Optional: To configure access to the supplementary packages in the directories Cluster, ClusterStorage, VT, add additional repositories for them in the same file, e.g.:
    [dvd-cluster]
    mediaid=1354216429.587870
    name=DVD for RHEL5 - Cluster
    baseurl=file:///media/rhel5dvd/Cluster
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    enabled=1
    gpgcheck=1

    [dvd-cluster-storage]
    mediaid=1354216429.587870
    name=DVD for RHEL5 - ClusterStorage
    baseurl=file:///media/rhel5dvd/ClusterStorage
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    enabled=1
    gpgcheck=1

    [dvd-vt]
    mediaid=1354216429.587870
    name=DVD for RHEL5 - VT
    baseurl=file:///media/rhel5dvd/VT
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    enabled=1
    gpgcheck=1
    Note: Make sure to customize the above as in step #3.
  6. Optional and specific to RHEL5 Client: To configure access to the packages in the Workstation directory, add a repo stanza to the above file for that as well, e.g.:
    [dvd-workstation]
    mediaid=1354233478.680018
    name=DVD for RHEL5 - Workstation
    baseurl=file:///media/rhel5dvd/Workstation
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    enabled=1
    gpgcheck=1

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

Blog Archive

  • ▼  2013 (19)
    • ►  July (1)
    • ▼  June (6)
      • Most Common Apache Tuning Parameters :
      • How to Assign the IP Address and Default gateway i...
      • Key Based / Password Less SSH Authentication on Li...
      • How To Add a non-login User in Linux so that he/sh...
      • What is yum and how do I use it?
      • Set up yum repository for locally-mounted DVD onRH...
    • ►  May (1)
    • ►  April (11)
  • ►  2012 (12)
    • ►  December (11)
    • ►  November (1)
Powered by Blogger.

About Me

Unknown
View my complete profile