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]#
Remove the blanks from the names.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=37&topic_id=36860