Re: Feature request ... or How to.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sun, 2 May 2010, John Reiser wrote:

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


yes - screenscraping is a bad idea. If you want to do programmatic things there are better and simpler interfaces.

-sv

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux