Wednesday, January 19, 2005

[debian] dpkg --get/set-selections

Record/copy system configuration

To make a local copy of the package selection states:
$ dpkg --get-selections "*" > myselections 

"*" makes myselections include package entries for "purge" too.

You transfer this file to another computer, and install it there with:
# apt-get update
# dpkg --set-selections < myselections
# apt-get -u dselect-upgrade