Created
June 12, 2016 09:21
-
-
Save sysadmiral/d58388e315a6c6384053aa6b0af66c5f to your computer and use it in GitHub Desktop.
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
TMPFILE="/tmp/seeinstalls.tmp" | |
function get_initial_installs { | |
zgrep '^Package:' /var/log/installer/initial-status.gz | awk '{ print $2}' > $TMPFILE | |
} | |
function diff_lists { | |
aptitude search -F %p '~i!~M' | awk '{ print $1}' | grep -v -F -f $TMPFILE | |
} | |
function clean_up { | |
rm $TMPFILE | |
} | |
get_initial_installs | |
diff_lists | |
clean_up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment