Re: how to remove unwanted old kernels.

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

 



On 12/1/23 8:38 PM, Samuel Sieb wrote:
On 12/1/23 18:46, home user wrote:
On 12/1/23 6:44 PM, Samuel Sieb wrote:
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.

It wasn't clear that it was a separate entry since it didn't have a version.

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

It would, since that's where the grub menu list comes from.

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.

Remove the files for the entry that doesn't have a kernel package.

Here's what I did:
-----
-bash.1[~]: cd /boot/loader/entries/
-bash.2[entries]: ls
70857e3fb05849139515e66a3fdc6b38-0-memtest86+.conf
70857e3fb05849139515e66a3fdc6b38-0-rescue.conf
70857e3fb05849139515e66a3fdc6b38-6.5.10-200.fc38.x86_64.conf
70857e3fb05849139515e66a3fdc6b38-6.5.12-200.fc38.x86_64.conf
70857e3fb05849139515e66a3fdc6b38-6.5.8-200.fc38.x86_64.conf
70857e3fb05849139515e66a3fdc6b38-6.6.2-101.fc38.x86_64.conf
-bash.3[entries]: rm 70857e3fb05849139515e66a3fdc6b38-6.5.8-200.fc38.x86_64.conf
rm: remove regular file '70857e3fb05849139515e66a3fdc6b38-6.5.8-200.fc38.x86_64.conf'? y
-bash.4[entries]: rm 70857e3fb05849139515e66a3fdc6b38-6.5.10-200.fc38.x86_64.conf
rm: remove regular file '70857e3fb05849139515e66a3fdc6b38-6.5.10-200.fc38.x86_64.conf'? y
-bash.5[entries]: ls
70857e3fb05849139515e66a3fdc6b38-0-memtest86+.conf
70857e3fb05849139515e66a3fdc6b38-0-rescue.conf
70857e3fb05849139515e66a3fdc6b38-6.5.12-200.fc38.x86_64.conf
70857e3fb05849139515e66a3fdc6b38-6.6.2-101.fc38.x86_64.conf
-bash.6[entries]:
-----
That's what you meant, right?

I don't know why you have a kernel package without a grub entry, but I wouldn't be surprised if it's related the entry that doesn't have a package.  After a couple more kernel updates it should all match.

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?

Yes, but I would recommend installing it again.

So how do I install the "meta package" "kernel" only for 6.6.2-101.fc38.x86_64?

Now I'll reboot and see what matches and what does not match, and report back in a separate post.

--

--
_______________________________________________
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