Skip to content

Instantly share code, notes, and snippets.

@cinhtau
Created April 30, 2017 08:18
Show Gist options
  • Save cinhtau/1d8deb1f5ef5a7c4597828e958604a8a to your computer and use it in GitHub Desktop.
Save cinhtau/1d8deb1f5ef5a7c4597828e958604a8a to your computer and use it in GitHub Desktop.
Purge configuration from removed packages in Debian/Ubuntu
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