hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : HOW-TO: yum upgrade; redhat 9 -> CentOS 3.1
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

HOW-TO: yum upgrade; redhat 9 -> CentOS 3.1

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-25-2004, 06:30 PM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588

HOW-TO: yum upgrade; redhat 9 -> CentOS 3.1


What is CentOS?: CentOS is essentially a rebuild of the RHEL source code. I've been using this OS for a couple weeks now with no issues running cpanel.
More info on CentOS can be found on the web site:
http://www.centos.org

Here are the steps i took to update a Redhat 9 box running on a minimal install ( no X, etc ) as suitable for a server to CentOS 3.1 ( which is a fork of RedHat Enterprise Linux v3 )..

I took a fresh install of redhat 9, slapped it on a test box then updated it with up2date. I then installed yum for redhat 9 which can be found here:
Yum Download

Now, you might want to rebuild the rpm database, just incase, thats up to you:
# rpm -vv --rebuilddb

I then modified /etc/yum.conf to look like this:

Code:
[main]
exclude=httpd* mysql* php* perl*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
tolerant=1
exactarch=1

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/os/i386/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/updates/i386/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/addons/i386/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/extras/i386/
gpgcheck=1
Change "http://mirror.pacific.net.au" to a mirror near you, a list can be found here:
CentOS Mirrors

After that you need to import the GPG key for the centos RPMs. Issue the following command:
# rpm --import http://mirror.centos.org/centos/3.1/i386/RPM-GPG-KEY-CentOS-3

Nows the time you want to check you have made appropriate backups, etc ( i hope you all test this out before rolling production servers! ).

Next step is to run the following command:
# yum upgrade

This will download the rpm headers and determine what needs to be done, play carefull attention of course here and in all parts if this process for errors. Yum will then ask you if you are sure you want to go ahead, if no errors are present, press "y" then "enter".

This process will take a while, depending on your connection and the gear your installing it on of course. Go brew a fresh pot of coffee, order a pizza, grab a movie or GET BACK TO WORK YOU!!!!

After thats done, check for errors, make sure the new kernel is installed by issueing:
# rpm -qa|grep kernel

You should be presented with a kernel versioned like this: 2.4.21-15.EL.c0 as well as your other kernels previously installed. Check your boot loader to make sure the new kernel is default.

Finally run:
# yum update

Just to ensure you have everything you need.

Now your set to reboot ( hopefully ):
shutdown -rf now

This worked like a charm for me, hope you all can make use of this somehow


Last edited by anon-e-mouse; 05-28-2004 at 08:36 PM.
Reply With Quote


Sponsored Links
  #2  
Old 05-28-2004, 12:06 PM
AH4YOU AH4YOU is offline
New Member
 
Join Date: May 2004
Posts: 4
its little hard to do thast i think

Reply With Quote
  #3  
Old 05-28-2004, 06:47 PM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588
Its fairly straight forward actually, what are you stuck on?

Reply With Quote
Sponsored Links
  #4  
Old 05-28-2004, 08:23 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,632
yes looks very stright forword

Reply With Quote
  #5  
Old 05-29-2004, 01:24 AM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,632
[root@opium root]# uname -r
2.4.21-15.EL.c0
[root@opium root]# cat /etc/*release*
CentOS release 3.1 (final)
[root@opium root]#


Here's a direct admin box upgraded from rh9

Reply With Quote
  #6  
Old 05-29-2004, 04:42 AM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588
thnx TLG for testing that out.. ur a legend!!

And just incase, cuz i've had a couple people have this issue now, if the EL kernel doesn't install ( rpm -qa | grep kernel <- to check + cat grub.conf ; else lilo.conf ), make sure you download the rpm and rpm -ivh kernelfilename.rpm and modify your boot loader ( be it lilo or grub ) before you reboot! The rpm can be found on any of the CentOS mirrors.

Reply With Quote
  #7  
Old 05-30-2004, 03:36 AM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,632
The upgrade seems very stable. On a side note, it does not break anything with directadmin. I did not have to fix anything. I did however have to add a few http related thing to the skiplist and webalizer.

Reply With Quote
  #8  
Old 07-17-2004, 09:12 PM
rtoledo rtoledo is offline
New Member
 
Join Date: Jul 2004
Posts: 0
*

Quote:
Originally posted by thelinuxguy
The upgrade seems very stable. On a side note, it does not break anything with directadmin. I did not have to fix anything. I did however have to add a few http related thing to the skiplist and webalizer.
Man I'm glad I came across this post on google, I wanted the Redhat 3. es and this release does it just as good!

now to play around with Tomcat and Java

Reply With Quote
  #9  
Old 07-19-2004, 01:27 AM
2uantuM 2uantuM is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Potsdam, NY
Posts: 646
has anyone tried this on cpanel boxes?

Reply With Quote
  #10  
Old 07-19-2004, 02:25 AM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588
So far i've done 1 personal production redhat 9 cpanel box no problems. That box also had ircd's and eggdrops on it. No reported problems.

I've been in contact with others that have successfully migrated their cpanel rh9 to centos via this howto as well with no issues.

Reply With Quote
  #11  
Old 07-19-2004, 05:17 PM
thaphantom thaphantom is offline
WHT Addict
 
Join Date: May 2003
Posts: 147
A good yum.conf for the USA

Quote:
[main]
exclude=httpd* mysql* php* perl*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
tolerant=1
exactarch=1

[base]
name=CentOS-$releasever - Base
baseurl=http://caos.nplus1.net/centos-3/3.1/os/i386/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://caos.nplus1.net/centos-3/3.1/updates/i386/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://caos.nplus1.net/centos-3/3.1/addons/i386/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://caos.nplus1.net/centos-3/3.1/extras/i386/
gpgcheck=1
Taken from myCPAdmin.com

Reply With Quote
  #12  
Old 08-21-2004, 11:43 AM
Apoc Apoc is offline
SolidHost
 
Join Date: Dec 2002
Location: Amsterdam/Rotterdam, NL
Posts: 2,085
Would this work for Fedora to Centos too?

Reply With Quote
  #13  
Old 08-21-2004, 07:49 PM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588
Simple Answer: No! This how-to will not work with fedora as it is much newer than centos 3.1.

As fedora has newer technologies ( newer gcc, kernel, etc ) this would be a very trickey transition. In essence, you will be *downgrading* the box. I have not had the chance to test this as we only use 1 fedora box that we are migrating clients to a brand new box shortly, thus I have not personally had the need to do so.

Complicated answer: I know it has been done, but just what needs to be done to enable a smooth transition I am unsure of. You may want to contact thelinuxguy on these boards or through his web site: http://www.rack911.com as I am sure he's told me he has done it with success.

Reply With Quote
  #14  
Old 08-22-2004, 02:38 AM
Apoc Apoc is offline
SolidHost
 
Join Date: Dec 2002
Location: Amsterdam/Rotterdam, NL
Posts: 2,085
Hm that's too bad. The reason that I wanted to try it is that CentOS is much less of a beta product than Fedora is. The problem here would be that I'd have to upgrade the OS on about 50 machines every time they release a new version..

Reply With Quote
  #15  
Old 08-22-2004, 04:35 AM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,632
if i had another test box with me i could make a tutorial probably.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2013-04-08 12:32:06
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?