Welcome to Centmin Mod Community
Become a Member

Sysadmin How can I surpress default kernel updates

Discussion in 'System Administration' started by duderuud, Apr 8, 2022.

Tags:
  1. duderuud

    duderuud Member

    87
    28
    18
    Dec 5, 2020
    The Netherlands
    Ratings:
    +65
    Local Time:
    2:43 AM
    1.21.x
    10.4
    I installed kernel 5.1 which works fine. But Centmin keeps giving me kernel 3.10 updates.


    How can I stop CMM to update the 3.10 kernel? Or even better, to check for 5.1 kernels?
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,034
    11,232
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,483
    Local Time:
    10:43 AM
    Nginx 1.21.x
    MariaDB 10.x
    How did you install 5.1 Linux Kernel?

    What does output for below command give
    Code (Text):
    yum -q list updates | tr -s ' ' | column -t
    

    and
    Code (Text):
    yum -q list kernel* | tr -s ' ' | column -t
    


    You can still update system Linux Kernels from my experience or you can just exclude them from updates or do a yum version lock on them.
     
  3. duderuud

    duderuud Member

    87
    28
    18
    Dec 5, 2020
    The Netherlands
    Ratings:
    +65
    Local Time:
    2:43 AM
    1.21.x
    10.4
    First command gives no output, second command:
    Code:
    # yum -q list kernel* | tr -s ' ' | column -t
    Installed                     packages
    kernel.x86_64                   3.10.0-1160.62.1.el7  @updates
    kernel-devel.x86_64             3.10.0-1160.62.1.el7  @updates
    kernel-headers.x86_64           3.10.0-1160.62.1.el7  @updates
    kernel-ml.x86_64                5.17.1-1.el7.elrepo   @elrepo-kernel
    kernel-tools.x86_64             3.10.0-1160.62.1.el7  @updates
    kernel-tools-libs.x86_64        3.10.0-1160.62.1.el7  @updates
    Available                      packages
    kernel-abi-whitelists.noarch    3.10.0-1160.62.1.el7  updates
    kernel-debug.x86_64             3.10.0-1160.62.1.el7  updates
    kernel-debug-devel.x86_64       3.10.0-1160.62.1.el7  updates
    kernel-doc.noarch               3.10.0-1160.62.1.el7  updates
    kernel-tools-libs-devel.x86_64  3.10.0-1160.62.1.el7  updates
    
    I installed the kernel with
    Code:
    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
    yum -y install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
    yum -y --enablerepo=elrepo-kernel install kernel-ml
    grub2-set-default 0
    grub2-mkconfig -o /boot/grub2/grub.cfg
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,034
    11,232
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,483
    Local Time:
    10:43 AM
    Nginx 1.21.x
    MariaDB 10.x
    Then just use YUM Versionlock to prevent kernel packages from being updated.
    Code (Text):
    yum -y versionlock kernel-[0-9]*

    Code (Text):
    yum -y versionlock kernel-[0-9]*
    Loaded plugins: fastestmirror, priorities, versionlock
    Adding versionlock on: 0:kernel-3.10.0-862.3.2.el7
    Adding versionlock on: 0:kernel-3.10.0-957.10.1.el7
    Adding versionlock on: 0:kernel-3.10.0-1160.59.1.el7
    versionlock added: 3
    

    Code (Text):
    yum versionlock list | grep kernel
    0:kernel-3.10.0-862.3.2.el7.*
    0:kernel-3.10.0-957.10.1.el7.*
    0:kernel-3.10.0-1160.59.1.el7.*