Re: Feature request ... or How to.
Seth Vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
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