[CentOS] Upgrading from WBEL and 4.2?
Benjamin Smith
lists at benjamindsmith.com
Fri Oct 28 16:50:40 UTC 2005
Here's the script, wbel2centos4.sh
#! /bin/sh
################################################################################3
#
# wbel2centos4.sh - a script to change over a WBEL4 server to CentOS4.
#
# see http://www.centos.org/modules/smartfaq/faq.php?faqid=19
#
#
#
# Step 5 is done BEFORE step 4 to eliminate possibilities of removed yum
# "cruft"...
#
# License: This script is in the public domain. Use/abuse as you see fit;
# no warrantee of any kind is implied.
#
################################################################################3
arch="i386";
# 64 bit is not well tested.
#arch="x86_64";
# Step 1;
yum clean all;
# Step 2; RPM-GPG-KEY-centos4
rpm --import os/RPM-GPG-KEY-centos4
# Step 3;
rpm -e diskdumputils;
rpm -Uvh ./os/initscripts-7.93.13.EL-2.centos4.i386.rpm
rpm -Uvh ./os/centos-release-4-1.2.i386.rpm
# Step 5;
rpm -e yum;
if [ -f /etc/yum* ] ; then
mkdir /etc/BLOAT;
mv /etc/yum* BLOAT;
fi;
# step 4;
rpm -Uvh ./os/centos-yumconf-4-4.2.noarch.rpm
rpm -Uvh ./os/yum-2.2.1-1.centos4.noarch.rpm
# set up the repos
rsync -vaz --delete yum.repos.d /etc
# Step 6;
yum -y update;
exit 0;
On Thursday 27 October 2005 16:18, Karanbir Singh wrote:
> Benjamin Smith wrote:
> > Actually, I think I have this solved.
> >
> > I updated by using the 4.1 stuff at vault.centos.org, (saved a local copy
> > that's distributed with the script) and then running yum to update from
> > there.
> >
> > Now, that works fine in testing. (though I'm still tracking down a GPG
issue)
> > I have a number of embedded servers that will be updated remotely soon, so
> > this is very important!
> >
> > -Ben
> >
> > On Thursday 27 October 2005 14:53, Karanbir Singh wrote:
> >
> >>Hi Ben,
> >>
> >>Benjamin Smith wrote:
> >>
> >>>A while ago, I wrote a script to switch a server from WBEL 4.x to CentOS
> >
> > 4.x.
> >
> >>>The recent switch to 4.2 broke this script. Now there are all kinds of
> >>>dependencies like python-urlgrabber, and tshe task of getting these
sorted
> >>>out just drop me into dependency hell. (and this is just trying to get
yum
> >>>installed!)
> >>
> >>If you can drop into the irc channel, I'd be happy to work with you on
> >>this issue.
> >>
> >>Also, do you have a URL for your previous guide ?
> >>
>
> Still be good to see that script of yours, and there should be no real
> reason why you cant go straight from WBEL4 to CentOS4.2
>
> - K
>
> PS: Can we try not top posting, if it can be avoided :)
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978
More information about the CentOS
mailing list