Re: Building my own apt archive
"Joseph A. Martin (The LaterDude)" wrote:
>
> Actually I use dpkg-scanpackage with great success. apt-move can also
> move packages from /var/cache/apt into a directory structure. Check
> the man page for dpkg-scanpackage, if you need more help ask me and I
> will provide examples.
>
> Ron Rademaker <ron@wep.tudelft.nl> writes:
>
> > I guess you should check the manpage of deb-control.
> >
> > Ron Rademaker
> >
> > PS. You could also keep all the .deb's and install them, if needed, using
> > dpkg.
> >
> > On Wed, 24 May 2000, Moore, Paul wrote:
> >
> > > From: Ron Rademaker [mailto:ron@wep.tudelft.nl]
> > > >
> > > > The easiest way would be to use the Packages.gz from the
> > > > mirror and the
> > > > directory structure as used on the mirror, when you update using that
> > > > Packages.gz, it will seem as if there are much more packages, that you
> > > > don't all have, however if you don't need them that's not a problem.
> > >
> > > No, that wouln't work. I have debs from a lot of places (unofficial
> > > packages, updated versions backported to slink, etc, etc) and I want to
> > > combine them onto one CD. So I have to build my own Packages.gz
I keep a local archive for similar reasons (personal apps, my scripts,
backported stuff, etc).
in my /etc/apt/sources.list i have
deb file:/path/to/archive-root local jpb
In /path/to/archive-root/dists/local/jpb/binary-i386 I have the
following Makefile
#Makefile
Packages.gz: Packages clean
@-rm Packages.gz
gzip -9 -v Packages
Packages:
dpkg-scanpackages . override dists/local/jpb/binary-i386/ > Packages
clean:
-rm *~
#end Makefile
In override I have lines like
jpbscripts Important jpb/misc jpb@creol.ucf.edu
Once I add new debs, I just cd
/path/to/archive-root/dists/local/jpb/binary-i386 and make.
jpb
--
Joe Block <jpb@creol.ucf.edu>
CREOL System Administrator
Social graces are the packet headers of everyday life.
Reply to: