![Forrest logo](/images/logo.png)
dpkg:tldr:ea9ad
dpkg: Find out which package owns a file.
$ dpkg -S ${filename}
try on your machine
The command dpkg -S is used to search for the package that provides a specific file or filename.
The ${filename} variable should be replaced with the actual file or filename you want to search for.
When you run the command, dpkg -S ${filename}, the dpkg utility will search for the package that contains the specified file. It will look into the list of installed packages on your system and match the file with the package name. If there is a match, it will display the package name along with the path of the file.
This command is helpful when you want to find out which package a particular file belongs to or whether a specific file is installed on your system.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- see manually installed files in deibian?