Forum Discussion

Chunlin_Y_Intel's avatar
Chunlin_Y_Intel
Icon for New Contributor rankNew Contributor
5 years ago

block on install specific linux kernel on centos 7 to install intel fpga N3000 card

kernel running:I follow these stes

[root@localhost opae]# uname -a

Linux localhost.localdomain 3.10.0-693.2.2.rt56.623.el7.x86_64 #1 SMP PREEMPT RT Wed Sep 13 22:19:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost opae]#

kernels on the systems:

[root@localhost opae]# ls -l /usr/src/kernels/

total 16

drwxr-xr-x. 22 root root 4096 Jul 10 06:12 3.10.0-1062.12.1.rt56.1042.el7.x86_64

drwxr-xr-x. 22 root root 4096 Nov 20 15:06 3.10.0-1062.el7.x86_64

drwxr-xr-x 22 root root 4096 Nov 20 15:06 3.10.0-1160.6.1.el7.x86_64

drwxr-xr-x 22 root root 4096 Nov 20 15:06 3.10.0-693.2.2.rt56.623.el7.x86_64

 

List the installed kernel header:

[root@localhost opae]# rpm -qa | grep kernel-header

kernel-headers-3.10.0-1160.6.1.el7.x86_64

[root@localhost opae]#

Help needed is:

How to make the 'installed kernel header' only show the running kernel '3.10.0-693.2.2.rt56.623.el7.x86_64'?

 

Thanks!

3 Replies

    • Chunlin_Y_Intel's avatar
      Chunlin_Y_Intel
      Icon for New Contributor rankNew Contributor
      Thanks Jonway.
      I tried the mitigate method you highlighted, it does not solve my issue, I even manually install the rpm drive, no luck.
      As I have done so many methods, now I want to restore my kernel header to below, but it fails.
      'rpm -qa | grep kernel-header' to show:
      3.10.0-1062.el7.x86_64

      the current environment:
      [root@localhost ~]# uname -r
      3.10.0-1160.6.1.el7.x86_64


      root@localhost ~]# ls -l /usr/src/kernels/
      total 12
      drwxr-xr-x. 22 root root 4096 Jul 10 06:12 3.10.0-1062.12.1.rt56.1042.el7.x86_64
      drwxr-xr-x. 22 root root 4096 Nov 20 15:06 3.10.0-1062.el7.x86_64
      drwxr-xr-x 22 root root 4096 Nov 20 15:06 3.10.0-693.2.2.rt56.623.el7.x86_64

      Because I have done below: yum remove kernel-headers.x86_64, which removed the header '3.10.0-1062.el7.x86_64'.

      Although I have used 'yum history undo ' to try to restore it, it does not restore.

      I have referred to many many online posts with below method, without get a luck:

      yum install kernel-devel-3.10.0-1062.el7.x86_64
      yum install kernel-devel-$(uname -r)
      yum update
      sudo yum install "kernel-devel-uname-r == $(uname -r)"
      etc

      yum history undo

      Could you pls help?

      • JonWay_altera's avatar
        JonWay_altera
        Icon for Frequent Contributor rankFrequent Contributor

        I am not familiar with the kernel. Online forums will the my source of information. Perhaps you can check if kernel.org has the exact kernel version to match.