Skip to content

Instantly share code, notes, and snippets.

@FatalMerlin
Created February 13, 2022 19:53
Show Gist options
  • Save FatalMerlin/f520c17f7a29f775fff68a13a3c9ade5 to your computer and use it in GitHub Desktop.
Save FatalMerlin/f520c17f7a29f775fff68a13a3c9ade5 to your computer and use it in GitHub Desktop.
How to check if package from list file is not installed with apt
xargs -a packages.txt apt -qq list | grep -v "\[install" | awk '$3 == "amd64" {print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment