Created
May 31, 2016 06:53
-
-
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
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
#!/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