Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hxmuller/dc02772cdf451440e8b6403e95c00fe1 to your computer and use it in GitHub Desktop.
Save hxmuller/dc02772cdf451440e8b6403e95c00fe1 to your computer and use it in GitHub Desktop.
print Debian package summary for each package listed in file
# cat - concatenate files and print on the standard output
# xargs - build and execute command lines from standard inpout
# dpkg-query - a tool to query the dpkg database
# -W list packages matching given pattern, output can be customized
# -f specifies the format of the output of -W
cat filename | xargs dpkg-query -W -f='${binary:Package}\n\t${binary:Summary}\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment