PDA

View Full Version : yum.conf for FC2


mike
19th May 2004, 02:43 AM
I'm sure Avatraxiom or vorte[x] will post a better one, but here is an yum.conf I have been using today to get my FC2 up and running.

It includes FC2 base rpms, updates, linva.org, Macromedia Flash, and Dags rpm repositories.

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

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/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/

###############
## Livna.org ##
###############

[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

[dag]
name=Dag APT Repository
baseurl=http://dag.freshrpms.net/redhat/fc$releasever/en/$basearch/dag
http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/fc$releasever/en/$basearch/dag
#gpgcheck=1

[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever
http://sluglug.ucsc.edu/macromedia/apt/fedora/$releasever
http://ruslug.rutgers.edu/macromedia/apt/fedora/$releasever
http://macromedia.rediris.es/apt/fedora/$releasever
#gpgcheck=1

Thoreau
19th May 2004, 02:53 AM
yeah mine is similar to that. eg uses /$release instead of a hardcoded version number...still doesn't work though, i get a timed out... just have to wait i suppose

logan5
19th May 2004, 03:45 AM

Just like the ftp's for ISO downloading, I am sure that all of the update mirrors are getting a lot of traffic too.

jhaislet
19th May 2004, 05:47 PM
Using "yum install xmms-mp3", it is downloading hundreds of headers from the server. Is there a way to make it JUST download and install xmms-mp3?

ilja
19th May 2004, 05:49 PM
Originally posted by jhaislet
Using "yum install xmms-mp3", it is downloading hundreds of headers from the server. Is there a way to make it JUST download and install xmms-mp3?
The problem on yum is, that it downloads allways all the new headers. But you can download only the xmms-mp3 file and install it with rpm -ihv. Search for it on fedoratracker.org

jhaislet
19th May 2004, 05:57 PM
Thanks for the help!
I found the file and get an error while installing.

[root@fedora2 Desktop]# rpm -ihv xmms-mp3-1.2.10-0.lvn.1.1.i386.rpm
warning: xmms-mp3-1.2.10-0.lvn.1.1.i386.rpm: V3 DSA signature: NOKEY, key ID a109b1ec
error: Failed dependencies:
xmms = 1:1.2.10 is needed by xmms-mp3-1.2.10-0.lvn.1.1
[root@fedora2 Desktop]#


Any ideas on how to fix this?

ilja
19th May 2004, 06:05 PM
You've got a wrong xmms version.

Type xmms -v and look what version you have.

D@ Mick
19th May 2004, 06:37 PM
thx, and do you know how I can get Up2date to work ??It's like the thing freezes when it fetches headers

ilja
19th May 2004, 06:42 PM
Change the Mirror it refers to. http://www.fedoraforum.org/forum/showthread.php?s=&threadid=693&highlight=up2date+mirror

espique
19th May 2004, 10:01 PM
it's downloading all these headers because it needs to know what is available for download. it only does that ONCE and on subsequent calls it only downloads new headers that were added since the last call. once you downloaded all the headers they stay in your local cache and you can instruct Yum to use that cache without downloading new headers.

so once your header cache is filled up and you know you got the headers for a certain program you simply do a

yum -C install certain_program

the -C tells yum to only use headers in your cache.

sascha

mattm
19th May 2004, 11:47 PM
would apt-get solve the issue for a user wanting to install a package and its dependencies in one command?

I'm used to working with gentoo, and emerge has made me real lazy in the sense I never need to look for the dependencies. :rolleyes:

viper8
20th May 2004, 05:15 AM
mattm: yes, both apt-get and yum take care of the whole dependencies bit

apt:
apt-get install <package>

yum:
yum install <package>

Elfod
6th June 2004, 01:34 PM
mike's confg for yum worked perfectly first time for me installing xine - it appears that yum rocks!

Now I can finally watch my region 1 dvds again that windoze told me were forbidden!

Thanks all - this forum is cool, getting all my bits working on my laptop slowly but surely.

mt_deb
8th June 2004, 05:26 AM
I tried mike's conf . I get this dumb error. Im sure it is because I have not learned enough yet , but does anyone have a suggestion for this error ? Thanks guys your the best.

Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Dag APT Repository
Error - /var/cache/yum/dag/header.info cannot be found
Please ask your sysadmin to update the headers on this system.
[debbie@localhost debbie]$

ilja
8th June 2004, 05:39 AM
yum search something
as root and it will download the headers.

Elfod
8th June 2004, 06:04 AM
Originally posted by mt_deb
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Dag APT Repository
Error - /var/cache/yum/dag/header.info cannot be found
Please ask your sysadmin to update the headers on this system.
[debbie@localhost debbie]$

It's because you didin't run it as root

Evert
8th June 2004, 07:02 AM
i am using this yum.conf:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
# Added this because some mirrors go down and then retying takes forever.
retries=1

##################
## Basic Fedora ##
##################

[fedora-us-2]
name=Fedora Core 2 -- Fedora US mirror
baseurl=http://fedora.quicknet.nl/fedora/fedora/2/i386/RPMS.os
gpgcheck=1
[fedora-us-2-updates]
name=Fedora Core 2 updates -- Fedora US mirror
baseurl=http://fedora.quicknet.nl/fedora/fedora/2/i386/RPMS.updates
gpgcheck=1
[fedora-us-2-stable]
name=Fedora Linux (stable) for Fedora Core 2 -- Fedora US mirror
baseurl=http://fedora.quicknet.nl/fedora/fedora/2/i386/RPMS.stable
gpgcheck=1
[livna stable]
name=Fedora Core 2 Livna Stable
baseurl=http://rpm.livna.org/fedora/2/i386/yum/stable
gpgcheck=1
[livna unstable]
name=Fedora Core 2 Livna Unstable
baseurl=http://rpm.livna.org/fedora/2/i386/yum/unstable
gpgcheck=1
[livna testing]
name=Fedora Core 2 Livna Testing
baseurl=http://rpm.livna.org/fedora/2/i386/yum/testing
gpgcheck=1

And also apt-get. I have ceated a cron-script, and every day at 2.30pm, apt-get update and apt-get dist-upgrade is running, and downloading and installing the latest updates.

on my sources.list the ayo-repsositorie is added.
ps: my comp is always on

mt_deb
8th June 2004, 08:00 AM
Oh sheesh , now I should have figured that out (grin) thanks for pointing out the obvious for me. I love learning all this stuff though. It keeps me busy when hubby has to run off on a mission ( He's with Homeland Security ) So learning Linux is a much better alternative then chewing my nails worrying. (grin)

Thanks again

Debbie