Discover which repo holds a package in CentOS.

It is sometimes useful not only to know your repo list covers you for all the stack of software you want but also where does a package actually reside.

The repoquery command comes to the rescue.

[root@torino ~]# repoquery -i cherokee
Name : cherokee
 Version : 1.2.101
 Release : 3.el5
 Architecture: i386
 Size : 12204277
 Packager : Fedora Project
 Group : Applications/Internet
 URL : http://www.cherokee-project.com/
 Repository : epel
 Summary : Flexible and Fast Webserver
 Source : cherokee-1.2.101-3.el5.src.rpm
 Description :
 Cherokee is a very fast, flexible and easy to configure Web Server. It supports
 the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
 encrypted connections, Virtual hosts, Authentication, on the fly encoding,
 Apache compatible log files, and much more.
 [root@torino ~]#

Similary info can be obtained with the yum info command as follows:

[root@torino ~]# yum info cherokee
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: it.centos.contactlab.it
 * epel: mirror.karneval.cz
 * extras: it.centos.contactlab.it
 * updates: mirror.bofh.so
Available Packages
Name : cherokee
Arch : i386
Version : 1.2.101
Release : 3.el5
Size : 5.6 M
Repo : epel
Summary : Flexible and Fast Webserver
URL : http://www.cherokee-project.com/
License : GPLv2
Description : Cherokee is a very fast, flexible and easy to configure Web
 : Server. It supports the widespread technologies nowadays: FastCGI,
 : SCGI, PHP, CGI, TLS and SSL encrypted connections, Virtual hosts,
 : Authentication, on the fly encoding, Apache compatible log files,
 : and much more.
[root@torino ~]#

3 Replies to “Discover which repo holds a package in CentOS.”

  1. Happen to be trying to find this and learned much more than anticipated in this article. Thanks.

  2. Howdy! I could have sworn I’ve been to this website before but after browsing through a few of the articles I realized it’s new
    to me. Anyways, I’m definitely delighted I came across it and I’ll be
    bookmarking it and checking back often!

    Here is my web page: Ramping Balm

Leave a Reply

Your email address will not be published. Required fields are marked *