Re: how to remove unwanted old kernels.

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

 



On 12/1/23 16:41, Samuel Sieb wrote:
On 12/1/23 14:25, home user wrote:
The rpm command did not give me enough information, so I had to do the reboot.  The grub menu shows 4 kernels and 2 memtests (manually typed):

How did it not give you enough information?  What were you looking for?

I was looking for the part of the name that, in the "dnf remove" command, goes after "kernel", or as you say "kernel-core". The rpm command listed 3 kernels, but the grub menu listed 4. Not enough information to complete the dnf command argument. I had to reboot to see the grub menu to get that.


Fedora Linux (6.6.2-101.fc38.x86_64...
Fedora Linux (6.6.2-101.fc38.x86_64...
Fedora Linux (6.6.2-101.fc38.x86_64...
Fedora Linux (6.6.2-101.fc38.x86_64...

4 of the same version?

sigh
I selected the first line and pasted it 3 times, intending to then change a few characters in each line. I forgot to do the edits. It should be:
Fedora Linux (6.6.2-101.fc38.x86_64...
Fedora Linux (6.5.12-200.fc38.x86_64...
Fedora Linux (6.5.10-200.fc38.x86_64...
Fedora Linux (6.5.8-200.fc38.x86_64...

I need a drink.
Someone please e-mail a tall, cool one to me!


bash.29[~]: dnf remove kernel-6.6.2-101.fc38.x86_64
Freed space: 0

I didn't notice that.
Worse, the version was wrong. 6.6.2-101 is the current version. I should have tried to remove 6.5.8-200 (based on the grub menu).

"kernel" is a meta package as you can see it doesn't take any space.  It works for installing to bring in the right dependencies, but it doesn't work for removing.  You need to remove "kernel-core" instead.

sigh
and now you know I really am no sys.admin.

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
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
bash.2[~]: rpm -qa kernel
kernel-6.5.5-200.fc38.x86_64
kernel-6.5.12-200.fc38.x86_64
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:
-----
bash.2[~]: uname -a
Linux coyote 6.6.2-101.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 22 21:31:13 UTC 2023 x86_64 GNU/Linux
bash.3[~]:
-----

I'm really lost now.
I'm no sys.admin.
This is a 10+ year old home workstation; dual boot (Fedora + windows).
I need step-by-step instructions.

...and I need a vacation after the tall, cool one!

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