Skip to content

Instantly share code, notes, and snippets.

@Caleb9
Last active December 11, 2021 08:46
Show Gist options
  • Save Caleb9/0e404aba4af133a12293af98cc47bbce to your computer and use it in GitHub Desktop.
Save Caleb9/0e404aba4af133a12293af98cc47bbce to your computer and use it in GitHub Desktop.
apt install history
# 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