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

Tim Lauridsen tla-ml at rasmil.dk
Wed Nov 8 17:20:16 UTC 2006

David Timms wrote:
> 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:
> /home/install/software/linux/fedora/core/6/yum/i386/disc
> location of rpms:
> /home/install/software/linux/fedora/core/6/yum/i386/disc/Fedora/RPMS
> writable location: {where yum.repos.d/fedora-core.repo baseurl will 
> point}
> /home/install/software/linux/fedora/core/6/yum/i386/
> What is the appropriate command to generate usable repodata ?
> DaveT.
> _______________________________________________
> Yum mailing list
> Yum at lists.dulug.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum

Check this howto:



More information about the Yum mailing list