Therefore, if the package is in two or more files, you will have to determine the repo priority on you system.# for i in /var/lib/yum/yumdb/b/*bind-utils*/*; do echo $i: `cat $i`; done /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/checksum_data: 39f7840f93d3d76825a9e8da79cfe0366f7fad68f018a273477aee62cccfa3f4 /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/checksum_type: sha256 /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/command_line: install bind-utils /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/from_repo: updates /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/from_repo_revision: 1397654451 /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/from_repo_timestamp: 1397654759 /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/installed_by: 0 /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/reason: user /var/lib/yum/yumdb/b/73ea08770fa666e18c59842bf65fa0f3a0b103d8-bind-utils-9.8.2-0.23.rc1.el6_5.1-x86_64/releasever: 6 To see what installed from repo epel: (Should work under Centos 5.5) note, if you have no repo named epel, it will spit out every thing installed.repoquery --repoid=epel -a | xargs yum list installed Is that information captured anywhere?

updating yum repositories-82updating yum repositories-20

repoquery -i cherokee Name : cherokee Version : 0.99.49 Release : 1.el5 Architecture: i386 Size : 8495964 Packager : Fedora Project Group : Applications/Internet URL : Repository : epel Summary : Flexible and Fast Webserver Description : Cherokee is a very fast, flexible and easy to configure Web Server.

It supports the widespread technologies nowadays: Fast CGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding, Apache compatible log files, and much more.

$ yum info irssi Installed Packages Name : irssi Arch : i586 Version : 0.8.14 Release : 1.fc11 Size : 2.3 M Repo : installed From repo : updates Summary : Modular text mode IRC client with Perl scripting URL : License : GPLv2+ Description: Irssi is a modular IRC client with Perl scripting. The GTK/GNOME frontend is no : longer being maintained.

$ yum --version 3.2.23 does not display "From repo : ", as indicated by 'theotherreceive', it is because it is not in the file primary.xml, so there will be no way to retrieve that information.

Query on a different machine without the package installed.

The following steps describe how to mirror packages from selected channels on the Unbreakable Linux Network and make them available from a local yum server.

You can create and host i386, x86_64, and ia64 repositories on the same server. The initial synchronisation will be triggered automatically overnight by the configured cronjob (unless manually disabled).

You could probably piece it together by figuring out what repos have the package and then determine which one has priority.

bluez-gstreamer.i386 4.30-2.fc10 updates gstreamer.i386 0.10.21-2.fc10 fedora gstreamer-devel.i386 0.10.21-2.fc10 fedora gstreamer-devel.x86_64 0.10.21-2.fc10 fedora gstreamer-plugins-bad-devel.i386 0.10.9-1.fc10 rpmfusion-free gstreamer-plugins-bad-devel.x86_64 0.10.9-1.fc10 rpmfusion-free So you could do a yum list available on your package, then compare your installed version using yum list installed, and have a good idea of which repo it came from if the versions match.

While it doesn't answer the OPs question exactly, it was very helpful for me because it works in Centoss 5.5 with just yum and no other utils, and you can: 1.

Uninstall the package then query to see where the repo is then reinstall, or 2.