Bug 201066
Summary: | yum info does not report installed-from repo | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Don Russell <fedora> |
Component: | yum | Assignee: | Jeremy Katz <katzj> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | vanmeeuwen+fedora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-04-25 18:10:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Don Russell
2006-08-02 16:19:51 UTC
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: i.e. Repo: Instaled, Core or 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 repo: installed repo: core repo: extras etc look at: showdupesfromrepos 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 Repo: installed After the change it now shows Repo: core In both cases, "yum info ethereal" (not installed on my system) shows me Repo: updates When I run "yum info <package>", I get the following messages: Setting up repositories: core updates extras 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 package in. So, in my example of mrtg, yum info would show me Repo: installed, core or Repo: installed, core, updates |