Skip to content

Instantly share code, notes, and snippets.

@gastonambrogi
Created December 3, 2016 02:58
Show Gist options
  • Save gastonambrogi/6466e330f04fae092b2c40fdecdca422 to your computer and use it in GitHub Desktop.
Save gastonambrogi/6466e330f04fae092b2c40fdecdca422 to your computer and use it in GitHub Desktop.
List all packages installed via commandline
( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | grep -v aptdaemon | egrep '^Commandline:'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment