Can’t install kernel-uek-headers for currently running kernel
# cat /etc/oracle-release Oracle Linux Server release 6.3
# uname -r 2.6.39-200.24.1.el6uek.x86_64
Searching for a valid kernel header path. The path "" is not a valid path to the 2.6.39-200.24.1.el6uek.x86_64 kernel headers. Would you like to change it? [yes]
# yum list kernel-uek Installed Packages kernel-uek.x86_64 2.6.39-200.24.1.el6uek @anaconda-UEK2/6.3 kernel-uek.x86_64 2.6.39-200.29.3.el6uek @ol6_UEK_latest # yum list kernel-uek-headers Installed Packages kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek @ol6_latest
# yum list kernel-uek-headers --showduplicates Installed Packages kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek @ol6_latest Available Packages kernel-uek-headers.x86_64 2.6.32-100.28.5.el6 ol6_latest kernel-uek-headers.x86_64 2.6.32-100.28.9.el6 ol6_latest kernel-uek-headers.x86_64 2.6.32-100.28.11.el6 ol6_latest kernel-uek-headers.x86_64 2.6.32-100.28.15.el6 ol6_latest kernel-uek-headers.x86_64 2.6.32-100.28.17.el6 ol6_latest kernel-uek-headers.x86_64 2.6.32-100.34.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-100.35.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-100.36.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-100.37.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-200.16.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-200.19.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-200.20.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-200.23.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.3.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.4.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.7.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.11.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.20.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.21.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.24.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.25.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.27.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.29.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.29.2.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.32.1.el6uek ol6_latest kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek ol6_latest
# yum list kernel-uek --showduplicates Installed Packages kernel-uek.x86_64 2.6.39-200.24.1.el6uek @anaconda-UEK2/6.3 kernel-uek.x86_64 2.6.39-200.29.3.el6uek @ol6_UEK_latest Available Packages kernel-uek.x86_64 2.6.32-100.28.5.el6 ol6_latest kernel-uek.x86_64 2.6.32-100.28.9.el6 ol6_latest kernel-uek.x86_64 2.6.32-100.28.11.el6 ol6_latest kernel-uek.x86_64 2.6.32-100.28.15.el6 ol6_latest kernel-uek.x86_64 2.6.32-100.28.17.el6 ol6_latest kernel-uek.x86_64 2.6.32-100.34.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-100.35.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-100.36.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-100.37.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-200.16.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-200.19.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-200.20.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-200.23.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.3.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.4.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.7.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.11.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.20.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.21.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.24.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.25.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.27.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.29.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.29.2.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.32.1.el6uek ol6_latest kernel-uek.x86_64 2.6.32-300.32.2.el6uek ol6_latest kernel-uek.x86_64 2.6.39-100.5.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-100.6.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-100.7.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-100.10.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-200.24.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-200.29.1.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-200.29.2.el6uek ol6_UEK_latest kernel-uek.x86_64 2.6.39-200.29.3.el6uek ol6_UEK_latest
Should I downgrade the kernel to 2.6.32 so I can install VMWare tools? Is there another way to get the kernel-uek-headers package for the 2.6.39 UEK?
Oracle linux install kernel headers
Recently I needed to obtain kernel headers for a couple of different Oracle Linux UEK kernel versions. This post is to summarize how that was done. Some useful information that for whatever reason helped to point me in th e right direction were found here and here. Note that I found that the repo did not required enabling extra repos as described (addons and latest ol7 release); this may be because the method has changed since OL5 when one of those referenced posts was written. I found that the default OL7 repo was sufficient to get the header packages. My public-yum-ol7.repo file is shown below. Note that I have added the new UEK4 repo as well. The new UEK4 repo can be added by simply copying the UEK3 repo stanza and changing from «3» to «4» in the new stanza.
[root@ol72 yum.repos.d]# cat public-yum-ol7.repo
[ol7_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol7_u0_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/2/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_UEKR3]
name=Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol7_UEKR4]
name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR4/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol7_optional_latest]
name=Oracle Linux $releasever Optional Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_UEKR3_OFED20]
name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 7 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3_OFED20/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
priority=20
[ol7_MySQL56]
name=MySQL 5.6 for Oracle Linux 7 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_MySQL55]
name=MySQL 5.5 for Oracle Linux 7 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL55/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol7_spacewalk22_client]
name=Spacewalk Client 2.2 for Oracle Linux 7 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk22/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
List Available Kernel Header Pacakges
The kernel header packages that are available can be listed as shown below.
[root@ol72 yum.repos.d]# yum list kernel-uek-devel —showduplicates
Loaded plugins: langpacks, ulninfo
Installed Packages
kernel-uek-devel.x86_64 4.1.12-61.1.10.el7uek @ol7_UEKR4
Available Packages
kernel-uek-devel.x86_64 3.8.13-35.3.1.el7uek i ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-35.3.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-35.3.3.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-35.3.4.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-35.3.5.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-44.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-44.1.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-44.1.3.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-44.1.4.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-44.1.5.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.1.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.1.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.1.5.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.1.6.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.1.8.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-55.2.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.1.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.1.3.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.2.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.2.2.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.2.2.3.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.3.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.3.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.3.3.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.3.4.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-68.3.5.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.1.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.1.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.2.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.2.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.4.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.5.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.6.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-98.7.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.2.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.2.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.2.4.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.2.5.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.3.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.3.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.4.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.4.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.6.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.6.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.7.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.8.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.9.1.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.9.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.10.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 3.8.13-118.11.2.el7uek ol7_UEKR3
kernel-uek-devel.x86_64 4.1.12-32.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-32.1.2.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-32.2.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-32.2.3.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.2.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.2.2.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.3.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.4.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.5.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.6.1.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.6.2.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-37.6.3.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-61.1.6.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-61.1.9.el7uek ol7_UEKR4
kernel-uek-devel.x86_64 4.1.12-61.1.10.el7uek ol7_UEKR4
[root@ol72 yum.repos.d]#
Download Only Header Package(s)
The required packages can be dowloaded (but not installed) as shown below.
[root@ol72 ~]# yumdownloader kernel-uek-devel-3.8.13-98.7.1.el7uek.x86_64
Loaded plugins: langpacks
No Presto metadata available for ol7_UEKR3
kernel-uek-devel-3.8.13-98.7.1.el7uek.x86_64.rpm | 9.1 MB 00:00:03
[root@ol72 ~]# yumdownloader kernel-uek-devel-4.1.12-61.1.10.el7uek.x86_64
Loaded plugins: langpacks
No Presto metadata available for ol7_UEKR4
kernel-uek-devel-4.1.12-61.1.10.el7uek.x86_64.rpm | 10 MB 00:00:01
[root@ol72~]# ls -l kernel*
-rw-r—r—. 1 root root 9522864 Nov 25 2015 kernel-uek-devel-3.8.13-98.7.1.el7uek.x86_64.rpm
-rw-r—r—. 1 root root 11005412 Sep 21 20:42 kernel-uek-devel-4.1.12-61.1.10.el7uek.x86_64.rpm