Skip to content

Instantly share code, notes, and snippets.

@psigen
Last active August 13, 2023 14:11
Show Gist options
  • Save psigen/e9e1dc2894be5499ac331a115320ee43 to your computer and use it in GitHub Desktop.
Save psigen/e9e1dc2894be5499ac331a115320ee43 to your computer and use it in GitHub Desktop.
Useful bash one-liners
# Show a list of Ubuntu packages that are marked as manually installed
# See: https://askubuntu.com/a/492343
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment