[Yum] using createrepo to provide repodata for fedora-core iso

David Timms dtimms at iinet.net.au
Mon Nov 6 13:43:26 UTC 2006

Anyone know how to use createrepo {or is there another tool} to create 
useful repodata for a mounted dvd.iso image for say fedora core.

It seems that while the image includes a toplevel /repodata folder, when 
it is mounted and yum.repos.d/fedora-core.repo is pointed at the / of 
the mounted iso image, yum is not happy with what it finds.

I have used createrepo folder option to create a new repodata directory 
and repo one folder above where the iso is mounted, so that the folder 
is read/write, and the create can succeed.

createrepo -o . disc/Fedora/RPMS/

What I find is that primary.xml does not include the relative path from 
the folder above the new repodata directory, and hence fails. {actually 
it includes only the filename of the rpm files not any path at all.}

folder where iso is mounted:

location of rpms:

writable location: {where yum.repos.d/fedora-core.repo baseurl will point}

What is the appropriate command to generate usable repodata ?


More information about the Yum mailing list