PDA

View Full Version : Core 2 yum Config


KaiN
19th May 2004, 03:19 AM
I searched all over for a posted yum.conf file to use in core 2 but I had to do a lil reading on how to make my own and thought I would post my config file here.

It's just a start but works and is fast.


[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
retries=1

##################
## Fedora Core 2##
##################

[updates]
name=download.fedora.us $releasever - $basearch - updates
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.updates
gpgcheck=1

[os]
name=download.fedora.us $releasever - $basearch - os
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.os
gpgcheck=1

[testing]
name=download.fedora.us $releasever - $basearch - testing
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
gpgcheck=1

[stable]
name=download.fedora.us $releasever - $basearch - stable
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.stable
gpgcheck=1

[unstable]
name=download.fedora.us $releasever - $basearch - unstable
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable
gpgcheck=1

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

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

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

[flash-plugin]
name=Macromedia flash-plugin site
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever

[dag]
name=Fedora Core 1 Dag Wieers' repository
baseurl=http://apt.sw.be/redhat/fc$releasever/en/i386/dag

mick
19th May 2004, 04:03 AM
KaiN -

That config file did the trick - I dl'd synaptic and apt, and am now happily paring my new FC2 to a little more manageable size - thanks and good job!

ilja
19th May 2004, 07:26 AM

I would comment the testing stuff out as default, and then if someone wants to have it, he/she would uncomment it then.
//edit:
So to not only complain here my yum.conf for FC2

The Update Directory is not yet there and must be uncommented later
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=1

[base]
name=Fedora Core $releasever - $basearch - Base (RWTH)
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/linux/fedora-core/$releasever/$basearch/os/

#[updates-released]
#name=Fedora Core $releasever - $basearch - Released Updates (RWTH)
#baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/linux/fedora-core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/

[freshrpms]
name= FreshRPMS
baseurl=http://wftp.tu-chemnitz.de/pub/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
[NewRPMS]
name = NewRPMS
baseurl=http://wftp.tu-chemnitz.de/pub/linux/newrpms/fc$releasever/
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever
[ATrpms]
name=ATrpms stable
baseurl=http://apt.physik.fu-berlin.de/fedora/$releasever/en/$basearch/at-stable
baseurl=http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-stable/
name=ATrpms good
baseurl=http://apt.physik.fu-berlin.de/fedora/$releasever/en/$basearch/at-good
baseurl=http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-good/
[DAG]
name=DAG
baseurl=http://apt.sw.be/redhat/fc$releasever/en/$basearch/dag

#[Nils Philippsen]
#name= Nils Philippsen packets
#baseurl=http://lisas.de/~nils/yum/fedora/$releasever/$basearch/extras/
[macromedia]
name=Macromedia
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever/

KaiN
19th May 2004, 09:35 AM
Yeah that was mentioned in the Tutorial but I just left it like this because yum will show that it is a test file.

Good idea though.

D@ Mick
19th May 2004, 05:41 PM
None of those configs work :s Where can I find a tutorial on the yum.conf file??

ilja
19th May 2004, 05:47 PM
Ok, I have now changed it so now it works.


[base]
name=Fedora Core $releasever - $basearch - Base (RWTH)
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/linux/fedora-core/$releasever/$basearch/os/

#[updates-released]
#name=Fedora Core $releasever - $basearch - Released Updates (RWTH)
#baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/linux/fedora-core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/

[freshrpms]
name= FreshRPMS
baseurl=http://wftp.tu-chemnitz.de/pub/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
[NewRPMS]
name = NewRPMS
baseurl=http://wftp.tu-chemnitz.de/pub/linux/newrpms/fc$releasever/
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever
[ATrpms]
name=ATrpms stable
baseurl=http://apt.physik.fu-berlin.de/fedora/$releasever/en/$basearch/at-stable#baseurl=http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-stable/

[DAG]
name=DAG
baseurl=http://apt.sw.be/redhat/fc$releasever/en/$basearch/dag
[Livna.org]
name=Livna.org - (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
#[Nils Philippsen]
#name= Nils Philippsen packets
#baseurl=http://lisas.de/~nils/yum/fedora/$releasever/$basearch/extras/
[macromedia]
name=Macromedia
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever/
#[mozilla.org]
#name=Mozilla updates
#baseurl=http://ftp.mozilla.org/pub/mozilla.org/mozilla/yum/SeaMonkey/releases/current/redhat/1

D@ Mick
19th May 2004, 06:08 PM
Still nothing, I get these errors

# yum list
Gathering header information file(s) from server(s)
Server: ATrpms stable
Server: DAG
Server: Livna.org - (stable)
Server: NewRPMS
Server: Fedora Core 2 - i386 - Base (RWTH)
Server: Fedora.us Extras (Stable)
retrygrab() failed for:
http://download.fedora.us/fedora/fedora/2/i386/yum/stable/headers/header.info
Executing failover method
retrygrab() failed for:
http://mirrors.kernel.org/fedora.us/fedora/fedora/2/i386/yum/stable/headers/header.info
Executing failover method
retrygrab() failed for:
http://fedora.quicknet.nl/fedora/fedora/2/i386/yum/stable/headers/header.info
Executing failover method
retrygrab() failed for:
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/yum/stable/headers/header.info
Executing failover method
retrygrab() failed for:
http://fedora.mirror.sdv.fr/fedora/fedora/2/i386/yum/stable/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://download.fedora.us/fedora/fedora/2/i386/yum/stable/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

ilja
19th May 2004, 06:12 PM
comment (#) all the problematical lines out.

h4d
19th May 2004, 06:26 PM
This yum.conf seems to work great, but Fedora is growing very fastly. We need more mirrors!
I keep getting the following:

Error getting file ftp://sunsite.informatik.rwth-aachen.de/pub/linux/fedora-core/2/i386/os//headers/nscd-0-2.3.3-27.i386.hdr
[Errno 4] IOError: [Errno ftp error] 421 There are too many connected users, please try later.

ilja
19th May 2004, 06:33 PM
Just try a server near you. I live in Aachen, so the RWTH Aachen is perfect for me. In USA there are more then enough very good server.

Pegasus
19th May 2004, 06:35 PM
You can also try the mirrors in switzerland. Also i'm close to ilja's location, i use mirrors in switzerland, because they are very fast ;)

bradthemad
19th May 2004, 06:50 PM
...
[freshrpms]
name= FreshRPMS
baseurl=http://wftp.tu-chemnitz.de/pub/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms


Quoting the holy yum.conf manual:

"If you list more than one baseurl= statement in a repository you will find yum will ignore the earlier ones and probably act bizarrely. Don't do this, you've been warned."


The correct way would be:

baseurl=http://wftp.tu-chemnitz.de/pub/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms

...or a little easier to read:

baseurl=
  http://wftp.tu-chemnitz.de/pub/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
  http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms