Ask Your Question
1

how remove last kernel (4.12.11) from grub2 ?

asked 2017-09-15 17:08:03 -0600

sajjads24 gravatar image

updated 2017-09-16 04:20:22 -0600

hhlp gravatar image

hi how remove last kernel 4.12.11 from grub2 ?

    [sajjad@localhost ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[sudo] password for sajjad: 
Sorry, try again.
[sudo] password for sajjad: 
Sorry, try again.
[sudo] password for sajjad: 
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.12.11-300.fc26.x86_64
Found initrd image: /boot/initramfs-4.12.11-300.fc26.x86_64.img
Found linux image: /boot/vmlinuz-4.12.9-300.fc26.x86_64
Found initrd image: /boot/initramfs-4.12.9-300.fc26.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-e34e000cc1014d17921fbc789eb6e65a
Found initrd image: /boot/initramfs-0-rescue-e34e000cc1014d17921fbc789eb6e65a.img
Found Windows 7 on /dev/sda1
done
[sajjad@localhost ~]$ rpm -q kernel
kernel-4.12.9-300.fc26.x86_64
[sajjad@localhost ~]$ su
Password: 
[root@localhost sajjad]# dnf remove kernel-4.12.11-300.fc26.x86_64
No match for argument: kernel-4.12.11-300.fc26.x86_64
Error: No packages marked for removal.
[root@localhost sajjad]# uname -r
4.12.9-300.fc26.x86_64
[root@localhost sajjad]# rpm -q kernel
kernel-4.12.9-300.fc26.x86_64
[root@localhost sajjad]# rpm -e kernel-4.12.11-300.fc26.x86_64
error: package kernel-4.12.11-300.fc26.x86_64 is not installed
[root@localhost sajjad]#

how fix grub2 ?

edit retag flag offensive close merge delete

Comments

1

Welcome to ask.fedora. I'm not sure why you want to do this, but the first thing is to find out just what versions of the kernel you have installed. Please run sudo dnf list installed kernel and post the results in a comment.

sideburns gravatar imagesideburns ( 2017-09-15 18:13:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-09-16 05:51:21 -0600

Welcome :)

sudo dnf remove kernel-core-4.12.11
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-09-15 17:08:03 -0600

Seen: 704 times

Last updated: Sep 16 '17