Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created July 26, 2011 09:20
Show Gist options
  • Save sarahhodne/1106358 to your computer and use it in GitHub Desktop.
Save sarahhodne/1106358 to your computer and use it in GitHub Desktop.

To replicate your packages selection on another machine (or restore it if re-installing), you can type:

aptitude  --display-format '%p' search '?installed!?automatic' > ~/my-packages

And move the file "my-packages" to the other machine, and there type

sudo xargs aptitude --schedule-only install < my-packages ; sudo aptitude install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment