I always use
provides rather than
whatprovides, because that is what I learned first and because I don't type very well. Maybe
whatprovides is more intuitive, so easier to remember.
Quote:
Originally Posted by djgerbavore
The whatprovides should be more documented. I never heard of this until today. This might be yum's must kept secret.
|
Unlike many important Linux tools,
yum has a very beginner friendly man page. (
what)
provides is documented there both clearly and early (important for beginner friendly). In other tools some important beginner feature first mentioned on line 4000 of the man page "should be more documented". But that comment is unfair for
whatprovides.
Nevertheless, for those too scared of man pages, I'm glad this thread exists.
For Debian based distributions, the corresponding apt functionality seems to be both not installed by default and harder to find in the documentation. I usually give up and instead go to
packages.ubuntu.com and scroll down to
Search the contents of packages. Odds are the package which contains fileX in Ubuntu is the same as the package which contains fileX in some other Debian based distribution, so that is an easy place to get the answer, especially if you're looking for the answer at a moment in which you can't run apt (such as while I'm on the Windows computer I'm using right now).
For some major Red Hat based distribution, if someone happens to knows of a similar (public web accessible) substitute for
yum provides that would be a nice URL to have posted in this thread.