Created
February 15, 2012 13:55
-
-
Save bepcyc/1835846 to your computer and use it in GitHub Desktop.
BAckup and restore with aptitude in Ubuntu or Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before backup: | |
dpkg --get-selections > packages.txt | |
while restoring: | |
dpkg --clear-selections | |
dpkg --set-selections < packages.txt | |
aptitude install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment