Error: One or more required packages for installing OFED-internal are missing. MLNX_OFED_LINUX-4.9-

Hi mellanox MLNX_OFED_LINUX-4.9-, cannot be installed in a pod-container because some packages are missing… although the packages are already installed.

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 /]# uname -r

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-]# yum install createrepo
Loaded plugins: ovl, ulninfo
Package createrepo-0.9.9-28.el7.noarch already installed and latest version
Nothing to do

rpm -i kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64.rpm

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-]# rpm -i kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64.rpm
package kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64 is already installed

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-]# ./mlnxofedinstall --upstream-libs --dpdk --add-kernel-support
Note: This program will create MLNX_OFED_LINUX TGZ for ol7.9 under /tmp/MLNX_OFED_LINUX-4.9- directory.
See log file /tmp/MLNX_OFED_LINUX-4.9-
Checking if all needed packages are installed…
ERROR: ‘createrepo’ is not installed!
‘createrepo’ package is needed for creating a repository from MLNX_OFED_LINUX RPMs.
Use ‘–skip-repo’ flag if you are not going to set MLNX_OFED_LINUX as repository for
installation using yum/zypper tools.

/lib/modules/5.4.17-2136.308.9.el7uek.x86_64/build/scripts is required to build mlnx-ofa_kernel RPM.
Please install the corresponding kernel-source or kernel-devel RPM.

Error: One or more required packages for installing OFED-internal are missing.
Please install the missing packages using your Linux distribution Package Management tool.
yum install kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64
Failed to build MLNX_OFED_LINUX for 5.4.17-2136.308.9.el7uek.x86_64
[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-]#

which oracle linux version are you using?
suggest :

  1. use higer OFED version. ex OFED 5.4 , the newest is 5.7. They can support the kernel 5.4.17
    download OFED from:

  2. then don’t need to use ’ --add-kernel-support’