[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get question



Hello

Dominik Epple (<epple@tphys.physik.uni-tuebingen.de>) wrote:

> I have an empty /var/cache/apt/archives directory. For building
> a custom CD, I want to have all packages that are installed on the
> machine as a file on my computer, e.g. in the /var/cache/apt/archives
> directory. Can I make apt-get download all the files for me? There
> must be some magic :)
> 
> If not, it will be tediuos to install them all manually or just do
> a reinstall for this purpose...

Remove local sources (e.g. CDs/DVDs) from your sources.list, and run
something like:

dpkg --get-selections | grep install$ | cut -f1 | xargs apt-get -y \
--download-only --reinstall install

best regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps-sarge.html



Reply to: