CentOS Icon CentOS Logo
CentOS Text
   
  
Home > FAQ > CentOS 3 Specific FAQ

Requested and Answered by donavan [donavan] on 30-Nov-2004 07:11 (77765 reads)
How do I migrate a system from WBEL-3 (White Box Enterprise Linux) to CentOS 3?
Note: This process has been tested and reviewed on i686 platforms. I'm looking for a x86_64 tester and someone who wants to try on a i586 class system. {I tested it with x86_64 and i586, both worked ok (hughesjr)} It also works to move from RHEL-3 or Taolinux-1.0 to CentOS-3.

Migrating from WBEL-3 is a simple process. The procedures here are designed to laterally move your system from WBEL-3 to CentOS 3. The immediate benefits are numerous; timely updates of RHEL errata, developers are reachable, and active community support.

Each step below should be run as root and should be entered as a single command in a terminal window. Dynamically sized browser windows may wrap lines.

1) yum features a "clean" option that will clean up various things in the yum cache directory. This command is optional, but recommended.

Optionally Execute: yum clean

2) This step install the CentOS package signing key. To verify the authenticity of the CentOS 3 package signing key please see this FAQ item.

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

3) This step installs the CentOS specific -release file; this obsoletes the package whitebox-release. (The whitebox-release package is automatically removed, so you need not concern yourself with it's removal).

Execute: rpm -Uvh http://mirror.centos.org/centos/3/os/i386/RedHat/RPMS/centos-release-3-5.3.i386.rpm


Quote:
Note: Substitute x86_64 for i386 in the above statement to upgrade an x86_64 arch machine


4) This step installs the CentOS version of yum and a suitable yum.conf file.

Execute: rpm -Uvh http://mirror.centos.org/centos/3/os/i386/RedHat/RPMS/yum-2.0.8-1.centos.7.noarch.rpm

rpm -Uvh http://mirror.centos.org/centos/3/os/i386/RedHat/RPMS/centos-yumcache-3.1-0.20050526.3.noarch.rpm

rpm -Uvh http://mirror.centos.org/centos/3/os/i386/RedHat/RPMS/centos-yumconf-1-11.noarch.rpm


Quote:
Note: in steps 3 and 4, the version numbers can change for the packages yum, centos-yumconf, centos-yumcache, and centos-release ... so open your web browser to http://mirror.centos.org/centos/3/os/i386/RedHat/RPMS/ and find the packages yum, centos-yumconf, centos-yumcache, and centos-release for the latest version information if the link doesn't work.


5) Depending on the version of your WBEL install, your existing yum.conf may have been moved to /etc/yum.conf-SAVE and the CentOS yum.conf placed in /etc or the CentOS specific yum.conf was installed as etc/yum.conf.rpmnew and your yum.conf was unaltered. If your original yum.conf file was NOT moved save your current yum.conf and replace it with the freshly installed CentOS yum.conf. For now just to get your system working with the default CentOS yum.conf. The following steps will get the CentOS yum.conf accessible by yum.

If Necessary:
cd /etc
mv yum.conf yum.conf.mysaved
cp yum.conf.rpmnew yum.conf
cd -


6) To verify that your yum.conf file is accurate and to see what packages yum wants to upgrade we strongly encourage you to use yum's list updates feature to display it's intentions before attempting to upgrade your system. NOTE: Version 2.0.x of yum will download many package headers as part of the update process. Yum is not downloading each package, so do not be alarmed by the amount of screen traffic yum is generating.

Optionally Execute: yum list updates

Execute: yum update

7) At this point your box is upgraded. A reboot is suggested (to verify the reboot process works and to use any new kernel that was installed). If you were previously using a custom yum.conf file you will want to add your custimization back to the current CentOs /etc/yum.conf file.

Performing this process will not remove or upgrade any packages where CentOS and Whitebox share the same version number. This allows you to "convert" your box to CentOS and subsequently use CentOS repositories for updates, etc.

We also recommend that you join the CentOS discussion and information mailing list.

9 Comment(s) Print Q&A Send Q&A

The comments are owned by the poster. We aren't responsible for their content.

Poster Thread
z00dax
Posted: 2004/12/1 23:24  Updated: 2004/12/1 23:24
WebMaster
Joined: 2004/11/30
From: London - UK
Posts: 240
Online!
 Confirmation of steps
Just to confirm that these steps work - I have tested and moved a bunch of live production servers from wbel to Centos using these steps.

Another thing that you might want to keep in mind is that third part repositories that worked for WBEL will continue to work for Centos ( Dag, Kde-Redhat etc ) - however you will need to re-add them to the /etc/yum.conf file,

