[Yum] Readonly Repo - createrepo a folder up - works

David Timms dtimms at iinet.net.au
Wed Feb 13 11:20:13 UTC 2008


Fajar A. Nugraha wrote:
> David Timms wrote:
>> createrepo -p -v ./rhel4/
> Hi David,
> createrepo -p -v ./rhel4/ wouldn't work as createrepo will ignore 
> ./rhel4/RPMS, which is a symlinked dir. Seems that createrepo can 
> process file symlinks just fine, but it ignores directory symlinks.
It actually works for me {using an iso rather than dvd}:
mkdir /mnt/f8
mount -o loop /home/infrastructure/iso/Fedora-8-i386-DVD.iso /mnt/f8
mkdir /etc/yum.repos.d/f8
ln -s /mnt/f8/Packages/ /etc/yum.repos.d/f8/RPMS
createrepo /etc/yum.repos.d/f8/
   2200rpms found and inserted into /etc/yum.repos.d/f8/repodata/*

gedit /etc/yum.repos.d/f8.repo
   [f8] set the baseurl to: file:///etc/yum.repos.d/f8/

yum clean metadata dbcache {might need if you moved stuff around}
yum --disablerepo=* --enablerepo=f8 list
yum --disablerepo=* --enablerepo=f8 install ypbind

Installing for dependencies:
  yp-tools            i386   2.9-2            f8                 72 k
  ypbind              i386   3:1.20.4-2.fc8   f8                 41 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 112 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
   Installing: ypbind              ######################### [1/2]
   Installing: yp-tools            ######################### [2/2]

Dependency Installed: yp-tools.i386 0:2.9-2 ypbind.i386 3:1.20.4-2.fc8
Complete!

DaveT.



More information about the Yum mailing list