Skip to content

Instantly share code, notes, and snippets.

@GuiMarthe
Created June 14, 2017 19:48
Show Gist options
  • Select an option

  • Save GuiMarthe/ac7f073389defa1e21a490a89ea28dac to your computer and use it in GitHub Desktop.

Select an option

Save GuiMarthe/ac7f073389defa1e21a490a89ea28dac to your computer and use it in GitHub Desktop.
(Beautiful) Commando to list all packages intentionally installed (not as dependencies) by apt commands
# stole from https://askubuntu.com/questions/17823/how-to-list-all-installed-packages
(zcat $(ls -tr /var/log/apt/history.log*.gz); cat /var/log/apt/history.log) 2>/dev/null |
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