Last active
December 11, 2021 08:46
-
-
Save Caleb9/0e404aba4af133a12293af98cc47bbce to your computer and use it in GitHub Desktop.
apt install history
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
# Based on https://askubuntu.com/a/360536/868131 | |
# Installation history from archived files | |
gunzip -c /var/log/apt/history.log.*.gz | egrep 'apt(-get)? install' | cut -f4- -d" " | sort | uniq | |
# Recent installation history | |
cat /var/log/apt/history.log | egrep 'apt(-get)? install' | cut -f4- -d" " | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment