Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Forked from bepcyc/backup with apt.txt
Created April 3, 2012 05:51
Show Gist options
  • Select an option

  • Save binshengliu/2289586 to your computer and use it in GitHub Desktop.

Select an option

Save binshengliu/2289586 to your computer and use it in GitHub Desktop.

Revisions

  1. @bepcyc bepcyc created this gist Feb 15, 2012.
    7 changes: 7 additions & 0 deletions backup with apt.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    before backup:
    dpkg --get-selections > packages.txt

    while restoring:
    dpkg --clear-selections
    dpkg --set-selections < packages.txt
    aptitude install