RHEL-CentOS conversion scripts (was Re: apache?)

Alan Johnson alan at datdec.com
Wed Apr 8 21:22:38 EDT 2009


On Sun, Apr 5, 2009 at 1:25 PM, Ted Roche <tedroche at tedroche.com> wrote:

> I've got a machine I'd like to convert from RH to CentOS, too. Would you be
> willing to post the scripts publicly?


So, here it is:
http://alan.datdec.com/temp/rhel-cos.tar.gz

Use at your own risk, your millage may vary, the code is the documentation,
you should only use these as a guide to make your own scrips, there is no
sex in the champaign room, the rain in spain falls mainly in the plain,
don't take any wooden nickels, every sperm is sacred, don't open the door
for the land shark, etc.

A couple useful notes though:

The tarball contains capabilities for converting 3 flavors of RHEL to
CentOS: 64bit 4, 32bit 3 and 4.  Again, 5 should be similar.

The top level script just tries to figure out what version of RHEL you are
running and switch the appropriate sub directory to continue.

At first, my scripting may be a bit confusing because I am very verbose for
debuggin purposes, and I expect this kind of script is always going to need
debugging.  You will see each command echoed before it is executed in an if
statement so that it only conitues to the next command if each previous is
successful (I hate the over use of && to run commands).  Once you get used
to the "say it then do it" rhythem, and the camel case variables (underbars
give me carpal tunnel), it is pretty easy to follow.

The "say it then do it" bit will probably come in handy when you find that
not all the RPMs you need are in this tarball.  If the script stops for this
or any other reason, you wil know exactly where it stopped so you can fix it
and pick up where it left of manually.

It would be wise to not trust me or my server and check the keys from an
offical source.

I'm not completely sure I have run this top level script at all since I
factored it out of 3 similar scripts that used to live in the subdirs, let
alone on all 3 flavors it purports to support.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20090408/94a5665e/attachment.html 


More information about the gnhlug-discuss mailing list