Dpkg owns file




















You can use dpkg and dpkg-query commands to find package that provides a file. This command search for a filename from the installed packages. You can use apt-file to look for files inside DEB packages on your system, as well as packages that aren't installed on your Debian systems but are available via the repositories.

The apt-file package is not installed by default. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Alternatively, there are several utilites in Debian which perform this task; check this page for a description. I'll mention two of them, apt-file and dlocate. Below you will find more detailed guide. Search is performed by dlocate -S file.

Also you can search packages online using packages. Read data from repositories this works also without sudo but creates user's cache then; with sudo the cache is system-wide :. Perform search. In this example we want to know in which package xrandr executable is:.

It lists many packages with unxrandr , lxrandr. Not very useful in our case. More clever search:. The first result doesn't look like executable, the second one does. We can investigate further. The output will provide the package and its version. To just see the package name, use the —queryformat option. List Installed Packages with dpkg-query.

The command will display a list of all installed packages including the packages versions, architecture, and a short description. Let us know in the comments. Skip to content. Could not get Lock. Could not get lock — Software Center. Table of Contents.



0コメント

  • 1000 / 1000