How do I find which rpm package supplies a file I’m looking for?

This is an old question, but the current answers are incorrect 🙂 Use yum whatprovides, with the absolute path to the file you want (which may be wildcarded). For example: yum whatprovides ‘*bin/grep’ Returns grep-2.5.1-55.el5.x86_64 : The GNU versions of grep pattern matching utilities. Repo : base Matched from: Filename : /bin/grep You may prefer … Read more

How to list the contents of a package using YUM?

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this. $ repoquery –help | grep -E “list\ files” -l, –list list files in this package/group Combined into one example: $ repoquery -l time /usr/bin/time /usr/share/doc/time-1.7 /usr/share/doc/time-1.7/COPYING /usr/share/doc/time-1.7/NEWS /usr/share/doc/time-1.7/README /usr/share/info/time.info.gz On at least one RH system, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)