CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  [SOLVED] Enabling CentOS repos in RHEL

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  pschaff
      pschaff
Re: [SOLVED] Enabling CentOS repos in RHEL
#4
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Experience?

Thanks for reporting back. Marking this thread [SOLVED] for posterity.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/12 2:00
Create PDF from Post Print
Top
  •  Rick_Smith
      Rick_Smith
Re: Enabling CentOS repos in RHEL
#3
Regular Board Member
Joined: 2011/10/7
From
Posts: 77
Thank you, that did it....how'd you know?
Posted on: 2012/4/11 17:08
Create PDF from Post Print
Top
  •  TrevorH
      TrevorH
Re: Enabling CentOS repos in RHEL
#2
Moderator
Joined: 2009/9/24
From Brighton, UK
Posts: 6342
Remove the blanks from the names.
_________________
Linux/VoIP Systems Administrator
Posted on: 2012/4/11 16:58
Create PDF from Post Print
Top
  •  Rick_Smith
      Rick_Smith
[SOLVED] Enabling CentOS repos in RHEL
#1
Regular Board Member
Joined: 2011/10/7
From
Posts: 77
How do I enable CentOS repos in RHEL 5.8, I tried this but am getting an error message:

[root@db3 yum.repos.d]# vi centos.repo

[CentOS5.8 base]
name=CentOS-5.8-Base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
[CentOS5 updates]
name=CentOS-5.8-Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
[CentOS5plus]
name=CentOS-5.8-Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


[root@db3 yum.repos.d]# yum --enablerepo centos.repo
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Bad id for repo: CentOS5.8 base, byte = 9
Bad id for repo: CentOS5 updates, byte = 7


Error getting repository data for centos.repo, repository not found
[root@db3 yum.repos.d]#
Posted on: 2012/4/11 16:47
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com