Skip to content

Instantly share code, notes, and snippets.

@RPChinhara
Forked from zhaostu/remove_residual_config.sh
Created October 13, 2021 03:37
Show Gist options
  • Save RPChinhara/d4efe51f218c85270707d43daba3b259 to your computer and use it in GitHub Desktop.
Save RPChinhara/d4efe51f218c85270707d43daba3b259 to your computer and use it in GitHub Desktop.
One-liner to remov all residual config packages in Ubuntu
# Remove all the packages with residual configuration.
# http://stuzhao.blogspot.com/2012/07/removing-all-residual-config-packages.html
sudo apt-get remove --purge `dpkg -l | grep '^rc' | awk '{print $2}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment