Skip to content

Instantly share code, notes, and snippets.

@Airdawg5571
Created May 31, 2016 06:53
Show Gist options
  • Save Airdawg5571/fca22d2c50aea3aaf7ca2a0f38d33ec5 to your computer and use it in GitHub Desktop.
Save Airdawg5571/fca22d2c50aea3aaf7ca2a0f38d33ec5 to your computer and use it in GitHub Desktop.
Get a reverse-time view of apt-get commands and Synaptic activities on a debian-based distro
#!/bin/bash
# source: http://askubuntu.com/a/250530
( 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