Can yum tell me which of my repositories provide a particular package? Can yum tell me which of my repositories provide a particular package? linux linux

Can yum tell me which of my repositories provide a particular package?


yum list packagename

That will show from which repository the package is in the third column of the output.

For already installed packages, that won't work, as the third column shows just "installed". In that case you can do e.g. "rpm -qi packagename", typically the Vendor, Packager and Build Host tags will give an indication to which repository the package belongs. Also it's quite common for some repo symbol being appended to the package version number.


repoquery -i {packagename} 

This will give you the actual repo name vs the unhelpful "installed" that yum returns.repoquery is provided by yum-utils.


You can use yum -v search that would show you packages along with repo it is present in. If you also add --showduplicates you will see all versions of that package.

Credit to: http://www.spinics.net/linux/fedora/yum/msg11975.html