Upgrade Linux Kernel

Today is last day for server – server2.hosthat.com

This is first Linux dedicated server i have taken, initially it was RedHat 7.3, later after a hacking, OS reinstalled to RedHat 9. As i am canceling the server, tried upgrading it to CentOS.

Rebuild rpm database

rpm -vv –rebuilddb

Install yum

rpm -ivh yum-2.0.3-0.fdr.1.rh90.noarch.rpm

Create /etc/yum.conf with following content

[main]
exclude=mod_ssl* httpd* perl mysql* php* #add this line for cpanel servers
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
name=CentOS-4.2 – Base
baseurl=http://beta.centos.org/centos/4.2/os/$basearch/
gpgcheck=1

#released updates
[update]
name=CentOS-4.2 – Updates
baseurl=http://beta.centos.org/centos/4.2/updates/$basearch/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-4.2 – Addons
baseurl=http://beta.centos.org/centos/4.2/addons/$basearch/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-4.2 – Extras
baseurl=http://beta.centos.org/centos/4.2/extras/$basearch/
gpgcheck=1

#centosplus repo – updated packages that extend beyond rhel release versions
#run auto update with this repo enabled only if you know you want extended functonality
#[centosplus]
#name=CentOS-4.2 – CentOSplus
#baseurl=http://beta.centos.org/centos/4.2/centosplus/$basearch/
#gpgcheck=1

#packages in testing
#[testing]
#name=CentOS-4.2 – Testing
#baseurl=http://beta.centos.org/centos/4.2/testing/$basearch/
#gpgcheck=1

Now run

yum upgrade

yum update

And Upgrade Kernel

root@server2 [/etc]# yum upgrade kernel
Gathering header information file(s) from server(s)
Server: CentOS-3.4 – Addons
Server: CentOS-3.4 – Base
Server: CentOS-3.4 – Extras
Server: CentOS-3.4 – Updates
Finding updated packages
Downloading needed headers
Finding obsoleted packages
Resolving dependencies
Dependencies resolved
I will do the following:
[install: kernel 2.4.21-37.0.1.EL.i686]
Is this ok [y/N]: y
Getting kernel-2.4.21-37.0.1.EL.i686.rpm
Calculating available disk space – this could take a bit
kernel 100 % done 1/1
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
Kernel Updated/Installed, checking for bootloader
Lilo found – adding kernel to lilo and making it the default
Installed: kernel 2.4.21-37.0.1.EL.i686
Transaction(s) Complete
root@server2 [/etc]#


Posted in Uncategorized. Bookmark the permalink.