DUMB YUM QUESTION

markwho
Posts: 675
Member Since:
2006-09-24

This is from putty

When you run yum list, how do you view all of the list.

When the list finishes you can't go back to the beginning of the list.



jfinstrom
Posts: 2008
Member Since:
2007-03-07
yum list |less also for a

yum list |less
also for a specific package like the rhino package
yum list | grep rhino

--



markwho
Posts: 675
Member Since:
2006-09-24
Many thanks for the fast

Many thanks for the fast reply!



KodaK
Posts: 1885
Member Since:
2006-06-14
Alternately, change the

Alternately, change the settings in putty so that the scrollback buffer is something better than the paltry 200 lines it does by default. Then you can just use the scrollbar to go back and forth through the list. Right click the title bar, go to change settings. Click on "Window" and change the setting for lines of scrollback. This is handy for cli output too, but you might want to change the option for "Reset scrollback on display activity."

Also, you can capture the output in a file, then edit it, then you can search through it for keywords if you need to. "yum list > somefile.txt"

Also, yum has a built in search. "yum search keyword" grep is case sensitive by default, so "yum list | grep rhino" won't find "Rhino." Whereas yum search rhino will find Rhino or RhInO for that matter. Granted, you could also do yum "list | grep -i rhino" and do pretty much the same thing, however "yum search" will give you a short description of the packages that match, which can come in handy.

Just alternate ways, hopefully I've overwhelmed and confused you so that your only recourse is to hire me to do it for you. That's my goal.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



markwho
Posts: 675
Member Since:
2006-09-24
Thanks

KodaK,

Thanks for the additional info.

And when you said "...hopefully I've overwhelmed and confused you..."

You haven't....I stay that way. : )

It's my natural state.



revmrhamilton
Posts: 30
Member Since:
2007-11-28
What I use when working on a

What I use when working on a machine remotely (or even locally) is to tee the output for later use.

E.g., assuming you login to a bash account:
yum list 2>&1 | tee yum.list
This captures both stdout and stderr for later use as well as output to the terminal. You can then print, view, archive, move to another machine, etc. I especially use this when the output is very verbose.

Mike Hamilton

--

Rev



markwho
Posts: 675
Member Since:
2006-09-24
Thanks for the info

Thanks for the info Mike.

Every piece of knowledge I get helps me get better at the linux game.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.