Replicate package selection from one Ubuntu install to another clean one

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 Move the file â€œmy-packagesâ€ to the other machine, and there type:$ sudo xargs aptitude â€“schedule-only install < my-packages ; sudo aptitude installIt might be interesting for you to always check the automate commandEND—–