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
converting from RHEL 5 to CentOS 5
converting from RHEL 5 to CentOS 5
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
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
Re: converting from RHEL 5 to CentOS 5
... hey, you need to
[b] rpm -e redhat-release-5Server-5.0.0.9[/b]
after the centos installation --force ...
thanks lenard
[b] rpm -e redhat-release-5Server-5.0.0.9[/b]
after the centos installation --force ...
thanks lenard