online \"man yum\" & configure yum to retrieve from the hard drive

Paul Howarth paul at city-fan.org
Thu Feb 10 11:15:37 UTC 2005


THUFIR HAWAT (thufir) wrote:
> where's a manual, or other resource, explaining how to configure yum to not retrieve its packages not from the internet but from the dvd .iso on hda2, please?
> 
> I tried <http://techpubs.sgi.com/tpl.cgi/linux/man/> and entering "yum", but no useful results...? I imagine "man yum" works, but i'll have to reboot to get in linux to do that.
> 
> <http://www.tldp.org/docs.html#man> has other links, none of which had results..?

Three steps (FC3 i386 version):

1. Create a yum repository from your DVD

# mkdir -p /path/to/your/repo/dvd
# mount -r -o loop /path/to/FC3-i386-DVD.iso /path/to/your/repo/dvd
# cd /path/to/your/repo
# rpm -Uvh dvd/Fedora/RPMS/createrepo*
# createrepo .

2. Ensure that the DVD ISO image is mounted at every reboot

* edit /etc/fstab and add new line:

/path/to/FC3-i386-DVD.iso /path/to/your/repo/dvd so9660 ro,loop 0 0

3. Configure yum to use your new repository

* edit /etc/yum.repos.d/fedora.repo
* comment out any line starting with "baseurl" or "mirrorlist"
* add a new line "baseurl=file:///path/to/your/repo"

That should do it.

Paul.




More information about the fedora-list mailing list