PDA

View Full Version : Howto edit yum.conf


Jman
2004-04-01, 07:54 AM CST
Yum (http://linux.duke.edu/projects/yum/) is a software updater installed by default in Fedora. It manages rpm (http://www.rpm.org/) packages. There is a lot of good software built for Feodra out there, but much of it is in 3rd party repositories. This howto will show you how to get at it.

Yum's configuration file is /etc/yum.conf. It is recommended you replace it with this yum.conf (http://fedorafaq.org/faq/samples/yum.conf) because it has more software and more mirrors.

Each software site has an entry with a name and one or more URLs, like [freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
This is the freshrpms (http://freshrpms.net/) entry. Just uncomment it by removing the #s in front of the lines, and you can get freshrpms.

Whenever you are told to add somthing to your yum.conf, either uncomment it if you have it or add the entry to the end.

I recommend you only uncomment those entries marked "stable" or at least avoid the "unstable" and "testing" ones.

Now we can get some software. Just use yum install mplayer to get the mplayer media player.

For the complete format of yum.conf, see man yum.conf

mars_hall
2004-04-01, 09:01 AM CST
Will this conf file work with Core2 Test2 or would I have to make some edits to get the correct updates?

Jman
2004-04-01, 09:18 AM CST
I'm not sure as I don't use test2. However, notice the $releasever variable. It should work at least for 2 final when it comes out.

Maybe someone with test2 can try it.

mars_hall
2004-04-01, 09:43 AM CST
Okay I will see what happens. I am going to finish getting the updates with up2date, since that is what is going on right now, then I'll try yum, which should just download headers this time.

mars_hall
2004-04-01, 10:07 AM CST
error:
>yum check-update
>using ftp, http[s], or file for servers, Aborting - #

The original yum conf is downloading headers now.