FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2017
    Location
    pittsburgh
    Posts
    3

    dnf remove kernel-x.y.z not removed from grub2

    i would like to remove NEWer kernels from the grub2 menu. Ive had issues with kernels ahead of 4.12.

    I removed the kernels using: `dnf remove kernel-<full name>` but this did not affect the grub2 cfg. i do not see extra kernels using `rpm -q kernel`

    I tried reloading the grub2 cfg using: `grub2-mkconfig > /etc/grub2-efi.cfg` but its still seeing the previous configs :/

    can i manually remove them from /boot? my concern is theyll be reloaded next time i have to make another grub2 cfg change.

    thanks in advance!

  2. #2
    Join Date
    Oct 2011
    Posts
    1,617

    Re: dnf remove kernel-x.y.z not removed from grub2

    `kernel` is just a meta package, make sure that `kernel-core` and `kernel-modules` for the wanted kernel version are also being removed.

    A small tip, you can add `exclude=kernel*4.12*` to `/etc/dnf/dnf.conf` to disable this particular kernel version from installing in the future.
    Last edited by srakitnican; 15th November 2017 at 06:41 AM.

  3. #3
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,287

    Re: dnf remove kernel-x.y.z not removed from grub2

    also check for and remove kernel-modules-extra

  4. #4
    Join Date
    Nov 2017
    Location
    China
    Posts
    4

    Re: dnf remove kernel-x.y.z not removed from grub2

    dnf remove kernel-core-[VERSION]

    will remove all kernel* pkgs with that version.

Similar Threads

  1. how remove last kernel (4.12.11) from grub2 ?
    By sajjads24 in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 16th September 2017, 09:58 PM
  2. [Help me] How to remove GRUB2 and recover windows default on gpt disk
    By clone4ever3 in forum Installation, Upgrades and Live Media
    Replies: 19
    Last Post: 6th September 2013, 03:57 PM
  3. HOW TO: remove GRUB2 booloader and recover windows default
    By deathmood in forum Guides & Solutions (Not For Questions)
    Replies: 4
    Last Post: 18th March 2013, 01:31 AM
  4. How can I remove grub2 entries?
    By jcllings in forum Installation, Upgrades and Live Media
    Replies: 15
    Last Post: 27th September 2012, 07:11 AM
  5. Replies: 3
    Last Post: 21st March 2012, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •