RND GROUP LIMITED HomeCapabilitiesAbout usContact us

How to use install from local media using yum

January 18th, 2007

The following allows you to configure yum so you are able to install from local media (assuming you have a local mirror for Base and or Updates).

 

  1. Ensure you have a full mirror or copy of the repository you wish to install from, mount the mirror in a local location (we will assume /mnt/mirrors/centos-cd)

 

  1. Modify the respective yum repository configuration file (in /etc/yum.repo.d) for example /etc/yum.repo.d/CentOS-Base.repo. Under the respective container comment out any mirrorlist and or baseurl configuration lines.  Add baseurl=file:///mnt/mirrors/centos-cd (or the respective location to the mirror)

 

  1. You can now install or update file from your repository

 

    1. Yum groupinstall ‘GNOME Desktop Environment’

 

  1. If you haven’t copied the updates repository you may need to disable it

 

    1. Yum –disablerepo=update groupinstall ‘GNOME Desktop Environment’

 

Notes

 

  • Ensure you have a full and complete mirror of the repositories you wish to serve locally otherwise you will run into consistency problems