how to tell which repository and installed rpm came from?

Issues related to applications and software problems
Post Reply
ron7000
Posts: 162
Joined: 2019/01/15 20:00:28

how to tell which repository and installed rpm came from?

Post by ron7000 » 2019/05/23 15:42:47

running centos (or rhel) 7.6, I have the base Centos (or RHEL) repositories installed, along with EPEL and ELREPO and NUX.
I use the gnome software gui and search on some software, FreeMat or MP3/H264 codecs for example, and install them.
In the future, I can do an rpm -qa and get a list of all rpm's installed.

Is there a way for a given installed rpm, to find out which defined repositories under /etc/yum.repos.d/ it came from?

And also once registered and doing the RHEL optional rpm activation described on the Fedora EPEL website my redhat.repo file is some 4000+ lines. The main ones that are enabled are
[rhel-7-server-extras-rpms]
[rhel-7-server-optional-rpms]
[rhel-ha-for-rhel-7-server-rpms]
[rhel-7-server-rpms]
... and so on.

Is there a way to tell which of those (assuming those are separate "repositories" ?) an rpm came from?

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how to tell which repository and installed rpm came from?

Post by TrevorH » 2019/05/23 15:46:50

Like yum list gnome-software for example? If it's installed then it will be listed with e.g. @base at the end of the line when you yum list it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ron7000
Posts: 162
Joined: 2019/01/15 20:00:28

Re: how to tell which repository and installed rpm came from?

Post by ron7000 » 2019/05/23 16:09:40

nice!

Code: Select all

yum list gnome-software
   Installed Packages
   gnome-software.x86_64                              3.28.2-3.el7                               @anaconda/7.6
   Available Packages
   gnome-software.i686                                3.22.7-1.el7                               rhel-7-server-e4s-optional-rpms

yum list FreeMat
   Installed Packages
   freemat.x86_64                                              4.1.1-1                                               @nux-dextop

yum list tpm2-tools
   Installed Packages
   tpm2-tools.x86_64                                       3.0.4-2.el7                                       @rhel-7-server-rpms

yum list python36-numpy-f2py
   Installed Packages
   python36-numpy-f2py.x86_64                                         1.10.4-7.el7                                         @epel

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how to tell which repository and installed rpm came from?

Post by TrevorH » 2019/05/23 16:33:10

@anaconda means that it was installed when you first installed the system.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply