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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux