How to remove kernel 3 and add kernel 5 in centos 7

ankh90

New Member
Joined
Jul 23, 2020
Messages
3
Reaction score
0
Credits
27
I'm using Centos 7 and Desktop Version.

I executed this command in terminal:

>> uname -r
5.6.13-1.el7.elrepo.x86_64

so I'm using kernel version 5 but when i executed this command:

>> rpm -q kernel
kernel-3.10.0-1062.18.1.el7.x86_64
kernel-3.10.0-1127.10.1.el7.x86_64

kernel 5 doesn't exist in kernels list!!!

I want to remove kernel 3 and add kernel 5 to kernel list.

How can i do?
 


try
Code:
rpm -q  kernel-lt kernel-ml

Then use yum remove selecting the 3x kernels you want to remove.
 
Last edited:
I did it
>> rpm -q kernel-lt or rpm -q kernel-ml
kernel-lt-4.4.231-1.el7.elrepo.x86_64
package or is not installed
rpm-4.11.3-43.el7.x86_64
kernel-ml-5.6.13-1.el7.elrepo.x86_64
kernel-ml-5.7.10-1.el7.elrepo.x86_64
------
doesn't exist 3x
 
I did it
>> rpm -q kernel-lt or rpm -q kernel-ml
kernel-lt-4.4.231-1.el7.elrepo.x86_64
package or is not installed
rpm-4.11.3-43.el7.x86_64
kernel-ml-5.6.13-1.el7.elrepo.x86_64
kernel-ml-5.7.10-1.el7.elrepo.x86_64
------
doesn't exist 3x

I was referring to kernel 3x being the kernels you had listed before.
Code:
yum remove kernel-3.10.0-1062.18.1.el7.x86_64  kernel-3.10.0-1127.10.1.el7.x86_64
 
Last edited:
i removed both 3x kernel then removed kernel-lt-4.4.231-1.el7.elrepo.x86_64 too.
i executed this command again:
>> rpm -q kernel
package kernel is not installed
where is kernel-5x?
didn't solve my problem :/
 
Code:
[root@localhost yum.repos.d]# rpm -q kernel-ml kernel-lt
kernel-ml-5.7.10-1.el7.elrepo.x86_64
kernel-lt-4.4.231-1.el7.elrepo.x86_64

kernel-ml is kernel 5x, kernel-lt is kernel 4x, default EL kernel is 3x. So you have kernel 5x installed, kernel-ml is the name of the package that provides the 5x kernel.
 

Members online


Top