Yum still not working after updating FC4-FC5

Paul Howarth paul at city-fan.org
Tue Apr 11 21:01:24 UTC 2006


On Tue, 2006-04-11 at 13:52 -0700, Timothy Alberts wrote:
> I never had yum working in FC4 on my desktop machine.  I just upgraded
> to FC5 and yum is still not working.  I think it's because the
> repositores aren't updated to FC5, because the /etc/yum.conf file says
> it is for FC3. My guess is if I update the config file with the correct
> repositories, it will work.  Any suggestions on how to do this?

Well, that's a really ancient config. I suggest you start again from
scratch with it.

If you have upgraded to FC5 you *should* have a /etc/yum.conf.rpmnew
file. This is the new yum.conf for FC5 and should be very small. Get rid
of the old yum.conf and replace it with your yum.conf.rpmnew.

You'll have lots of other .rpmnew files scattered around your system too
that are worth investigating. Check /root/upgrade.log for details.

> I have the rpm packate yum-2.6.0-1.noarch.rpm on my computer, copied
> from my install CD's.  I have tried yum -i --force --replacefiles
> yum-2.6.0-1.noarch.rpm (also tried the -U) and I still have the
> same /etc/yum.conf file.  Am I not using the correct rpm command?

Never use rpm --force unless you *really* know what you're doing.

This behaviour is expected because yum.conf is a config file and rpm is
careful not to overwrite them. That's why you've got a .rpmnew file.

The new yum.conf file should give you a basic configuration with just
"core", "updates", and "extras" repositories enabled. By all means add
other repos, but follow the instructions from each repo for how to
configure it for FC5. They'll probably add files in /etc/yum.repos.d
rather than editing /etc/yum.conf.

Paul.




More information about the fedora-list mailing list