Skip to content

Instantly share code, notes, and snippets.

@mjhb
Last active August 29, 2015 14:14
Show Gist options
  • Save mjhb/3ccdd803ce52c770d623 to your computer and use it in GitHub Desktop.
Save mjhb/3ccdd803ce52c770d623 to your computer and use it in GitHub Desktop.
List Explicitly Installed Packages for Ubuntu-based systems (might work on Debian)
# set to appropriate manifest for your distribution and version
MANIFEST=http://cdimage.ubuntu.com/lubuntu/releases/14.10/release/lubuntu-14.10-desktop-amd64.manifest
aptitude search '~i !~M' -F '%p' --disable-columns | sort -u > currentlyinstalled.txt
wget -qO - $MANIFEST | cut -f1 | sort -u > defaultinstalled.txt
comm -23 currentlyinstalled.txt defaultinstalled.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment