Red Hat Bugzilla – Bug 201066
yum info does not report installed-from repo
Last modified: 2014-01-21 17:54:55 EST
Description of problem:
When a packageis installed, "yum info <package name>" reports the repo as
Version-Release number of selected component (if applicable)
always - this is an enhancement request
Steps to Reproduce:
1. choose a package that is already installed, or install a new package
2. yum info <package name>
3. check the "repo:" line
installed from extras
installed from core
installed from *unknown*
etc. Some indication of where the package likely came from.
The resaon I want this information is for when reporting bugs, I know if it's a
"core" issue or an "extras" issue. Case in point, I opened a bug against ncftp
using Core... later found out it s/b extras....
Here is the display from yum info ncftp.
$ yum info ncftp
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Name : ncftp
Arch : i386
Epoch : 2
Size : 1.1 M
Repo : installed
Summary: Improved console FTP client
Ncftp is an improved FTP client. Ncftp's improvements include support
for command line editing, command histories, recursive gets, automatic
anonymous logins, and more.
There's no way to definitely know where the package came from once it is
installed. It would be a guess based on what is currently in repos but it
wouldn't be definitive. I don't like giving out best-guess information that way.
I agree.... how about something a little more "vague", but valuable?
On the "Repo:" line, list the repos yum fins the package in:
Repo: Instaled, Core
Repo: Installed, Extras
It doesn't mean it was necessarily installed FROM those repos, but it means
those packages were found in those repos...
The reason I want that info is to help with bug reporting. Even if I instal a
package from Core, then later it is moved to Extras, the "yum info" will
correctly report it as "Installed, Exatras"... aiding in where to get more info,
or where to report bugs etc.
Of course, I am only mentioning "Core" and "Extras" here, but it should include
any repos yum is configured for...
What do you think? :-)
One can find the repository the package *currently* is in, with a command like:
; See if 'package' is from repo 'extras'
# yum --disablerepo=* --enablerepo=extras list | grep -v "installed" | grep package
You (optionally) need to grep -v installed to prevent the reporting of the
installed package as well. yum does report the installed packages regardless of
the repository the installed package came from (and whether the repository the
package came from is enabled or disabled). Appearantly, yum doesn't know, and
doesn't care either.
I saw a message earlier this week (7 Aug 2006 on the fedora-announce-list)that
discussed something called "Fedora Usability" and how it's goal is to make
things more intuitive.
What is more intuitive than "yum info <package name>"? What do I expect to learn
from this command? Perhaps size of the package, perhaps whether it is installed
or not, which repo it could be found in, a description of the package and so on.
In your example, I don't want to guess "is it in extras"? Is it in core? "yum
info..." already looks based on the yum config files... I just want yum to tell
me what it knows...
yum --disablerepo=* enablerepo=extras list..... is WAY too complicated to learn
the answer to a very simple question? Which (yum configured) repos contain a
specific package. yum already determines the answer but doesn't report it. I'm
asking that it does report it, even when the package is already installed.
repo: installed, extras
in the yum man page.
See if that helps you.
The man page of yum-2.6.1-0.fc5 does not have such information.
sorry, yum.conf man page.
I tried setting the showdupesfromrepos=1 option in the yum.conf file but it did
not have the desired effect.
Prior to the change "yum info mrtg" (installed on my system) showed me
After the change it now shows
In both cases, "yum info ethereal" (not installed on my system) shows me
When I run "yum info <package>", I get the following messages:
Setting up repositories:
It appears a special case "installed" repo is implied because "yum info mrtg"
shows "repo: installed" on my system.
I gather yum is actually going to look for the specified package in each of
those repositories, and tell me which *one* the package was found in.
I would like (as a yum RFE) for it to tell me *all* the repos it found the
So, in my example of mrtg, yum info would show me
Repo: installed, core
or Repo: installed, core, updates