How to use install from local media using yum
January 18th, 2007The 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).
- 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)
- 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)
- You can now install or update file from your repository
- Yum groupinstall ‘GNOME Desktop Environment’
- If you haven’t copied the updates repository you may need to disable it
- 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
