Skip to content

Instantly share code, notes, and snippets.

@bodypheo
Created April 2, 2020 12:06
Show Gist options
  • Save bodypheo/74b51f8d89d7c4ac44201be4ecae8445 to your computer and use it in GitHub Desktop.
Save bodypheo/74b51f8d89d7c4ac44201be4ecae8445 to your computer and use it in GitHub Desktop.
Generate a list of manually installed packages in Debian derivates
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