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
[SOLVED] Configuring yum-priorities for RPMForge repository
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
[SOLVED] Configuring yum-priorities for RPMForge repository
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]?
Re: Configuring yum-priorities for RPMForge repository
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
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
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Configuring yum-priorities for RPMForge repository
The original repo config has no priority definitions.
Re: [SOLVED] Configuring yum-priorities for RPMForge repository
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]
Thanks,
Ken
p.s. Please feel free to end this thread with a [SOLVED]
-
- 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
Done. Thanks for reporting back.