On Wed, May 11, 2005 at 12:39:22PM +0200, Andreas Janssen 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
Thank you! I was already at "apt-get --download-only", but was not clever enough not conclude to use the "--reinstall install" stuff to make apt-get actually download it. Pretty smart, thank you. Regards, Dominik. PS. For completeness: "grep install$" also catches "deinstall", I used the above with an additional "grep -v deinstall$". -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

