slice debian - weakish/cheat GitHub Wiki

Slice Debian system

Mark all the packages installed on your system as "Automatically installed".

aptitude markauto ~i --schedule-only

Label the packages we want to keep as 'manually installed':

aptitude install -R ~i~prequired ~i~pimportant --schedule-only
aptitude install -R openssh-server
aptitude install -R