How do I get a list of files that were or will-be installed when I apt-get a package? Conversely, can I find what package(s) caused a particular file to be installed?
Linux – List of files installed from apt package
aptdebiandpkglinux
Related Topic
- How to show the actions that installing a .deb package will take
- How to get the history of “apt-get install” on Ubuntu
- Ubuntu – How to get apt-get to ignore some dependencies
- Linux – Can dpkg verify files from an installed package
- Odd behavior of apt-get with post-inst instructions, and .desktop files
- Linux – What does “debconf: delaying package configuration, since apt-utils is not installed” mean
- Ubuntu – apt: list required dependencies for deb package without installing it
Best Answer
Note: in the following commands, a command beginning with 'root#' means it needs to be run as root.
To find which files were installed by a package, use
dpkg -L
:apt-file
can tell you which files will be installed by a package before installing it:Or if you have the package as a
.deb
file locally already, you can rundpkg
on it:To find which package provides a file that is already on your system, use:
To find which package provides a file that is not currently on your system, use
apt-file
again: