On Wed, Jan 17, 2001 at 03:42:06PM -0500, Bob Hilliard wrote: > csj <csj@mindgate.net> writes: > > > > > > > dpkg --get-selections > filename > > > dpkg --set-selections < filename > > > > > > Bob > > > > Yes, but where would dpkg fetch those files? Can it fetch it, say, > > from my local mirror? > > No. It gets the information from /var/lib/dpkg/status. You > should run dpkg --get-selections periodically, and keep it on a > separate partition, a floppy, or some other safe place. > > Once your /var is hosed, it's too late to do it. But it's a lot > quicker and easier to run dpkg --get-selections than to make a full > backup. dpkg --get-selections > foo does not create a full backup, it only creates a backup of installed packages, NOT removed packages. dpkg --get-selections \* > full will give you a true full backup. do both commands and then diff the two files. -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpbHIgGtndp3.pgp
Description: PGP signature