At Fri, 26 Jul 2002 12:45:12 +1000 (EST), Matthew Palmer 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.
the easy way would be to tweak your own apt.conf to use a different "status" file: APT::Get::Download-Only "true"; Dir::Cache::archives "/download/destination"; Dir::State::status "/dev/null"; and then do "apt-get -c thatfile.conf install <package list>". see apt-get(8) and apt.conf(5). if that still doesn't do what you want (eg: if you want Recommends as well), my next step would be a custom perl script using libapt-pkg-perl to get the dependency information. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
