Skip to content

Instantly share code, notes, and snippets.

@bepcyc
Created February 15, 2012 13:55
Show Gist options
  • Save bepcyc/1835846 to your computer and use it in GitHub Desktop.
Save bepcyc/1835846 to your computer and use it in GitHub Desktop.
BAckup and restore with aptitude in Ubuntu or Debian
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