Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maskshell/55f3a60faf834e1af8482160f02ad3f6 to your computer and use it in GitHub Desktop.
Save maskshell/55f3a60faf834e1af8482160f02ad3f6 to your computer and use it in GitHub Desktop.

Revisions

  1. @zhaostu zhaostu created this gist Oct 21, 2012.
    4 changes: 4 additions & 0 deletions remove_residual_config.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # 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}'`