Last active
January 6, 2020 02:54
-
-
Save wildlarva/dc262f54e5dd98fbb2ddd4361b2225d6 to your computer and use it in GitHub Desktop.
Get apt packages manually installed in ubuntu
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
# 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