Last active
December 21, 2015 13:18
-
-
Save thomaswilley/6311401 to your computer and use it in GitHub Desktop.
remove (purge) all packages and configs installed on a given date in one line (on ubuntu/debian)
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
grep -w install /var/log/dpkg.log | awk '{ if ($1 == "2013-08-22") { print $4 }}' | while read -r line; do sudo apt-get -y purge $line && sudo apt-get -y autoremove; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just replace the "2013-08-22" with the desired date