Apt-get find package that provides a file


















In some situations, you may need to find the package name belonging to a file. In this tutorial, we learn how to find which package a file belongs or owns to in the Linux system. 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. Note that in this method, the path to the file must be given in single quotes.

This command can be installed by issuing the following:. When this command is installed on your Debian 10 system, it will render some messages in the terminal, as shown in the image below:.

The system update will be completed after a few seconds, and the following messages will be displayed in the terminal:. I made it also work for files that are not installed on the system. I made a backup at gist. Update: It feels slimy to copy pasta this answer and make subtle changes to it, but my edit got rejected. I hope you feel like I maintained the integrity of your answer in mine. I don't even need credit. Amandasaurus Amandasaurus 1, 2 2 gold badges 16 16 silver badges 23 23 bronze badges.

You can use apt to do it. Qinsi Qinsi 5 5 silver badges 7 7 bronze badges. What's " pacapt "? How does one get that? And you can get pacapt by wget as descripted in the answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Linked See more linked questions. Related Hot Network Questions. Question feed. Ask Ubuntu works best with JavaScript enabled. Accept all cookies Customize settings. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Using a file to install packages with apt-get Ask Question. Asked 6 years, 11 months ago. Active 10 months ago. Viewed 38k times. Is there an alternative to this for apt-get since I still just use it through commandline with apt-get install pkg1 pkg2 pkg3…?

Improve this question. ZygD 12 12 bronze badges. Does it need one?



0コメント

  • 1000 / 1000