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

Kerberos Authentication Protocol

  Kerberos Authentication Protocols is a network authentication protocol that provides secure communication over an insecure network by using secret-key cryptography. It was originally developed at MIT and is now widely used in many different organizations, including Microsoft Windows. Kerberos authentication works by using a third-party authentication server to verify the identities of users and services. When a user requests access to a resource, such as a file server, the user's computer sends a request to the Kerberos authentication server. The authentication server verifies the user's identity and issues a ticket-granting ticket (TGT) that the user can use to request access to other resources on the network. The user then presents the TGT to a ticket-granting server (TGS), which issues a service ticket for the requested resource. The user presents this service ticket to the resource server, which grants access if the ticket is valid. Kerberos authentication is widely used ...

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.

Extend the BTRFS volume on Azure

To extend a BTRFS volume on Azure, you'll need to follow these steps: 1. Identify the name of the BTRFS volume that you want to extend. You can do this by running the following command: sudo btrfs filesystem show This will show you a list of all the BTRFS volumes on your system, along with their names and sizes. 2. Stop any services or applications that are using the BTRFS volume that you want to extend. 3. Use the Azure portal or Azure CLI to extend the size of the Azure disk that the BTRFS volume is on. This will increase the available space on the disk, but not yet on the BTRFS volume itself. 4. Use the following command to resize the BTRFS volume to use the new space: sudo btrfs filesystem resize max /path/to/mount/point Replace "/path/to/mount/point" with the actual path to the mount point of the BTRFS volume that you want to extend. 5. Verify that the BTRFS volume has been extended by running the following command: sudo btrfs filesystem show This should show that th...