[Yum] Feature request ... or How to.

John Reiser jreiser at bitwagon.com
Sun May 2 23:28:46 UTC 2010


> yum list installed
> 
> it even tells you which repo the pkgs came from.

The formatting is not friendly to scripts.  It's OK to introduce
a line break to insure columnar format for a terminal,
but output to a plain file should put all the info for one package
onto just one line.

  $ yum list installed  > yum.out  # redirect stdout to an IF_REG file
  $ more yum.out
 [[snip]]
NetworkManager.x86_64              1:0.7.2.995-2.git20100225.fc11
                                                              @updates
 [[snip]]

Notice the line break between the version "...fc11" and the repo 'updates'.
This makes the info hard to parse using 'read' in bash, for instance.
Also there are mystery repos such as 'installed':
ConsoleKit.x86_64                  0.3.0-8.fc11               installed

-- 


More information about the Yum mailing list