[SOLVED] Configuring yum-priorities for RPMForge repository

Issues related to applications and software problems
Post Reply
taylorkh
Posts: 534
Joined: 2010/11/24 15:08:33
Location: North Carolina, USA

[SOLVED] Configuring yum-priorities for RPMForge repository

Post by taylorkh » 2011/07/24 18:03:35

I have yum-priorities installed and enabled thanks to the fine instructions in the wiki. I have set priorities for Updates, Extras etc. So now I want to hookup RMPForge. Again with the fine documentation in the wiki I have imported the pgp key, downloaded and installed the appropriate RPM. So now I am at the point of configuring /etc/yum.repos.d. I have found several pages which show the CentOS 5 entries:

# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=40

Is configuring CentOS 6 as simple as changing the 5 to a 6 in the above example? Is there a difference between 32 and 64 bit (I am running the 64 bit OS)?

TIA,

Ken

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] Configuring yum-priorities for RPMForge repository

Post by pschaff » 2011/07/25 10:22:44

The version variable is $releasever and the architecture is $basearch so changing "5" to "$releasever" should work in your example; however, why not just install [url=http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01]RPMforge for CentOS 6[/url], which also has definitions for [rpmforge-extras] and [rpmforge-testing]?

taylorkh
Posts: 534
Joined: 2010/11/24 15:08:33
Location: North Carolina, USA

Re: Configuring yum-priorities for RPMForge repository

Post by taylorkh » 2011/07/25 13:16:09

As always Phil THANK YOU! I did install RPMForge after making the entries I described in the original post. And the first time I tried to yum something it barfed to the effect that rpmforge was present twice. And of course it was. The entries for rpmforge were and should be in rpmfogrge.repo. That part I now understand.

I have stepped back and am starting over with yum-priorities (VMWare is great!). Starting from a clean install of CentOS 6 + updates I have done the following:

yum install yum-priorities
checked /etc/yum.conf and I find
[b]plugins=1[/b]
checked /etc/yum/pluginconf.d/priorities.conf and I find
[b][main]
enabled=1[/b]
I then import the key and download/install the architecture applicable rpmforge rpm.
I see [b]/etc/yum.repos.d/rpmforge.repo[/b] and [b]/etc/yum.repos.d/CentOS-Base.repo[/b]
If I examine those two files I do NOT see any [b]priority=[/b] lines.
On my previous attempt I found priority= lines in CentOS-Base.repo. I did not know enough at that time to add them. How did they get there? I must be missing something. I believe they were all set to priority=1. Is that set the first time I run yum after installing yum-priorities perhaps?

Ken

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Configuring yum-priorities for RPMForge repository

Post by pschaff » 2011/07/25 13:33:36

The original repo config has no priority definitions.

taylorkh
Posts: 534
Joined: 2010/11/24 15:08:33
Location: North Carolina, USA

Re: [SOLVED] Configuring yum-priorities for RPMForge repository

Post by taylorkh » 2011/07/25 16:40:44

OK - So I have to decide on my priority values for each repository and enter them in the .repo files. Will do.

Thanks,

Ken

p.s. Please feel free to end this thread with a [SOLVED]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: [SOLVED] Configuring yum-priorities for RPMForge repository

Post by pschaff » 2011/07/26 11:35:11

Done. Thanks for reporting back.

Post Reply