How to update CentOS kernel to CentOS Plus using Yum

When you run “sudo yum update” you Cent OS box  is updated will all packaged n

Installed:
kernel.x86_64 0:2.6.32-220.23.1.el6

But if you want to update CentOS to CentOS Plus Kernel you would need to do the following:

First edit the your yum configuration repo for CentOS in [centos] section as following:

[root@hadoop ~]# vi /etc/yum.repos.d/CentOS-Base.repo

[centosplus]
enabled=1
includepkgs=kernel*

 

Verify the changes as following:

[root@hadoop ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
includepkgs=kernel*
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[root@hadoop ~]# sudo yum update

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.stanford.edu
* centosplus: centos.mirrors.hoobly.com
* extras: mirrors.xmission.com
* updates: mirror.san.fastserv.com
base | 3.7 kB 00:00
centosplus | 3.5 kB 00:00
centosplus/primary_db | 1.7 MB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package kernel.x86_64 0:2.6.32-220.23.1.el6.centos.plus will be installed
—> Package kernel-firmware.noarch 0:2.6.32-220.23.1.el6 will be updated
—> Package kernel-firmware.noarch 0:2.6.32-220.23.1.el6.centos.plus will be an update
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kernel x86_64 2.6.32-220.23.1.el6.centos.plus centosplus 25 M
Updating:
kernel-firmware noarch 2.6.32-220.23.1.el6.centos.plus centosplus 6.3 M

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 1 Package(s)

Total download size: 31 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kernel-2.6.32-220.23.1.el6.centos.plus.x86_64.rpm | 25 MB 00:03
(2/2): kernel-firmware-2.6.32-220.23.1.el6.centos.plus.n | 6.3 MB 00:00
——————————————————————————–
Total 7.2 MB/s | 31 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : kernel-firmware-2.6.32-220.23.1.el6.centos.plus.noarch 1/3
Installing : kernel-2.6.32-220.23.1.el6.centos.plus.x86_64 2/3
Cleanup : kernel-firmware-2.6.32-220.23.1.el6.noarch 3/3

Installed:
kernel.x86_64 0:2.6.32-220.23.1.el6.centos.plus

Updated:
kernel-firmware.noarch 0:2.6.32-220.23.1.el6.centos.plus

Complete!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s