Created
April 30, 2017 08:18
-
-
Save cinhtau/1d8deb1f5ef5a7c4597828e958604a8a to your computer and use it in GitHub Desktop.
Purge configuration from removed packages in Debian/Ubuntu
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
sudo dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }') | |
# alternative | |
# dpkg --list | grep '^rc\b' | awk '{ print $2 }' | xargs sudo dpkg -P |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment