Skip to content

Instantly share code, notes, and snippets.

@dserodio
Last active July 23, 2018 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dserodio/81618ea93cb32087cb197fbdbc3193db to your computer and use it in GitHub Desktop.
Save dserodio/81618ea93cb32087cb197fbdbc3193db to your computer and use it in GitHub Desktop.
apt and dpkg snippets
# which package owns a file
dpkg-query -S /path/to/file
# list files in an installed package
dpkg-query -L $PACKAGE
# list files in a deb file
dpkg-deb -c <package_name.deb>
# see also apt-file(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment