[SOLVED] Migration from RHEL6 to CentOS6

General support questions
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/

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

Re: Migration from RHEL6 to CentOS6

Post by G0d-servant » 2011/07/18 05:46:48

[quote]
pschaff wrote:
That should be /etc/yum.repos.d/[/quote]
oh, It was the wrong word, "/etc/yum.repos.d" is empty. and when i entered the yum command for update packages list, not thing for do.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Migration from RHEL6 to CentOS6

Post by TrevorH » 2011/07/18 08:25:28

There's a typo in this portion of one of your commands

[quote]
rpm -Uvh centos-release-6-0.el6.centos.5.686.rpm
[/quote]

686 should be i686

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

Re: Migration from RHEL6 to CentOS6

Post by G0d-servant » 2011/07/18 11:15:31

[quote]
TrevorH wrote:
There's a typo in this portion of one of your commands[/quote]
wow, i enter it command truly.
[code] rpm -Uvh centos-release-6-0.el6.centos.5.i686.rpm[/code]
I got careless, Is difficult to understand:

[code][root@localhost TMP]# rpm -Uvh centos-release-6-0.el6.centos.5.i686.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
centos-release-6-0.el6.centos.5.i686.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de:
NOKEY Preparing... ########################################### [100%]
file /etc/issue from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686
file /etc/issue.net from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686
file /etc/redhat-release from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686
file /etc/rpm/macros.dist from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686
file /etc/system-release from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686
file /etc/system-release-cpe from install of centos-release-6-0.el6.centos.5.i686 conflicts with file from package redhat-release-server-6Server-6.0.0.37.el6.i686 [/code]
I renamed these files with add "back" suffix. but same error appears.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Migration from RHEL6 to CentOS6

Post by TrevorH » 2011/07/18 13:33:20

It's complaining about the entries in the rpm database not the files themselves. You would need to remove redhat-release-server-6Server-6.0.0.37.el6.i686 before you can replace it with the CentOS equivalent.

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

Re: Migration from RHEL6 to CentOS6

Post by G0d-servant » 2011/07/18 14:39:09

[quote]
TrevorH wrote:
It's complaining about the entries in the rpm database not the files themselves. You would need to remove redhat-release-server-6Server-6.0.0.37.el6.i686 before you can replace it with the CentOS equivalent.[/quote]
538 package will be removed. removed all? xorg,nautilus and many of graphic tools will removed.
[code]
ransaction Summary
===============================================================================================================================================
Remove 538 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)

Is this ok [y/N]:

[/code]

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/18 15:33:58

Don't try to remove it with yum. You need to use "rpm -e --nodeps ..." as explained in the link given in post #3.

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

Re: Migration from RHEL6 to CentOS6

Post by G0d-servant » 2011/07/18 17:50:12

Thanks all, solved.
[code]rpm -e --nodeps redhat-release-server-6Server-6.0.0.37.el6.i686[/code]

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

Re: [SOLVED] Migration from RHEL6 to CentOS6

Post by pschaff » 2011/07/18 18:01:47

Thanks for reporting back. Marking this thread [SOLVED] for posterity.

Post Reply