Skip to content

Instantly share code, notes, and snippets.

@makokal
Created November 12, 2013 16:48
Show Gist options
  • Save makokal/7434326 to your computer and use it in GitHub Desktop.
Save makokal/7434326 to your computer and use it in GitHub Desktop.
Clean held back packages in Ubuntu and related
dpkg --get-selections | grep deinstall | sed 's/deinstall/\lpurge/' | sudo dpkg --set-selections; sudo dpkg -Pa
apt-get --purge autoremove
# check that the count is now zero
dpkg --get-selections | grep deinstall | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment