[SOLVED] Migration from RHEL6 to CentOS6

General support questions
a111
Posts: 7
Joined: 2010/06/04 19:30:06

[SOLVED] Migration from RHEL6 to CentOS6

Post by a111 » 2011/07/11 04:47:27

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.

HenrykD
Posts: 75
Joined: 2011/01/14 06:09:52
Location: Poland

Re: Migration from RHEL6 to CentOS6

Post by HenrykD » 2011/07/11 06:13:47

It's working. I migrated my system from SL6 to CentOS6.

I changed only:
rpm -e --nodeps sl-release sl-indexhtml

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] Migration from RHEL6 to CentOS6

Post by pschaff » 2011/07/11 20:21:07

Looks good. Please see the [url=http://wiki.centos.org/HowTos/MigrationGuide]Migration Guide[/url] Wiki article.

hawaiian717
Posts: 184
Joined: 2009/01/30 19:58:25
Location: California

Re: Migration from RHEL6 to CentOS6

Post by hawaiian717 » 2011/07/12 00:08:06

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.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Migration from RHEL6 to CentOS6

Post by AlanBartlett » 2011/07/12 02:49:17

[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. :-)

hawaiian717
Posts: 184
Joined: 2009/01/30 19:58:25
Location: California

Re: Migration from RHEL6 to CentOS6

Post by hawaiian717 » 2011/07/12 17:40:15

[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.

miguelito08
Posts: 4
Joined: 2011/03/30 13:32:09

Re: Migration from RHEL6 to CentOS6

Post by miguelito08 » 2011/07/14 15:21:49

[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

miguelito08
Posts: 4
Joined: 2011/03/30 13:32:09

Re: Migration from RHEL6 to CentOS6

Post by miguelito08 » 2011/07/14 16:10:15

[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

G0d-servant
Posts: 6
Joined: 2011/07/17 03:44:11

Re: Migration from RHEL6 to CentOS6

Post by G0d-servant » 2011/07/17 04:43:40

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 ?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Migration from RHEL6 to CentOS6

Post by pschaff » 2011/07/17 13:06:10

[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/

Post Reply