PDA

View Full Version : Setting up yum for FC 2


rtcary
19th February 2004, 09:44 PM
I am relatively new to UNIX/Linux, so yum.conf is not something I fully understand. Is there a sample of how I should setup yum.conf for FC 2?

Todd

nbecker
20th February 2004, 03:18 AM
Here you go
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
#exactarch=1
exactarch=0

#[fedora-us-1]
#name=Fedora Core 1 -- Fedora US mirror
#baseurl=http://download.fedora.redhat.com/fedora/fedora/1/i386/yum/os

#[fedora-us-1-updates]
#name=Fedora Core 1 updates -- Fedora US mirror
#baseurl=http://download.fedora.redhat.com/fedora/fedora/1/i386/yum/updates

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/yum/os

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/yum/updates

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/yum/updates-testing

#[2.6testkernels]
#name=Test Linux 2.6-test prerelease kernels for RHL9/rawhide
#baseurl=http://people.redhat.com/arjanv/2.5/

[stable]
name=fedora stable
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/yum/stable


#[livna-stable]
#name=Fedora Compatible Packages (livna-stable)
#baseurl=
# http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
#[livna-unstable]
#name=Fedora Compatible Packages (livna-unstable)
#baseurl=
# http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
#[livna-testing]
#name=Fedora Compatible Packages (livna-testing)
#baseurl=
# http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing

Bana
20th February 2004, 03:25 AM

Argh hehe, you beat me too it.

redhat71
20th February 2004, 10:16 AM
is it the same to update from /fedora/1.90/i386/yum/updates/ and /development/i386/ ?

i'm asking cause i found some very fast mirrors for the latter, but all the mirrors for the former i tried are slow

nbecker
20th February 2004, 11:57 AM
I don't think so

mhelios
20th February 2004, 01:10 PM
Originally posted by rtcary I am relatively new to UNIX/Linux, so yum.conf is not something I fully understand. Is there a sample of how I should setup yum.conf for FC 2?
Todd

Try these tutorials:
http://fedoranews.org/tchung/howto/2003-11-09-yum-intro.shtml
http://fedoranews.org/tchung/howto/2004-01-15-yum-speed.shtml
http://fedora.artoo.net/faq/#InstallSoftware

Originally posted by redhat71
is it the same to update from /fedora/1.90/i386/yum/updates/ and /development/i386/ ?

i'm asking cause i found some very fast mirrors for the latter, but all the mirrors for the former i tried are slow


/development/i386/ is known as "rawhide". It is where all the very latest development packages go before they make it to updates testing then finally updates.

The fedora/1.90 branch is specifically for the test1 releases. It's a devel snapshot at freeze date of rawhide.

redhat71
20th February 2004, 02:21 PM
Originally posted by mhelios
The fedora/1.90 branch is specifically for the test1 releases. It's a devel snapshot at freeze date of rawhide.

i am talking about /fedora/1.90/i386/yum/updates/
UPDATES for 1.90, not 1.90 itself

mhelios
20th February 2004, 02:59 PM
redhat71,
Could you post a link to this location you r refer to? I'm unable to find anything like that. There's a test1 directory but that is all I can see:
http://download.fedora.redhat.com/pub/fedora/linux/core/test/1.90/i386/

redhat71
20th February 2004, 06:18 PM
http://mirrors.kernel.org/fedora.us/fedora/fedora/1.90/i386/yum/

mhelios
21st February 2004, 04:08 AM
redhat71,
I am quite positive that the packages in:
<mirror>/fedora/1.90/i386/yum/updates
are specifically related to test1 updates and those in:
<mirror>/fedora/development/i386/Fedora/
are for rawhide.

Comparing the two lists showed many packages in /1.90/i386/yum/updates not in /development.
So, they're not interchangeable package repos.
HTH.

rtcary
21st February 2004, 06:27 AM
I have yum working now (many thanks), but so far there have been two packages with dependencies: gimp-perl & db4-jave. I used the # yum remove gimp-perl, but is this normal? Should there be unresolved dependencies?

Todd

mhelios
21st February 2004, 10:05 AM
Yes, it's not uncommon because this is not an end-release channel. The best you can do is remove the conflicting packages (as long as they're not important) and try again. Also, limit the number of repos you add to your yum.conf.

mhelios
21st February 2004, 10:49 AM
Apologies redhat71,
After closer analysis, the <mirror>/fedora.us/fedora/1.90/i386/yum/updates and <mirror>/fedora/development/i386/Fedora/ are actually one and the same.

The fedora.us 1.90 updates are just under different paths than the standard /development location. Probably so people know it's specifically for test1.

So, using either of these repos will produce the same updates, and if you change it back to one of the fast mirrors you found for /development branch, you should be better off.

rtcary
21st February 2004, 03:17 PM
<<< Also, limit the number of repos you add to your yum.conf. >>>

Could you give some more details about this? Probably I install too many options for Fedora because it is 8 hours later and yum is still working. Of course my play computer is an old one (I think a 133).

Thansk

mhelios
21st February 2004, 04:43 PM
Well, I currently only have fedora.us and Livna.org repos in my yum.conf. I have been able to happily use more, but I feel that restricting (extra) rep's to only those that hold the packages you can't find in core/updates/devel is more robust.

mhelios
21st February 2004, 04:46 PM
Also, run `yum clean` now and then to get rid of any stale headers.

redhat71
21st February 2004, 07:47 PM
Originally posted by mhelios
So, using either of these repos will produce the same updates, and if you change it back to one of the fast mirrors you found for /development branch, you should be better off.

ok, thanks

btw, was this site under attact or what? it was extremely slow earlier i could not finish loading any page

mhelios
22nd February 2004, 04:27 AM
No we were not under attack. :)