Why?


Search This Blog

Saturday, October 15, 2016

CentOS 7 kernel upgrade using ELRepo. 4.8.1 as of 10/15/2016

CentOS 7 kernel upgrade using ELRepo. 4.8.1 as of 10/15/2016

AS root install the elrepo public key and RPM

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Enable the elrepo-kerenel

yum --enablerepo=elrepo-kernel

Install new kerenel

yum install kernel-ml

Reboot and run uname -r to see if on new kernel-ml

# uname -r
3.10.0-327.28.2.el7.x86_64


If still on old kernel, like above, make sure your default menu entry is on the correct entry.

Change default menu entry.

cat /boot/grub2/grub.cfg | grep menuentry

or

cat /boot/efi/EFI/centos/grub.cfg | grep menuentry (if using EFI)

And look for your 4.7 entry. My menu entry is the first one (or 0) so set it to that.

grub2-set-default 0

reboot

Now check version.

# uname -r
4.8.1-1.el7.elrepo.x86_64


If using btrfs remember to upgrade your btrfs-progs to current version as well

First check current version

# btrfs --version
btrfs-progs v3.19.1

Your btrfs-progs should match your kernel.

Uninstall you current btrfs-progs

yum -y remove btrfs-progs

Now install packages for new btrfs-progs

yum install libuuid-devel libattr-devel zlib-devel libacl-devel e2fsprogs-devel libblkid-devel lzo2-devel lzo-devel asciidoc xmlto git
yum -y groupinstall "Development Tools"

Now download, compile, and install new btrfs-progs

cd /root
git clone git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
cd btrfs-progs
./autogen.sh
./configure && make
make install

Now reboot and check versions

# uname -r
4.8.1-1.el7.elrepo.x86_64
# btrfs --version
btrfs-progs v4.8.1













No comments:

Post a Comment