|
Fedora Core 3, Fedora Core 4, Fedora Core 6
1. Create a yum repository from your DVD
# mkdir -p /path/to/your/repo/dvd
# chcon -t mnt_t /path/to/your/repo/dvd
# mount -r -o loop /path/to/FC-6-i386-DVD.iso /path/to/your/repo/dvd
# cd /path/to/your/repo
# rpm -Uvh dvd/Fedora/RPMS/createrepo*
# createrepo
/!\ Be careful with your directory hierarchy; it is important that the only RPM files that live in the /path/to/your/repo directory or anywhere underneath that directory are the RPMs from your DVD ISO (i.e. the ones in the dvd/Fedora/RPMS directory); any other RPMs that may be present will also be found by createrepo and included in the repository, which is probably not what you want.
2. Ensure that the DVD ISO image is mounted at every reboot
*
edit /etc/fstab and add new line:
/path/to/FC-6-i386-DVD.iso /path/to/your/repo/dvd iso9660 ro,loop 0 0
3.
Configure yum to use your new repository
*
edit /etc/yum.repos.d/fedora.repo or /etc/yum.repos.d/fedora-core.repo, whichever one is present
*
comment out any line starting with baseurl or mirrorlist
* add a new line:
baseurl=file:///path/to/your/repo
izvor: [Link mogu videti samo ulogovani korisnici]
|