Output of "yum list installed"

Patrick O'Callaghan pocallaghan at gmail.com
Mon Jun 22 21:13:28 UTC 2009


On Mon, 2009-06-22 at 22:32 +0200, Michael Schwendt wrote:
> On Mon, 22 Jun 2009 16:09:04 -0400, Bill wrote:
> 
> > > Coincidence. Yum cannot know that there are updates in repos which
> > > are not enabled.
> > > 
> > If the repos were enabled at one time and the data is still available it can be 
> > checked,
> 
> It doesn't load the metadata. Not even the cached one.
> 
> Unlike "yum list available", which even refreshes _disabled_ repos.
> 
> > and of course yum knows when/if the package installed came from a repo 
> > which is not currently enabled.
> 
> Only if the installation history is found in yumdb (see /usr/sbin/yumdb),
> but it cannot rely on that information, and deleting yumdb doesn't change
> the colours in "yum list installed" output. All I does is to compare the
> installed package with the metadata for the enabled repos and detect the
> different version.  Then it prints the package in yellow, not in
> red. Additionally, it looks at yumdb to find out from which repo the
> installed package came from and prints out that detail.

This is all fascinating, but what I come away with is "yum has a complex
set of rules for color-coding its output, but the developers can't be
bothered documenting them".

poc




More information about the fedora-list mailing list