PDA

View Full Version : What's with Yum?



reghuram
26th October 2006, 04:21 AM
Hello,

I'm trying to do a simple list of packages installed in my system using the command: yum list
But I keep getting errors such as "baseurl not found", then after editing the fedora-core.repo file now I get the error "Cannot open/read repomd.xml file for repository core:"

My question is: Is there anyway to get Yum working so that it dosen't keep trying to access the internet? Is there any other package management program whose default is to check the local harddrive 1st and then access the internet only if and when its told to?

My purpose is to do the following:
yum list | grep -i sendmail
yum remove sendmail

I just want to remove sendmail from my system. Why or why do I need to acess a network repository in order to do that?

marko
26th October 2006, 04:39 AM
Yes, there's a yum option, take a look at :



$> yum --help
......
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache

What you want is the -C option to make it run from the local yum
cache. Doing it that way means it won't know about any packages
that were put in repositories since the last time you ran yum.
It would only get the header(s) if the action you ask requires it.

You can also fix the "can't find baseurl issue" by editing the
/etc/yum.repos.d/*repo files you have set to be enabled so the
"mirrorurl" statement is commented out and you have the
baseurl statement commented in. Normally you'd like the
mirrorurl in use but I think now with FC6 out, there's
ton's of load on the mirrors and the mirror hosts are down
but the base ones still are working. Later when the load is
normal again, you'd want to flip the comments again.

I cut and paste one of the mirrorurl's that was
failing for me according to yum into firefox and visited it
and I got this text statement:

"Fedora Core 6
We are working hard to bring fedora.redhat.com back up to its fully operational state.
Until then, please visit our BitTorrent tracker or list of mirrors if you are trying to download Fedora Core 6. ....."

Mark

strikeforce
26th October 2006, 04:41 AM
yum is under a lot of stress at the moment with the release of fedora core 6. It is likely that it will be fixed within the next couple of days.

reghuram
26th October 2006, 04:46 AM
Thanks for the help guys, appreciate it. Will try the -c option.