converting from RHEL 5 to CentOS 5

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
sstrong
Posts: 10
Joined: 2007/05/25 15:43:05
Location: Cedar Rapids, IA
Contact:

converting from RHEL 5 to CentOS 5

Post by sstrong » 2007/05/25 16:39:06

can i just change where yum looks for its repositories and then call yum update??? i have a sinking feeling that there might be some things this would miss.

thanks,
steve

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

converting from RHEL 5 to CentOS 5

Post by Lenard » 2007/05/26 12:06:33

Nope, it takes a bit more.................

Depending on what you mean by 'converting' you may need to replace some packages like;

redhat-release-
redhat-release-notes-

with the CentOS5 replacements;

centos-release-5-0.0.el5.centos.2
centos-release-notes-5.0.0-2

One might want to uninstall the yum-rhn-plugin-0.4.3-2.el5.noarch package also.

But if all you really want is access to unavailable packages for say RHEL5 Desktop then simply create a new CentOS5.repo file in the /etc/yum.repos.d directory, example below;

[code]
[c5base]
name=CentOS-5
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-Centos5

[c5updates]
name=CentOS-5-Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-Centos5

[c5extras]
name=CentOS-5-Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-Centos5

[c5plus]
name=CentOS-5-Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-Centos5
[/code]
Then when one needs something that is not available one does something like;

yum install foo --enablerepo=c5*
yum update --enablerepo=c5*
(enables all the c5 repos from the example centOS5.repo file above)

One can if desired enable the gpgcheck (gpgcheck=1) for the c5 repos but you will want to install the CentOS5 GPG key;

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

tukulito
Posts: 10
Joined: 2007/02/27 11:03:52

Re: converting from RHEL 5 to CentOS 5

Post by tukulito » 2007/06/30 11:18:34

... hey, you need to
[b] rpm -e redhat-release-5Server-5.0.0.9[/b]

after the centos installation --force ...

thanks lenard

Post Reply