Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-18-2005, 04:32 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 2
Rep:
|
yum list too big for terminal
I'm a real newbie here. This is my first post to any site for anything, (I hope this works).
My problem is with the yum list being too big for the terminal.
When I type in "yum list available" about 200 or so lines of text flash before me in a matter of a few seconds. The scroll bar only allows me to scroll back so far (somewhere in the "Rs") so anything yum showed me that came before the "Rs" I get to see for a whopping millisecond or so.
Is there some way I can slow\pause the list or have it display one page at a time? I've looked in the man pages and have either missed it or am out of luck because I didn't see anything that could help. I'm sure there's a simple command that would help but I know very few commands\arguments.
Any help would be greatly appreciated.
|
|
|
08-18-2005, 04:47 AM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Hi, and welcome to LQ!
Code:
yum list available | less
should do the trick ... less is a so called "paginator",
it will aloow you to scroll back and forth through the
output. a single letter q will quit it.
Cheers,
Tink
|
|
|
08-18-2005, 04:58 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 2
Original Poster
Rep:
|
Tank You
Thank you, it worked like charm. I suspect I will be able to use this with other list that are too big.
|
|
|
08-18-2005, 01:27 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Most welcome, and yep - you just discovered the
beauty of pipes in Unix/Linux :} ... they allow you to
chain varied processes together quite effectively.
Btw, less can do many other things, too, like searching
forth and back, allowing to switch into edit mode, ...
Have a read of
man less
Cheers,
Tink
|
|
|
08-18-2005, 02:12 PM
|
#5
|
Member
Registered: Oct 2004
Posts: 215
Rep:
|
If for some reason you wish to save a list of what yum displays in a text file, you can type:
Code:
yum list available > filename.txt
Doing this will save the output as a text file that you can transfer or read later.
|
|
|
08-18-2005, 02:34 PM
|
#6
|
LQ Newbie
Registered: Jul 2005
Posts: 19
Rep:
|
How about "yum list available | grep myfilename"
to find a more specific file?
|
|
|
All times are GMT -5. The time now is 06:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|