<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>LINICKX.com</title><link>https://www.linickx.com/</link><description></description><lastBuildDate>Tue, 24 Apr 2007 14:16:00 +0100</lastBuildDate><item><title>How to Migrate from White Box Linux 4 to CentOS 4.4</title><link>https://www.linickx.com/how-to-migrate-from-white-box-linux-4-to-centos-44</link><description>&lt;p&gt;There are somethings that you just never get round to, my nagios box was
still running whitebox linux, and I've finally gotten round "upgrading"
it to CentOS... yeah ok, upgrade is arguable, but you get my point.&lt;/p&gt;
&lt;p&gt;First off a &lt;strong&gt;warning: Don't do this !&lt;/strong&gt; All the documentation, for
CentOS, RHEL, Fedora, any redhat linux all say, clean installs are the
best way, and upgrades are not advised.... therefore I offer no support
or warranty that this will work, in fact, I you advise you to read this
post, but step away from your consoles !&lt;/p&gt;
&lt;p&gt;But, if you think it might be a laugh, the &lt;a href="http://www.centos.org/modules/smartfaq/faq.php?faqid=19"&gt;centos
documentation&lt;/a&gt;is
a bit old, and not 100% correct, so here is what I did. First up (&lt;em&gt;as
root - obviously&lt;/em&gt;), clear out your yum cache,and install the CentOS gpg
key.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;yum clean all
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Next, install some base centos packages, take not that some need to be
forced on&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rpm -Uvh --nodeps http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/centos-release-4-4.2.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/sqlite-3.3.3-1.2.i386.rpm
rpm -Uvh --force http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
rpm -Uvh --nodeps http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;finally remove the whitebox rpm db.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rpm -ev rpmdb-whitebox
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Move any "whitebox" mirrors still in &lt;em&gt;/etc/yum.repos.d&lt;/em&gt; and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;yum install rpmdb-CentOS
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once you have that sorted, you can complete the upgrade with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;yum update
reboot
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;amp; cross your fingers ;)&lt;br /&gt;
If you come across the following warnings while using yum: Warning,
could not load sqlite, falling back to pickle , I found...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;yum install python-sqlite
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Fixed the problem. And there we have it, all my boxes are now running
CentOS - yay - just in time to look at the CentOS 5 upgrade ;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dependency Problems ?&lt;/strong&gt;&lt;br /&gt;
If a whitebox rpm is newer than the CentOS one, it won't get upgraded,
this might cause problems when installing new packages via yum. To solve
the problem download the rpm manually from
http://www.centos.org/modules/tinycontent/index.php?id=13 and force an
upgrade&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rpm --force -Uvh Something-CentOS.rpm
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; If you're using something like &lt;a href="http://www.rootkit.nl/projects/rootkit_hunter.html"&gt;Root Kit
Hunter&lt;/a&gt;, you will
notice a load of md5 hashes fail, these are whitebox rpm's that didn't
need upgrading, to correct the problem you need to replace these with
CentOS versions.. example rkhunter output:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/sbin/init  [ BAD ]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Find which rpm, init belongs to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# rpm -q --whatprovides /sbin/init
SysVinit-2.85-34.3
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and upgrade it&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;wget http://www.mirrorservice.org/sites/mirror.centos.org/4.4/os/i386/CentOS/RPMS/SysVinit-2.85-34.3.i386.rpm
rpm --force -Uvh SysVinit-2.85-34.3.i386.rpm
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Tue, 24 Apr 2007 14:16:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2007-04-24:how-to-migrate-from-white-box-linux-4-to-centos-44</guid><category>centos</category><category>Enterprise Linux</category><category>Enterprise Linux</category><category>how to</category><category>migrate</category><category>redhat</category><category>upgrade</category><category>wbel</category></item></channel></rss>