[CentOS] Reg. Kernel switching

Fri Feb 8 19:21:04 UTC 2008
Garrick Staples <garrick at usc.edu>

On Fri, Feb 08, 2008 at 06:59:36AM -0800, nate alleged:
> Padmaja wrote:
> > Can you please provide the instructions/ commands to re install the original
> > kernel. Also please let me know if anything went wrong with this
> > re-installation of 2.6.9-42 kernel, will it affect the other kernel from
> > working or I can still continue to use the 2.6.9.34 kernel?
> 
> find the original RPM for the kernel you want and run
> 
> rpm -Uvh <rpm name>
> 
> if it fails saying it's already installed run:
> 
> rpm -Uvh --force <rpm name>
> 
> if it fails saying something newer is already installed run:
> 
> rpm -Uvh --oldpackage <rpm name>
> 
> The installation of 2.6.9-42 will likely remove the 2.6.9-34 kernel,
> I *think* you can get around that by using rpm -iv instead of -Uvh,
> that should install the new kernel along side the old. But you should
> keep a backup of the other kernel just in case(or track down the
> original RPM for that as well).

No.  Don't *upgrade* kernels, and use yum.

Get the full package name
# rpm -qa | grep kernel

Remove the one you want
# rpm -e <pkgname>

Update your system
# yum update

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080208/93f72adf/attachment-0004.sig>