Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wildlarva/dc262f54e5dd98fbb2ddd4361b2225d6 to your computer and use it in GitHub Desktop.
Save wildlarva/dc262f54e5dd98fbb2ddd4361b2225d6 to your computer and use it in GitHub Desktop.
Get apt packages manually installed in ubuntu
# Edit 'MANIFEST' and point to the manifest file of the ubuntu version you installed
#
# Ubuntu server image 18.04.3
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest
#
# Ubuntu desktop image 18.04.3
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.manifest
MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest
wget $MANIFEST -q -O - | cut -f 1 | cut -d':' -f1 | sort > preinstalled.txt
apt list --manual-installed | cut -d'/' -f1 | sort > manual_installed.txt
comm -23 <(cat manual_installed.txt) <(cat preinstalled.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment