On Fri, 26 Jul 2002, Matthew Palmer <[EMAIL PROTECTED]> wrote...

: Anyone know of a tool which, given a list of packages and the appropriate
: apt metadata, will download all those packages and *all* their dependencies?
: I can get close with apt-get -d install <package list> and then getting them
: out of /var/cache/apt, but that doesn't get packages which are already
: installed and current on the host I run it on.
: 
: I'm guessing that there's got to be something which can do this sort of
: thing, probably as part of the CD builders or similar.  I'm not familiar
: with anything in that area, though.  Is anyone out there educated in such
: matters?

I just did a quick-hack shell script...

% ./listpkg.sh fluxbox
debianutils
fluxbox
fluxbox-kde
libc6
libfreetype6
libstdc++2.10-glibc2.2
xcontrib
xfree86-common
xlibs
xsm

% ./listpkg.sh kde | wc -l
    181

... here is a copy:

% cat listpkg.sh 
#!/bin/sh
apt-cache dotty $* | tail +4 | \
    grep -v 'color=springgreen\|color=orange\|shape=hexagon' | \
    cut -d\" -f2 | grep '[a-z]' | sort -n | uniq


HTH.

That'll give you the list of packages. I cant think of an efficently
way, offhand, of downloading the named packages, other than using
grep-dctrl or "apt-cache show $pkg | grep ^Filename" (sorry, not sure
of the exact invocation for grep-dctrl), and appending that filename
to a mirror url.

\dopey
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to