How do we update the Kernel (only) for a Oracle Linux OS

Configurare noua (How To)

Situatie

Sometimes you need to update only kernel on a Linux host.

Solutie

In that case you should use command:

yum update kernel
or
yum update kernel-uek
or for a “specific” kernel
yum update <kernel-uek-version>

(*) you have to update the repository (if needed – if the needed kernel is not available — “yum repolist” )

If you want to check available kernel versions (for install) you can use command:

yum list available ‘kernel*’

Then, if you want to check installed kernel versions you can use command:

yum list installed ‘kernel*’

— snip —
cat /etc/*release
uname -a
yum list available ‘kernel*’
yum list installed ‘kernel*’

#Output:

[root@sapsbpr1-18gi ~]# cat /etc/*release
Oracle Linux Server release 7.6
NAME=”Oracle Linux Server”
VERSION=”7.6″
ID=”ol”
VARIANT=”Server”
VARIANT_ID=”server”
VERSION_ID=”7.6″
PRETTY_NAME=”Oracle Linux Server 7.6″
ANSI_COLOR=”0;31″
CPE_NAME=”cpe:/o:oracle:linux:7:6:server”
HOME_URL=”https://linux.oracle.com/”
BUG_REPORT_URL=”https://bugzilla.oracle.com/”

ORACLE_BUGZILLA_PRODUCT=”Oracle Linux 7″
ORACLE_BUGZILLA_PRODUCT_VERSION=7.6
ORACLE_SUPPORT_PRODUCT=”Oracle Linux”
ORACLE_SUPPORT_PRODUCT_VERSION=7.6
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Oracle Linux Server release 7.6
[root@sapsbpr1-18gi ~]# uname -a
Linux sapsbpr1-18gi 4.1.12-124.28.5.el7uek.x86_64 #2 SMP Thu Jun 20 12:00:04 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@sapsbpr1-18gi ~]# yum list available ‘kernel*’
Loaded plugins: ulninfo
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Available Packages
kernel.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-abi-whitelists.noarch 3.10.0-1062.1.2.el7 ol7_latest
kernel-container.x86_64 3.10.0-0.0.0.2.el7 ol7_latest
kernel-debug.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-debug-devel.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-devel.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-doc.noarch 3.10.0-1062.1.2.el7 ol7_latest
kernel-headers.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-tools.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-tools-libs.x86_64 3.10.0-1062.1.2.el7 ol7_latest
kernel-transition.x86_64 3.10.0-0.0.0.2.el7 ol7_latest
kernel-uek.x86_64 4.1.12-124.31.1.1.el7uek ol7_UEKR4
kernel-uek-debug.x86_64 4.1.12-124.31.1.1.el7uek ol7_UEKR4
kernel-uek-debug-devel.x86_64 4.1.12-124.31.1.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-124.31.1.1.el7uek ol7_UEKR4
kernel-uek-doc.noarch 4.1.12-124.31.1.1.el7uek ol7_UEKR4
kernel-uek-firmware.noarch 4.1.12-124.31.1.1.el7uek ol7_UEKR4
[root@sapsbpr1-18gi ~]# yum list installed ‘kernel*’
Loaded plugins: ulninfo
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Installed Packages
kernel.x86_64 3.10.0-862.el7 @anaconda/7.5
kernel.x86_64 3.10.0-957.21.3.el7 @ol7_latest
kernel-headers.x86_64 3.10.0-957.21.3.el7 @ol7_latest
kernel-tools.x86_64 3.10.0-957.21.3.el7 @ol7_latest
kernel-tools-libs.x86_64 3.10.0-957.21.3.el7 @ol7_latest
kernel-uek.x86_64 4.1.12-112.16.4.el7uek @anaconda/7.5
kernel-uek.x86_64 4.1.12-124.28.5.el7uek @ol7_UEKR4
kernel-uek-firmware.noarch 4.1.12-112.16.4.el7uek @anaconda/7.5
kernel-uek-firmware.noarch 4.1.12-124.28.5.el7uek @ol7_UEKR4
[root@sapsbpr1-18gi ~]# uname -a
Linux sapsbpr1-18gi 4.1.12-124.28.5.el7uek.x86_64 #2 SMP Thu Jun 20 12:00:04 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@sapsbpr1-18gi ~]#

(*) note that “yum list installed ‘kernel*'” will liste one underlined – is the one in use (uname -a)

— snip —

Tip solutie

Permanent

Voteaza

(12 din 24 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?