Re: how to remove unwanted old kernels.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/1/23 6:44 PM, Samuel Sieb wrote:
On 12/1/23 16:50, home user wrote:
Using the wrong version in the "dnf remove" may have caused more problems:
-----
bash.1[~]: dnf remove kernel-core-6.5.8-200.fc38.x86_64
No match for argument: kernel-core-6.5.8-200.fc38.x86_64

You mentioned in a previous email that there was a rescue kernel.  That one isn't tracked by any package.  You can delete the files and the next kernel install will update it with the latest kernel.

The rescue kernel is not the issue here.  I included it in the grub menu list for completeness.

The grub entries are in /boot/loader/entries/ and you'll see one with "rescue" in the name.

Not the focus of this thread.


bash.2[~]: rpm -qa kernel
kernel-6.5.5-200.fc38.x86_64
kernel-6.5.12-200.fc38.x86_64

I don't know what you mean about this not providing the information you need.  That's the full version string there.  Just change "kernel" to "kernel-core".
The rpm command listed 3 kernels, but the grub menu listed 4.  So I had to reboot to see the grub menu to know what the oldest kernel is.  By now, I have a hand-written list of the 4 kernels in the grub menu.  The oldest is 6.5.8-200.  Notice that that one is not in the rpm output.  It's the 6.5.8-200 that I want deleted.

But...
I'm now noticing that the rpm output is listing kernels that are not in the grub menu.  As was suggested, listing "kernel-core" rather than "kernel"...
-----
-bash.8[~]: rpm -qa kernel-core
kernel-core-6.5.5-200.fc38.x86_64
kernel-core-6.5.12-200.fc38.x86_64
kernel-core-6.6.2-101.fc38.x86_64
-bash.9[~]:
-----
So...
6.5.10 is in the grub menu, but not the rpm -qa kernel-core output.
6.5.8 is in the grub menu, but not the rpm -qa kernel-core output.
6.5.5 is in the rpm -qa kernel-core output, but not the grub menu.

6.6.2 is in both, no problem.
6.5.12 is in both, no problem.

Looking at /boot, I see 4 kernel versions of
"config*.fc38.x86_64"
"initramfs-*.fc38.x86_64.img"
"symvers-*.fc38.x86_64.xz"
"System.map-*.fc38.x86_64" and
"vmlinuz-*.fc38.x86_64".
The versions are
6,6,2
6.5.12
6.5.10 and
6.5.8
Those match the grub menu, but not the rpm -qa kernel-core output.

The /boot/loader/entries/ kernel listing matches the grub menu, but not the rpm -qa kernel-core output.

What I want for the kernels:
the grub menu
the rpm -qa kernel-core output
the /boot listing
the /boot/loader/entries/ listing
to all match, and all out-of-date files gone.


bash.3[~]:
-----
6.6.2-101 (the current kernel) is gone.

I'm saving this draft and rebooting to see what's now in the grub menu.
(reboot)
I'm back.
The grub menu has not changed; it still has the same 4 kernels and 2 memtests.

Curious: 6.6.2-101 seems to still be booting:

You only removed the "kernel" package which has nothing in it. Everything else is still there.

rpm -qa kernel-core
--

I get the impression from what you say that my having removed the "kernel" package, though wrong, will not cause problems for future weekly patches.  Is my impression correct?
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux