dserodio
2/28/2018 - 10:14 PM

Ubuntu / Debian package management

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)