Skip to content

Instantly share code, notes, and snippets.

@midwire
Created September 23, 2022 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midwire/519af7ab225971f095469724a839c466 to your computer and use it in GitHub Desktop.
Save midwire/519af7ab225971f095469724a839c466 to your computer and use it in GitHub Desktop.
[Remove all residual configs in Ubuntu] One-liner to remov all residual config packages in Ubuntu #ubuntu #apt
# 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