Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-23-2005, 12:55 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 14

Rep: Reputation: 0
Unhappy I cannot use yum

No matter what I have tried I cannot get yum to work. I have read the man pages, I have googled, I have asked on other forums, I have ripped out my hair and still I cannot get yum to work. Every time I type yum check-update into the cli, yum sais that it's setting up the repo, then that it's downloading some file and then nothing. It just shows the [blah@blah]# thing. No list of available packages not even an error message. I know that I didn't make a typo when typing the url because it's downloading something from the repo. It cannot be the gpg keys because first I tried disabling them and then I enabled them and downloaded them. I don't have any firewalls that might get in the way. I've tried everything I can think of. If it helps my version of yum is 2.1.11-3. Please help me.
Old 08-23-2005, 01:06 AM   #2
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
I have a bit of an obvious question.
Are you root?
Old 08-23-2005, 01:06 AM   #3
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

That's what it's supposed to do. check-update returns a value, which you can see if you do 'echo $?' immediately after 'yum check-update'. This value can be used (usually in scripts) to see if there are any updates (see 'man yum' for what the values mean).

If you want to update, do 'yum update'.

Old 08-23-2005, 02:03 AM   #4
LQ Newbie
Registered: Aug 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Yes I'm doing it as root. Am I supposed to type literally echo $ or should I add something after that? Cuz when I entered echo $ the cli returned and $. Thanks for the answers.
Old 08-23-2005, 02:06 AM   #5
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The question mark needs to be there as well, so you type "echo $?" without the quotes.
Old 08-23-2005, 02:12 AM   #6
LQ Newbie
Registered: Aug 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I did that and the cli returned 0.
Old 08-23-2005, 02:46 AM   #7
LQ Newbie
Registered: Aug 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I read sumwhere that 100 means that there are updates and 0 means that there aren't any, but I havent' updated once since I installed a few months ago.
Old 08-23-2005, 04:22 AM   #8
LQ Newbie
Registered: Aug 2005
Location: Barcelona, Spain
Distribution: Fedora 3
Posts: 5

Rep: Reputation: 0
I donīt think riping out your hair will help.

But if you are root and it returns 0 then you are up-to-date, even though I must say it sounds strange if you havenīt updated your system for months.

When you do "yum check-update" yum starts reading and checking etc. You will see 3-4 # lines????
Then he will show you a list of rpmīs that needs to be installed, does it????

Try this:
yum clean all

yum will now clean all headers and packages and next time you do a "yum check-update" yum will re-create all of this, that will take some time so do it when you donīt need the computer/network for a while!

Old 08-23-2005, 05:16 AM   #9
LQ Newbie
Registered: Aug 2005
Posts: 14

Original Poster
Rep: Reputation: 0

Thank that worked!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 04:03 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM
Fast Yum Mirror Settings For Yum ( RH9 ) fortezza Red Hat 1 06-11-2004 05:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration