Creating a local apt repository?

Panu Matilainen pmatilai at welho.com
Sat Dec 27 09:44:54 UTC 2003


On Sat, 27 Dec 2003, Greg Trounson wrote:

> Gidday,
> 
> Not strictly Fedora-centric, but if I can get it working under RH9, I 
> plan to deploy it to my Fedora machines.
> 
> Since I'm on a dial-up connection, I have copied the complete set of RH9 
> rpms into one directory on my machine in an attempt at creating a local 
> mirror for apt.
> 
> I have run
> "genbasedir --flat --bloat --bz2only --partial --progress 
> /mainarchive/redhat9 localrpms"
> on this directory, and the appropriate pkglist.localrpms.bz2 etc have 
> been created in /mainarchive/redhat9/base.
> I have added
> "rpm file:/apt/ /mainarchive/redhat9 localrpms"
            ^^^^^

If the directory is /mainarchive/redhat9 then that's what you have to use 
as the path, eg "rpm file:/mainarchive redhat9 localrpms" is what you 
should use for that - you can't invent parts of the path and have apt find 
whatever you intended :)

	- Panu -





More information about the fedora-list mailing list