Skip to content

Instantly share code, notes, and snippets.

@marcolivierarsenault
Forked from bepcyc/backup with apt.txt
Created November 4, 2015 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcolivierarsenault/0f1585a559cf7cc5ff12 to your computer and use it in GitHub Desktop.
Save marcolivierarsenault/0f1585a559cf7cc5ff12 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