[SOLVED] Migration from RHEL6 to CentOS6
[SOLVED] Migration from RHEL6 to CentOS6
I did this yesterday and works for me.
[b]for x86_64[/b]
[code]
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-0.el6.centos.5.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.x86_64.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm \
yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade
[/code]
[b]for x86[/b]
[code]
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.686.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm \
yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade
[/code]
But fixme if this wrong or incomplete.
[b]for x86_64[/b]
[code]
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-0.el6.centos.5.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.x86_64.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm \
yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade
[/code]
[b]for x86[/b]
[code]
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.686.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm \
yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade
[/code]
But fixme if this wrong or incomplete.
Re: Migration from RHEL6 to CentOS6
It's working. I migrated my system from SL6 to CentOS6.
I changed only:
rpm -e --nodeps sl-release sl-indexhtml
I changed only:
rpm -e --nodeps sl-release sl-indexhtml
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
[SOLVED] Migration from RHEL6 to CentOS6
Looks good. Please see the [url=http://wiki.centos.org/HowTos/MigrationGuide]Migration Guide[/url] Wiki article.
-
- Posts: 184
- Joined: 2009/01/30 19:58:25
- Location: California
Re: Migration from RHEL6 to CentOS6
I adapted these instructions into a shell script:
http://pastebin.centos.org/37588
Run it as root, obviously. I've only tested it on Scientific Linux 64-bit, but it should be able to convert both 32-bit and 64-bit versions of SL6 and RHEL6 to CentOS 6.
One thing I noticed is that after converting, there were still some SL packages installed. The VM I tested in uses the text-based boot screen, for whatever reason, and it still identifies itself as Scientific Linux. I noticed that the grub.conf file still describes the OS as SL, not CentOS, and looking at the kernel RPMs themselves, they're built by SL.
I think for my purposes this is good enough for now, and over time I'd expect that as new versions of CentOS packages come out, they'll replace the SL versions.
http://pastebin.centos.org/37588
Run it as root, obviously. I've only tested it on Scientific Linux 64-bit, but it should be able to convert both 32-bit and 64-bit versions of SL6 and RHEL6 to CentOS 6.
One thing I noticed is that after converting, there were still some SL packages installed. The VM I tested in uses the text-based boot screen, for whatever reason, and it still identifies itself as Scientific Linux. I noticed that the grub.conf file still describes the OS as SL, not CentOS, and looking at the kernel RPMs themselves, they're built by SL.
I think for my purposes this is good enough for now, and over time I'd expect that as new versions of CentOS packages come out, they'll replace the SL versions.
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Migration from RHEL6 to CentOS6
[quote]
One thing I noticed is that after converting, there were still some SL packages installed. The VM I tested in uses the text-based boot screen, for whatever reason, and it still identifies itself as Scientific Linux. I noticed that the grub.conf file still describes the OS as SL, not CentOS, and looking at the kernel RPMs themselves, they're built by SL.
I think for my purposes this is good enough for now, and over time I'd expect that as new versions of CentOS packages come out, they'll replace the SL versions.
[/quote]
Regarding the above, I would recommend due consideration of usage of the [i][b]yum reinstall [/i][/b] command line. :-)
One thing I noticed is that after converting, there were still some SL packages installed. The VM I tested in uses the text-based boot screen, for whatever reason, and it still identifies itself as Scientific Linux. I noticed that the grub.conf file still describes the OS as SL, not CentOS, and looking at the kernel RPMs themselves, they're built by SL.
I think for my purposes this is good enough for now, and over time I'd expect that as new versions of CentOS packages come out, they'll replace the SL versions.
[/quote]
Regarding the above, I would recommend due consideration of usage of the [i][b]yum reinstall [/i][/b] command line. :-)
-
- Posts: 184
- Joined: 2009/01/30 19:58:25
- Location: California
Re: Migration from RHEL6 to CentOS6
[quote]
AlanBartlett wrote:
Regarding the above, I would recommend due consideration of usage of the [i][b]yum reinstall [/i][/b] command line. :-)[/quote]
Note that may not always work. In some cases, SL6 has newer packages than have made their way to the CentOS 6 repos yet. The Plymouth packages and Firefox both required using [b]yum downgrade [/b] instead.
Also, I discovered today two additional SL-specific packages still on the system: sl-bookmarks and sl-release-notes. It looks like sl-bookmarks is replaced by redhat-bookmarks, though I haven't yet found what (if any) is the CentOS equivalent packet to sl-release-notes.
AlanBartlett wrote:
Regarding the above, I would recommend due consideration of usage of the [i][b]yum reinstall [/i][/b] command line. :-)[/quote]
Note that may not always work. In some cases, SL6 has newer packages than have made their way to the CentOS 6 repos yet. The Plymouth packages and Firefox both required using [b]yum downgrade [/b] instead.
Also, I discovered today two additional SL-specific packages still on the system: sl-bookmarks and sl-release-notes. It looks like sl-bookmarks is replaced by redhat-bookmarks, though I haven't yet found what (if any) is the CentOS equivalent packet to sl-release-notes.
-
- Posts: 4
- Joined: 2011/03/30 13:32:09
Re: Migration from RHEL6 to CentOS6
[quote]
HenrykD wrote:
It's working. I migrated my system from SL6 to CentOS6.
I changed only:
rpm -e --nodeps sl-release sl-indexhtml[/quote]
Hi
How you active the centos' repos when changed from SL6 to CentOS6
HenrykD wrote:
It's working. I migrated my system from SL6 to CentOS6.
I changed only:
rpm -e --nodeps sl-release sl-indexhtml[/quote]
Hi
How you active the centos' repos when changed from SL6 to CentOS6
-
- Posts: 4
- Joined: 2011/03/30 13:32:09
Re: Migration from RHEL6 to CentOS6
[quote]
miguelito08 wrote:
[quote]
HenrykD wrote:
It's working. I migrated my system from SL6 to CentOS6.
I changed only:
rpm -e --nodeps sl-release sl-indexhtml[/quote]
Hi
How you active the centos' repos when changed from SL6 to CentOS6[/quote]
Fixed
Thanks
miguelito08 wrote:
[quote]
HenrykD wrote:
It's working. I migrated my system from SL6 to CentOS6.
I changed only:
rpm -e --nodeps sl-release sl-indexhtml[/quote]
Hi
How you active the centos' repos when changed from SL6 to CentOS6[/quote]
Fixed
Thanks
-
- Posts: 6
- Joined: 2011/07/17 03:44:11
Re: Migration from RHEL6 to CentOS6
I follow this instructions:
[code]wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.686.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade[/code]
but "/etc/yum/yum.repo.d" is empty. above instructions don't set default centos repo ?
[code]wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
rpm -Uvh centos-release-6-0.el6.centos.5.686.rpm centos-indexhtml-6-1.el6.centos.noarch.rpm yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
yum clean all
yum upgrade[/code]
but "/etc/yum/yum.repo.d" is empty. above instructions don't set default centos repo ?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Migration from RHEL6 to CentOS6
[quote]
G0d-servant wrote:
...
but "/etc/yum/yum.repo.d" is empty. above instructions don't set default centos repo ?[/quote]
That should be /etc/yum.repos.d/
G0d-servant wrote:
...
but "/etc/yum/yum.repo.d" is empty. above instructions don't set default centos repo ?[/quote]
That should be /etc/yum.repos.d/