Skip to content

Instantly share code, notes, and snippets.

@sysadmiral
Created June 12, 2016 09:21
Show Gist options
  • Save sysadmiral/d58388e315a6c6384053aa6b0af66c5f to your computer and use it in GitHub Desktop.
Save sysadmiral/d58388e315a6c6384053aa6b0af66c5f to your computer and use it in GitHub Desktop.
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