Skip to main content

Remove an Old or New kernel in Fedora

To remove a kernel in Fedora, follow these steps:

Identify the kernel you want to remove using the uname -r command. This will display the currently running kernel version.

Use the rpm -qa | grep ^kernel command to list all of the installed kernel packages on your system. Look for the kernel package that you want to remove. It will be named kernel-version, where version is the version number of the kernel you want to remove.

Example:

rpm -qa | grep ^kernel

proves the kernel 6.0.11 is still present:

kernel-core-6.0.11-300.fc37.x86_64
kernel-modules-6.0.11-300.fc37.x86_64
kernel-devel-6.0.11-300.fc37.x86_64
kernel-6.0.11-300.fc37.x86_64
kernel-core-6.0.12-300.fc37.x86_64
kernel-modules-6.0.12-300.fc37.x86_64
kernel-devel-6.0.12-300.fc37.x86_64
kernel-6.0.12-300.fc37.x86_64

to remove older kernel the below command will have to be used.

sudo dnf remove kernel-headers-6.0.5-300.fc37.x86_64
sudo dnf remove kernel-core-6.0.11-300.fc37.x86_6
sudo dnf remove kernel-modules-6.0.11-300.fc37.x86_64
sudo dnf remove kernel-6.0.11-300.fc37.x86_64

you can follow the below step too.

sudo dnf remove $(rpm -qa | grep ^kernel | grep 6\.0.11)

After uninstalling the kernel, you will need to update the GRUB boot menu so that the removed kernel is no longer listed as an option. To do this, run the grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg command. This will regenerate the GRUB configuration file with the updated list of kernels.

Reboot your system to apply the changes. The removed kernel will no longer be listed in the boot menu.

Note: Keep in mind that you should not remove the kernel that is currently running. If you do, you will not be able to boot your system. It is recommended to always have at least two kernels installed so that you have a fallback in case something goes wrong.


Comments

Popular posts from this blog

Upskilling is Survival

Upskilling is no longer a “nice to have” for leaders. It's " SURVIVAL " The unpleasant reality? The moment they begin managing, most leaders stop learning. While the world moves more quickly than their perspective, they rely on prior experiences. Technology evolves. Teams evolve. Expectations change throughout time. You become the bottleneck if you don't. Today, being a leader isn't about knowing everything. It's about remaining current enough to pose pertinent queries. The most effective leaders I've encountered: Acquire knowledge more quickly than their teams Continue to be involved in change Invest in your abilities before they become essential. If you’re not actively upskilling, you’re not leading you’re just holding position. And in today’s market, that’s a risk you can’t afford.

Compile OpenSSH 9

Install  yum install rpm-build zlib-devel openssl-devel pam-devel libselinux-devel gcc perl-devel libXt-devel gtk2-devel make -y wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.3p2.tar.gz ./configure --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/home/saz163user/ssh ./configure make make install

Audiobooks and its Benefits

 What is Audiobook? An audiobook is a recorded reading of a book or other written work, typically on a CD or as a digital download. Audiobooks can be listened to on a variety of devices, such as smartphones, tablets, and laptops, and are often narrated by professional voice actors. They can be a convenient and accessible way to enjoy literature, and have been shown to improve vocabulary and comprehension, especially in children. Audiobooks can be a great option for people who have difficulty reading traditional print books, or who want to make the most of their time by multitasking while listening to a book. There are several benefits to listening to an audiobook summary:     Time-saving: Audiobook summaries are typically shorter than the original audiobook, allowing you to get a general understanding of the book's content in less time.     Convenience: Many audiobook summary services offer summaries in a variety of formats, such as audio or written, m...