Created
November 12, 2013 16:48
-
-
Save makokal/7434326 to your computer and use it in GitHub Desktop.
Clean held back packages in Ubuntu and related
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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