Skip to content

Instantly share code, notes, and snippets.

@dmandrade
Created December 21, 2017 17:39
Show Gist options
  • Save dmandrade/fbc7f9e3effbf0fe1589b7d96e2d3ba4 to your computer and use it in GitHub Desktop.
Save dmandrade/fbc7f9e3effbf0fe1589b7d96e2d3ba4 to your computer and use it in GitHub Desktop.
List recently installed package-names in one line
This results in a single line of package names that can be easily added to a sudo apt-get purge command.
cat /var/log/dpkg.log |awk '/ install / {printf "%s ",$4 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment