PDA

View Full Version : Example Yum Config


delsvr
1st June 2004, 10:42 AM
I understand that it depends largely on what specific package I'm attempting to install, but is it a significant problem if I setup the repository mirror in yum.conf to i386 despite being on an amd64 platform? I'm trying to enable MP3 support, but a bunch of the dependencies are only available for i386 (eg. gstreamer-plugins-mp3). If this is generally unsafe, does anyone know of any updated repositories with amd64 support for packages like the ones found in Livna's database?

lauterm
2nd June 2004, 05:44 PM
You should be able to run any 32bit apps you want. That is the whole point of the amd64. There are not as many repositories for amd64. However, I list a few I have found on the bottom. There are good ideas for mp3 support in the thread about it. The only real danger in using 32bit apps is that you will have twice as many packages to keep up-to-date.

Actually, I decided to just attach the yum.conf that I have put together so far. Hope it helps some and no I haven't found a repository that has an amd64 version of xmms-mp3 yet. Check out the thread on that subject.

Bana
3rd June 2004, 08:50 AM

I have found that for simple 1 package items that it is easiest to just visit the srpm folder and download the src rpm http://rpm.livna.org/fedora/2/i386/SRPMS.stable/xmms-mp3-1.2.10-0.lvn.2.2.src.rpm then (remeber this command well) rpmbuild --rebuild --target x86_64 xmms-mp3* If you have all the dependencies (the hardest part but usually you just need a yum install xmms-devel) then go over to /usr/src/redhat/RPMS/x86_64 and install your fresh golden-brown xmms-mp3.x86_64.

When it gets hard is for the large, multi package apps like Xine and Mplayer. If anyone has had any luck I would like to hear of it.

delsvr
7th June 2004, 02:02 PM
For the record, it works great. I'm a gentoo convert and it's taking me a while to get the hang of these RPM's, but this helped a lot. Thanks Bana.

Lauterm: I don't think you attached the file.

lauterm
7th June 2004, 05:43 PM
I attached it again and also pasted it into the message. Sorry.

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

[core]
name=Fedora Linux $releasever - $basearch - core
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core

#[extras]
#name=Fedora Linux $releasever - $basearch - extras
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/extras

#[alternatives]
#name=Fedora Linux $releasever - $basearch - alternatives
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/alternatives

[updates]
name=Fedora Linux $releasever - $basearch - updates
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates

#[freshrpms]
#name=Fedora Linux $releasever - $basearch - freshrpms
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms

[duke]
name=Fedora Linux $releasever - $basearch - duke
baseurl=http://fedora.linux.duke.edu/fedorax86_64/fedora.us/$releasever/$basearch/RPMS.stable

[dag]
name=Fedora Linux $releasever - $basearch - dag
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag/

Bana
12th June 2004, 05:07 PM
Excellent yum config lauterm. I will go ahead and sticky this for everyone else to use. For the record, it works great. I'm a gentoo convert and it's taking me a while to get the hang of these RPM's, but this helped a lot. Thanks Bana. No problem. :D

mbirkis
26th August 2004, 11:07 PM
i thought i should post mine to...

[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
baseurl=http://download.atrpms.net/mirrors/fedoracore/$releasever/$basearch/os
http://rpmfind.net/linux/fedora/core/$releasever/$basearch/os
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/$releasever/$basearch/os


[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.atrpms.net/mirrors/fedoracore/updates/$releasever/$basearch
http://redhat.linux.ee/pub/fedora/linux/core/updates/$releasever/$basearch
http://fr2.rpmfind.net/linux/fedora/core/updates/$releasever/$basearch

[Fedora.us]
name=Fedora.us - $basearch - Extras
baseurl=http://fedora.linux.duke.edu/fedorax86_64/fedora.us/$releasever/$basearch/RPMS.stable

[Dag Wieers]
name=Dag RPM Repository for Fedora Core
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag

[Livna]
Name=Livna RPM, Fedora Core $releasever - $basearch
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.stable

[freshrpms]
name=FreshRPMs
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ftp.us2.freshrpms.net/linux/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/

Works wonderful, i think :)

ilja
2nd September 2004, 07:29 AM
Works wonderful, i think :)
don't think so, because you have fedora.us+livna.org and the others mixed. That can lead to conflicts.

phonecian
3rd September 2004, 07:49 AM
Has anyone successfully installed MPlayer lately from the FC2 rpm? Love to know if I'm going crazy on my own or if there's a nore general problem:
[installer@localhost installer]$ su
Password:
[root@localhost installer]# rpm -Uvh mplayer-common-1.0pre5-2.i386.rpm mplayer-1 .0pre5-2.i386.rpm
warning: mplayer-common-1.0pre5-2.i386.rpm: V3 DSA signature: NOKEY, key ID 75aa 026a
error: open of mplayer-1.0pre5-2.i386.rpm failed: No such file or directory
Phonecian

imdeemvp
3rd September 2004, 08:44 AM
phonecian,

i did just follow this link for mplayer (http://fedoraguide.org/fc2/fc2beginnersguide.html#yummplayer) and i did via yum just make sure your repsitories (http://fedoraguide.org/fc2/fc2beginnersguide.html#yumconfigureyummirror)
are configure properly and dont forget to import the KEY

PeTzZz
10th September 2004, 11:48 AM
don't think so, because you have fedora.us+livna.org and the others mixed. That can lead to conflicts.
I used freshrmps earlier and it was the only extra place besides those basic places. Now I want to use fedora.us and livna instead of freshrmps. Can it lead to conflicts too?
:)

blueoakmo
10th September 2004, 07:03 PM
You have to include the dependent rpm's:

rpm -ivh mplayer-common.....rpm mplayer-gui..............rpm mplayer-skin-default........rpm

I can get the specifics later - not at my linux machine and didn't memorize them :rolleyes:

Don't forget the -U is for an upgrade... use -i for new install

Ailmanki
14th November 2004, 10:17 AM
http://fedora.linux.duke.edu/fedorax86_64/fedora.us/3

this folder does not even exist; how is this yum.conf supposed to work on fc3? :mad: :confused: :(

lauterm
14th November 2004, 11:53 PM
If that's the only one that's failing, just comment it out like so:

#[duke]
#name=Fedora Linux $releasever - $basearch - duke
#baseurl=http://fedora.linux.duke.edu/fedorax86_64/fedora.us/$releasever/$basearch/RPMS.stable

Psquared
15th November 2004, 01:11 AM
I used freshrmps earlier and it was the only extra place besides those basic places. Now I want to use fedora.us and livna instead of freshrmps. Can it lead to conflicts too?
:)

It might but my experience has been that dag, atrpms and freshrpms should not be enabled along with the fedora.us + livna repos at the SAME TIME. I had to download a couple of things from dag and atrpms that were not available anywhere else. I just enabled those repos for that download and then ## them out afterwards.

I've had no problems since then.

PeTzZz
15th November 2004, 08:09 AM
I removed packages I installed from freshrpms and installed them from livna. Those were only xmms-mp3 and two more that I don't remember any more.

Now I am going to use livna and fedora.us only. Other ones I will install using tarballs. When I used FC1 I mixed livna and fedora.us wiht freshrpms and there were no problems, but it does not matter, because it is not good as it is said.

Ailmanki
15th November 2004, 09:45 PM
livna doesnt provide 64bit rpms anymore... so you mean you use old stuff from fc2 32bit in your fc3 64bit :p

verden01
19th November 2004, 04:29 AM
does anyone have a yum.conf for FC 3x86_64

xodeus
4th December 2004, 01:37 PM
Anyone who has built the plugins? If yes please send them to xodeus at gmail dot com. Then I'll upload them to a server so others can get it too.

vanstrien
2nd February 2005, 06:18 AM
Just installed FC3 on my new amd64 this past weekend. I've looked through the yum.conf's which were posted earlier.

Is there any reason to not hard code a few of the i386 repositories for when they don't support 64 bit binaries?

lauterm
2nd February 2005, 06:25 AM
vanstrien,

It should work. However you will run into some dependency issues since not every repository is on the same page when it comes to suing 32 and 64 bit packages together. Back in the FC2 days I just gave up and used 32 bit FC2. Things should be better by now. I just haven't had time to play with it much.

flashdog
12th February 2005, 09:15 PM
Hallo,
Is this yum.conf conflict free for amd64?

[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
timeout=10

#############################
# Fedora Main
#############################

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://wftp.tu-chemnitz.de/pub/linux/fedora-core/$releasever/$basearch/os/
baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core
baseurl=ftp://ftp.tugraz.at/mirror/redhat-linux/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://wftp.tu-chemnitz.de/pub/linux/fedora-core/updates/$releasever/$basearch/
#baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=ftp://ftp.tugraz.at/mirror/redhat-linux/fedora/linux/core/updates/$releasever/$basearch/

############################
## Alternate Repositories ##
############################
# http://dag.wieers.com/home-made/apt/FAQ.php
[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag

[freshrpms]
name=FreshRPMs
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.ie.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.ie.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.uk3.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.uk3.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.us5.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.us5.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.pt.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.pt.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.si.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.si.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/

#############################
# Macromedia
#############################

[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

I am not sure, whether this is correct:
[freshrpms]
name=FreshRPMs
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.ie.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.ie.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.uk3.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.uk3.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.us5.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.us5.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.pt.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.pt.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/
http://ayo.si.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
http://ayo.si.freshrpms.net/fedora/linux/$releasever/i386/freshrpms/

Melio
28th February 2005, 05:57 PM
it seems we need a repository just for yum configs :)

Kenotic
16th March 2005, 02:26 PM
Since this is already here I thought I would ask. Is there a yum repository that has x86_64 builds of xfce 4.2? I can not seem to find any.

t3gah
16th March 2005, 06:03 PM
I found this site:

Fedora Core 2 for x86_64 Release FAQ
http://www.linuxtx.org/amd64faq.html

And even though its not for FC3 the faq goes on to tell how to make 64bit rpm's from 32bit i386 rpms.
Quote from amd64faq.html:
Where can I get additional software for this release?
As x86_64 is a relatively new platform, many of the repositories available do not have a tree for x86_64 64bit 3rd party apps and utilities. The x86_64 builds of most of fedora.us (http://www.fedora.us/) against FC2 are available from the x86_64 Extras (http://fedora.linux.duke.edu/fedorax86_64/fedora.us/2/x86_64/) repository and I am working on filling in what is not already there. You will want to add my gpg key with 'rpm --import http://www.linuxtx.org/jmforbes_pubkey.asc' before you use this repository.

There is also this link that has repository info on it: http://fedora.linux.duke.edu/wiki/Extras

There are other threads that have dealt with this issue:
http://www.linuxdeveloper.net/forum/showthread.php?t=19815
http://www.linuxadvisory.com/forum/showthread.php?t=19179

And here is a RedHat.com ftp site for FC3 64bit rpm's: ftp://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/x86_64/

GreyWizzard
20th May 2005, 11:09 PM
Followed the suggestions for the first example of the .conf file and everything went fairly well, but now I am getting the message:

warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 6b8d79e6
public key not available for speex-1.0.5-1.1.fc3.rf.x86_64.rpm

I thought I followed all the links to keys, but I guess I missed something. Since I have tried this several times, would one of you point me to what I have missed (please)?

If you would be kind enough to include the exact steps to get it and include it in the keyring, I would be grateful.

Seems I am having an M$ moment.... :confused:

subgenius
10th June 2005, 06:51 PM
remember to import the GPG keys for each repository. For freshrpms the command is:

rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms

these can be found for each site in their respective directories. Additionally, you'll want to make sure that you get the GPG key for your specific system (i.e. i386 or x86). Some sites provide a "generic" GPG key, such as the one listed above, which include the GPG for i386 AND x86.

majnam2002
9th July 2005, 12:13 AM
I went to FC3 for a new AMD64 machine I built this last week-end because I was having so many problems with FC4.

Now I am having problems with getting FC3 updated with yum. I select all (lots of packages) and I get a Transaction failed. I tried several updates with small groups of packages, I mean I selected 5 or 10 at a time and those seemed to work. I found that kde (I use Gnome but might want to try KDE) had some update that the transaction failed on.

I have added livna and extras to the default, I think the default is fedora core, and....something else.

I have heard of the imcompatiblity of livna with freshrpms and others. I heard there are two groups of rpms.

What are the two groups so we know which ones play together nice?

If I have a 32bit and 64bit version of a program, and I launch a program from GNOME, how do I know which version is being used? I want to use 64 bit every chance I get, right?

Cheers!

92b16vx
10th July 2005, 12:58 AM
I have found that for simple 1 package items that it is easiest to just visit the srpm folder and download the src rpm http://rpm.livna.org/fedora/2/i386/SRPMS.stable/xmms-mp3-1.2.10-0.lvn.2.2.src.rpm then (remeber this command well) rpmbuild --rebuild --target x86_64 xmms-mp3* If you have all the dependencies (the hardest part but usually you just need a yum install xmms-devel) then go over to /usr/src/redhat/RPMS/x86_64 and install your fresh golden-brown xmms-mp3.x86_64.

When it gets hard is for the large, multi package apps like Xine and Mplayer. If anyone has had any luck I would like to hear of it.
Awesome :) I just did this, it worked flawlessly, thanks.

Avix
20th July 2005, 04:42 PM
I see I'm not the only one having problems with updates and a AMD 64 box. I think I'm on my 9th reinstall so far this week.

livna doesn't play well with any of the other repos except extras (and I think) update. I FINNALY got it to mostly update using yumex .34 and not installing perl update. I am really bumbed that Smartpm seems to break the update process totaly.

there, now I feel better.

spawn64
30th July 2005, 07:31 AM
FC4-x86_64 is great but for some apps I would like to have acces to i386.rpms (ex: firefox) ... Anyone knows how to set a profile in Yumex so that it reads only certain .repo files (i.e. i386 repos) It seems like everytime it loads, it as to load base, updates-released so I have to uncheck them and then install my i386 repos. It's not like it's complicated to do so, but I wonder why profile are there for then ???

just curious ...

linuxted
26th September 2005, 06:49 AM
FC4-x86_64 is great but for some apps I would like to have acces to i386.rpms (ex: firefox) ... Anyone knows how to set a profile in Yumex so that it reads only certain .repo files (i.e. i386 repos) It seems like everytime it loads, it as to load base, updates-released so I have to uncheck them and then install my i386 repos. It's not like it's complicated to do so, but I wonder why profile are there for then ???

just curious ...


Excellent question! I have the exact same problem and would love to know the answer as well. Perhaps a guru on the forum has a suggestion :confused:

GreyWizzard
17th April 2006, 02:12 AM
This is one of the reasons that I hate to upgrade from one version to another.... Seems as if something has always changed in such a way that I no longer know what to do to make something simple work...

For example, the update to FC5-x86_64 went very smoothly but now my yum configs are broken and all the steps I took to make them right with FC4 no longer seem to be valid.

Since my web searching skills seem to be less than adequate for locating specific info such as this, I would be very grateful if someone could point me toward the new info so I can get this basic function functioning for me again.

Thanks a bunch!



PS. I have traditionally used just the Fedora defaults with Livna if that info helps any.

ilja
17th April 2006, 07:55 AM
I doubt, that the thread is still of such an importance to be a sticky, as the infrastructure has changed.

GreyWizzard
17th April 2006, 11:45 PM
I doubt, that the thread is still of such an importance to be a sticky, as the infrastructure has changed.

So this means that YUM is not of use in the FC5 distro? If not, what is and where do I find the info on it?

I tried to use the up2date and received this message:

# An error has occurred:
exceptions.AttributeError
See /var/log/up2date for more information

Please point me to the correct info and/or thread to solve this. I would hate to think I would have to go back to FC4 just because I cannot seem to find the right info to update my system.... :confused: