Carl Lowenstein wrote:
> On Dec 1, 2007 7:47 AM, rbw <[EMAIL PROTECTED]> wrote:
>> When updating/upgrading after installing Fedora
>> 8 I used YumEx which gives a selection panel and
>> panels to get a description and another panel to
>> list all the files that are installed with the app.
>>
>> It is true there are apps and tools that I
>> suppose others like me have also never used and
>> would like to know about and use. Now I want to
>> look up if that description field can be spit
>> out from the command line. Right now I would
>> probably use one of these:
>> man [command]
>> info [command]
>> apropos [command]
>>
> 
> If you want a lot of information, you could do the following:
> 
> [EMAIL PROTECTED] yum]$ yum info available > info_2007-12-01
> [EMAIL PROTECTED] yum]$ wc -l !$
> wc -l info_2007-12-01
> 65610 info_2007-12-01
> 
> And get 1000 or more pages of information, namely all of the
> descriptions that are brought up one at a time by Yumex.  Note that
> while there are only about 66000 lines, a few of them are pretty long.
> 
> You could then browse at leisure with the editor of your choice.

I thought of a couple other things.

debian's package manager has a command recipe
 dpkg -l [pattern]
which gives a nice tabulated 1-line output for installed packages
 Name .. Version .. Description

  (I wonder if there might even be a way to get a (_big_) list
   like this of available packages .. deb-gurus: ..?)

I haven't found an exact command like that in yum/rpm, but you can
compose an rpm query to report any custom output -- in this case, like
  rpm -qa --queryformat="%-20{NAME} %-15{version} %{SUMMARY}\n"  [pat]
and it will do about the same as the dpkg example .. et voilĂ !

  (It's possible there is a stock command or option to do this,
   and I just haven't discovered it, of course.)

==> Aha! : discovery/side note:
 rpm -q package-name
does *NOT* take wildcards :-(
but a query with a --queryformat spec seems like it *DOES* Yay! :-)

Ahhh <sigh type="relief">, that relieves a longstanding gripe. I have
always thought the recipe
  rpm -qa | grep pattern
was ugly, so now I have a better way!
 (Lan, you listening)

Now getting back to the original question, try this
  alias rpmlist='rpm -qa --queryformat="%-30{NAME} %-15{version}
%{SUMMARY}\n"'

  (mind the line wrap that may get into the email)

On my fc7 desktop system, this gives me a nice 2227-line summary. What
do you have in  _your_ rpmlist?

Regards,
..jim (off to edit my aliases file)


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to