Is there a way to find out which packages provide the file?

For example, if. / configure or Make tells me that I am missing libX11.so.6, and this is nowhere on my system, is there a tool or website in which I could enter

libX11.so.6


then giveaway / arch and go back

libx11-6 libx11-6-debug [or something else; README query will probably return record columns]

http://sysinf0.klabs.be/ does something similar for some distributions and architectures, but it does not seem to have more recent distributions. In addition, they do not have an entry for the file name, so you need the Google packagename website: sysinf0.klabs.be.

I am most interested in Ubuntu, but it would be nice to know about similar tools for other distributions.

+3
source share
4 answers

Debian does this through the website:

  • find Packages in the Search for Package Contents section
  • the answer in this example
  • where "packages containing files whose name contains the keyword" for unstable distribution (as the largest) on "any" architecture

Ubuntu probably does something similar, but I don't know the site / start panel very well.

You can also get the index file ftp://ftp.us.debian.org/debian/dists/sid/Contents-i386.gz, but as it changes frequently, the website option is probably more convenient.

+3
source
< > $ sudo apt-get install apt-file $ sudo apt-file update $ apt-file search libX11.so.6

apt-file , .

< > $ sudo apt-get install auto-apt $ sudo auto-apt update $ sudo auto-apt updatedb $ sudo auto-apt update-local $ auto-apt run./configure

auto-apt , .

+2

If you have a file on your computer and want to know which package is responsible for it, then (on Debian and Ubuntu) this is ...

$ dpkg -S FILENAME
0
source

Source: https://habr.com/ru/post/1718944/


All Articles