How do I locate the plan that gives a documents?
Straightforward adequate inquiry : exists some covering command (or GUI method ) I can make use of that, offered the course to a documents on my system, informs me what plan placed it there? Thinking the documents carried out in reality originated from a plan, that is.
Incentive inquiry : what happens if it's a documents that isn't mounted on my system? Exists, claim, a website that will allow me seek out a documents and also see what plans, if any kind of, give it?
You can make use of
dpkg command to figure out which mounted plan possesses a documents:
-S, --search filename-search-pattern... Search for a filename from installed packages.
$ dpkg -S /bin/ls coreutils: /bin/ls
You can either look with a complete course or with simply the filename.
If you desire to look for documents not yet mounted on your computer system, you can make use of the Ubuntu Packages Search
As an example, below are the search engine result for libnss3.so in lucid (10.04) :
apt-file command can do this for you from the command line. I utilize it regularly when constructing plans from resource. For documents given by plans that are currently mounted on your system,
apt-cache is an additional selection.
apt-file, do :
sudo apt-get install apt-file
Then, you require to upgrade it's data source :
And, ultimately, look the documents :
$ apt-file find kwallet.h kdelibs5-dev: /usr/include/kwallet.h libkf5wallet-dev: /usr/include/KF5/KWallet/kwallet.h
However a much friendlier means is to make use of the Ubuntu Packages Search internet site. They have an alternative to "look the materials of plans" for a details filename.