Procedure
You must be running yum v. 3.2.0 - Release 1.ydl.2 for this HowTo to work.
- Mount the DVD or ISO:
- Type:
mkdir /media/DVD
- If using an ISO, type:
mount -o loop /path/to/iso /media/DVD
- If using a DVD, type:
mount /dev/dvd /media/DVD
- Type:
- Copy the DVD or ISO into an NFSROOT system. If you are unsure if you are using an NFSROOT system, it is likely that you are not.
- Mount the DVD or ISO image as per above on the NFS server
- Then on the NFS Server type:
mkdir -p /path/to/nfsroot/MAC-address/media/DVD
cp -a /media/DVD/* /path/to/nfsroot/MAC-address/media/DVD - There is now a local yum repo in the NFSROOT, and you can use the following procedure to access the local repo
- Mount the DVD or ISO image as per above on the NFS server
- To create a yum repo file for the DVD:
- Edit a new file called /etc/yum.repos.d/yellowdog-dvd.repo and add the following lines to it:
[dvd]
name=Yellow Dog Linux DVD
baseurl=file:///media/DVD
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
- Save and exit the file.
- Edit a new file called /etc/yum.repos.d/yellowdog-dvd.repo and add the following lines to it:
- Clean out any residual files left in yum from former http use of yum:
yum clean all
- Use yum to install packages from the DVD or ISO by typing:
yum --disablerepo=base --disablerepo=updates --disablerepo=extras --enablerepo=dvd {normal yum commands}
Also change the enabled=0 to enabled=1. Making this change you can use yum without using "--disablerepo=base --disablerepo=updates --disablerepo=extras --enablerepo=dvd" options of the command.
This HOWTO was written by Aaron Johnson, Terra Soft