Poster Thread
z00dax
Posted: 2004/12/22 13:59  Updated: 2004/12/22 13:59
WebMaster
Joined: 2004/11/30
From: London - UK
Posts: 240
Online!
 using up2date after the migration
Once the above mentioned Migration has run through you will need to replace the WhiteBox up2date with the Centos up2date systems ( they both use different setups ).

On a non-GUI machine the commands to achieve this replacement use these commands :
rpm -e up2date firstboot
yum install up2date

On a GUI based machine
rpm -e up2date up2date-gnome rhn-applet firstboot
yum install up2date up2date-gnome rhn-applet

( in most cases firstboot can be left out since its not going to be run anymore )

If you have problems - Ask on IRC

Poster Thread
jmbarrs
Posted: 2005/1/19 2:06  Updated: 2005/1/19 2:06
Newbie
Joined: 2005/1/17
From:
Posts: 1
 Migration to 3.4
I successfully used the above procedure to upgrade my WBEL 3 RS1 to CentOS 3.4, with the below modifications.

Step 3: Changed the url in the rpm command to use the 3.4 release package from -> http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-release-3-4.2.i386.rpm

Step 4: Changed the url in the rpm command to use yum from the 3.4 distro -> http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/yum-2.0.8-1.centos.7.noarch.rpm

I also used the steps to reinstall up2date as suggested by z00dax in his comment.

Everything works great. And now I have timely updates.

Poster Thread
tyrnight
Posted: 2005/1/20 23:32  Updated: 2005/1/20 23:32
Newbie
Joined: 2005/1/20
From:
Posts: 1
 Re: Migration to 3.4
Will this work on a RHEL3 ?

I want to convert my RHEL box to CentOS..

Poster Thread
ElitePlanet
Posted: 2005/2/4 2:33  Updated: 2005/2/4 2:33
Newbie
Joined: 2005/2/4
From:
Posts: 1
 Re: Migration to 3.4
Yeah it works, I just finished upgrading my video server box here at home from RHEL update2 to CentOS 3.4

Poster Thread
htmlspinnr
Posted: 2005/2/7 18:50  Updated: 2005/2/7 18:50
Newbie
Joined: 2005/2/7
From: Tempe, AZ
Posts: 1
 updating rpmdb
I've found that executing:
rpm -e rpmdb-whitebox

then
yum install rpmdb-redhat


changes the RPM database to use CentOS (and Red Hat) pathing vs. whitebox pathing - the former being more redhat like. It may also update any packaging differences when using the --redhatprovides switch as the included database is newer. While this is probably an uneccesary step, it does allow this package to be updated via yum if needed since there is a naming difference between the two distros (confirmed by rpm -q --provides).

Poster Thread
Puff65537
Posted: 2005/2/9 18:23  Updated: 2005/2/9 18:23
Newbie
Joined: 2005/2/9
From:
Posts: 1
 Dealing with unwriteable filesystems
When upgrading from WBEL I ran into an issue with an unwritable NFS mount in /usr/local and the filesystem rpm, the second command shows how to exclude a path while manually installing so rpm doesn't barf on it.

[root@hiddenvalley RPMS]# rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm
Preparing... ########################################### [100%]
1:filesystem ########################################### [100%]
error: unpacking of archive failed on file /usr/local: cpio: chown failed - Operation not permitted

[root@hiddenvalley RPMS]# rpm -Uvh --excludepath /usr/local filesystem-2.2.1-3.centos.1.i386.rpm
Preparing... ########################################### [100%]
1:filesystem ########################################### [100%]

Poster Thread
gigglesworth
Posted: 2005/5/23 23:04  Updated: 2005/5/23 23:04
Newbie
Joined: 2005/5/23
From:
Posts: 4
 Incorrect URLs for keys above!
The above article has the incorrect URL in step 2. The article currently says:

>>>
2) This step install the CentOS package signing key. To verify the authenticity of the CentOS 3 package signing key please see this FAQ item.

Execute: rpm --import http://mirror.centos.org/centos-3/RPM-GPG-KEY-CentOS-3
<<<

However, the correct URL for the CentOS-3 key is http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3 .

Therefore, the correct command is:

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

Poster Thread
benjaminarai
Posted: 2006/5/20 1:49  Updated: 2006/5/20 1:49
Newbie
Joined: 2006/5/20
From:
Posts: 1
 Updated script for updating to Centos 3
I have created a small batch script that downloads the appropriate packages to get you going with the conversion and installs the base yum files.

the script also works for bare installs of redhat enterrpsie 3 on virtual machines such as Virtuozzo and Xen.

SCRIPT: http://main.benjaminarai.com/downloads/index.php?dir=&file=redhat2centos.sh

Just download the script and run it.

Benjamin Arai
me@benjaminarai.com




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com