Re: deb package lists and backing up...
Aaron Lehmann <aaronl@vitelus.com> wrote:
>I have a debian box that is very "standard", in that not very much is
>customized other than my fstab, .xinitrc, passwd, etc. Is there a way that
>I can back up the debian package database and if my hard disk fails or I
>accidentally `rm -rf /`, restore the package database onto a virgin potato
>base system and have apt get all the packages that I had previously
>installed? What file(s) would I need to maintain current backups of?
dpkg --get-selections > backupthisfile
[insert hard disk crash and reinstall of base system here]
dpkg --get-selections < fileyoubackedup
run dselect
be happy
--
Robert Woodcock - rcw@debian.org
"Yes I do believe there is a violent thing inside of me" -- Everclear
Reply to: