Table of Contents
Check All Installed Linux Kernels
1. Check Installed Kernels in Alpine Linux
2. List Installed Kernels in Arch Linux
3. Find Installed Linux Kernels in Debian, Ubuntu, Linux Mint, Pop!_OS
4. View installed Kernels in Fedora, CentOS, RHEL, AlmaLinux, Rocky Linux
5. List All Installed Linux Kernels in openSUSE
Bonus tip - View only Current Kernel Details
Conclusion
Home System Tutorial LINUX How To List Or Check All Installed Linux Kernels From Commandline

How To List Or Check All Installed Linux Kernels From Commandline

Mar 23, 2025 am 10:43 AM

Linux Kernel is the core component of a GNU/Linux operating system. Developed by Linus Torvalds in 1991, it is a free, open-source, monolithic, modular, and multitasking Unix-like kernel. In Linux, it is possible to install multiple kernels on a single system. Have you ever wondered how many Linux kernels are installed on your Linux box? In this tutorial, we will explore how to check and view all installed Linux kernels, including their versions, from the command line in different Linux operating systems.

Table of Contents

Check All Installed Linux Kernels

The method to identify all installed Linux kernel details in your system may vary depending on the Linux distribution you use. However, one of the easiest and quickest ways to accomplish this is by using the find command.

In most Linux distributions, the installed Linux kernels and their associated files are typically stored in the /boot directory. To view the list of installed kernels, you can simply examine the contents of this directory using the find command:

$ find /boot/vmli*
Copy after login

Sample Output from my Ubuntu 22.04 LTS desktop:

/boot/vmlinuz
/boot/vmlinuz-5.19.0-42-generic
/boot/vmlinuz-5.19.0-45-generic
/boot/vmlinuz.old
Copy after login

You can also use the following command to list all installed Linux Kernels:

$ sudo find /boot -name "vmlinuz*"
Copy after login

The output will display a list of installed kernel files. Each file corresponds to a specific kernel version. Note that the prefix "vmlinuz" is commonly used for kernel filenames.

How To List Or Check All Installed Linux Kernels From Commandline

As you see in the above output, there are two Linux Kernels versions (5.19.0-42 and 5.19.0-45) are installed in my Ubuntu desktop machine.

To view the kernel version associated with each file, you can use the following command:

$ sudo find /boot -name "vmlinuz*" -exec file {} \;
Copy after login

Sample Output:

/boot/vmlinuz: symbolic link to vmlinuz-5.19.0-45-generic
/boot/vmlinuz.old: symbolic link to vmlinuz-5.19.0-42-generic
/boot/vmlinuz-5.19.0-42-generic: Linux kernel x86 boot executable bzImage, version 5.19.0-42-generic (buildd@lcy02-amd64-074) #43~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 21 16:51:08 UTC 2, RO-rootFS, swap_dev 0XB, Normal VGA
/boot/vmlinuz-5.19.0-45-generic: Linux kernel x86 boot executable bzImage, version 5.19.0-45-generic (buildd@lcy02-amd64-117) #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20, RO-rootFS, swap_dev 0XB, Normal VGA
Copy after login

Now we will see distribution-specific methods to find out installed Linux kernel details. First, let us start from Alpine Linux.

1. Check Installed Kernels in Alpine Linux

To obtain a list of all installed kernels along with their versions, you can use the following apk command in Alpine Linux:

$ apk info -vv | grep linux
Copy after login

Sample Output:

libblkid-2.32-r0 - Block device identification library from util-linux
<strong>linux-virt-4.14.167-r0 - Linux vanilla kernel</strong>
syslinux-6.04_pre1-r1 - Boot loader for the Linux operating system
Copy after login

How To List Or Check All Installed Linux Kernels From Commandline

2. List Installed Kernels in Arch Linux

To view all installed in Arch Linux and its variants like EndeavourOS and Manjaro Linux, run the following pacman command:

$ pacman -Q linux
Copy after login

Sample Output:

linux 5.9.14.arch1-1
Copy after login

You can also combine pacman and grep commands to list installed Kernel versions:

$ pacman -Q | grep linux
Copy after login

Sample Output:

archlinux-keyring 20201210-1
<strong>linux 5.9.14.arch1-1</strong>
linux-api-headers 5.8-1
util-linux 2.36.1-4
util-linux-libs 2.36.1-4
Copy after login

How To List Or Check All Installed Linux Kernels From Commandline

As you can see, I have only one Linux Kernel in my Arch Linux system and its version is 5.9.14.

3. Find Installed Linux Kernels in Debian, Ubuntu, Linux Mint, Pop!_OS

In Debian and other Debian-based systems like Ubuntu, Pop!_OS, Linux Mint, we can find the list of all installed Kernels using dpkg command:

$ dpkg --list | grep linux-image
Copy after login

Sample Output:

ii  linux-image-5.19.0-42-generic              5.19.0-42.43~22.04.1                    amd64        Signed kernel image generic
ii  linux-image-5.19.0-45-generic              5.19.0-45.46~22.04.1                    amd64        Signed kernel image generic
ii  linux-image-generic-hwe-22.04              5.19.0.45.46~22.04.20                   amd64        Generic Linux kernel image
Copy after login

How To List Or Check All Installed Linux Kernels From Commandline

4. View installed Kernels in Fedora, CentOS, RHEL, AlmaLinux, Rocky Linux

To view all installed kernels in RPM-based systems like Fedora, CentOS, RHEL, and RHEL-clones such as AlmaLinux, you can use the rpm command as shown below:

$ rpm -qa kernel
Copy after login

Or,

$ rpm -qa | grep -i kernel
Copy after login
Copy after login

Sample Output from Fedora 33:

kernel-core-5.8.15-301.fc33.x86_64
Copy after login

How To List Or Check All Installed Linux Kernels From Commandline

Sample Output from AlmaLinux 8.3:

How To List Or Check All Installed Linux Kernels From Commandline

5. List All Installed Linux Kernels in openSUSE

The command to list all installed Linux kernels in openSUSE, being an RPM-based system like Fedora and RHEL distributions, is the same:

$ rpm -qa | grep -i kernel
Copy after login
Copy after login

Bonus tip - View only Current Kernel Details

To view the currently running Kernel, you can use one of the following commands:

$ uname -r
5.4.0-65-generic
Copy after login

Or,

$ uname -rs
Linux 5.4.0-65-generic
Copy after login

Or,

$ uname -mrs
Linux 5.4.0-65-generic x86_64
Copy after login

Now, you know the list of installed Kernels on your Linux system. How would you find when a specific Linux Kernel version is last booted? That's easy! Refer the following guide to check when a Linux kernel last used or booted on.

  • Find When A Specific Linux Kernel Version Is Last Booted

Conclusion

In this guide, we have explored various methods to retrieve the list of installed kernels on different Linux distributions. Checking the installed Linux kernels on your system is essential for managing and maintaining a stable and up-to-date operating environment.

By being aware of the installed kernels and their versions, you can ensure that your system is up-to-date with the latest security patches and performance improvements.

Related Read:

  • How To Remove Old Unused Linux Kernels
  • Display Linux Kernel Module Information With Modinfo Command
  • Find out the Linux distribution name, version and Kernel details
  • How To Find Linux System Details Using inxi
  • Neofetch – Display Linux system Information In Terminal
  • Find Linux System Details Using Python
  • How To Find Hardware And Software Specifications In Ubuntu

The above is the detailed content of How To List Or Check All Installed Linux Kernels From Commandline. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Mastering Text Manipulation With the Sed Command Mastering Text Manipulation With the Sed Command Mar 16, 2025 am 09:48 AM

The Linux command line interface provides a wealth of text processing tools, one of the most powerful tools is the sed command. sed is the abbreviation of Stream EDitor, a multi-functional tool that allows complex processing of text files and streams. What is Sed? sed is a non-interactive text editor that operates on pipeline inputs or text files. By providing directives, you can let it modify and process text in a file or stream. The most common use cases of sed include selecting text, replacing text, modifying original files, adding lines to text, or removing lines from text. It can be used from the command line in Bash and other command line shells. Sed command syntax sed

How To Count Files And Directories In Linux: A Beginner's Guide How To Count Files And Directories In Linux: A Beginner's Guide Mar 19, 2025 am 10:48 AM

Efficiently Counting Files and Folders in Linux: A Comprehensive Guide Knowing how to quickly count files and directories in Linux is crucial for system administrators and anyone managing large datasets. This guide demonstrates using simple command-l

How To Add A User To Multiple Groups In Linux How To Add A User To Multiple Groups In Linux Mar 18, 2025 am 11:44 AM

Efficiently managing user accounts and group memberships is crucial for Linux/Unix system administration. This ensures proper resource and data access control. This tutorial details how to add a user to multiple groups in Linux and Unix systems. We

How To List Or Check All Installed Linux Kernels From Commandline How To List Or Check All Installed Linux Kernels From Commandline Mar 23, 2025 am 10:43 AM

Linux Kernel is the core component of a GNU/Linux operating system. Developed by Linus Torvalds in 1991, it is a free, open-source, monolithic, modular, and multitasking Unix-like kernel. In Linux, it is possible to install multiple kernels on a sing

How To Type Indian Rupee Symbol In Ubuntu Linux How To Type Indian Rupee Symbol In Ubuntu Linux Mar 22, 2025 am 10:39 AM

This brief guide explains how to type Indian Rupee symbol in Linux operating systems. The other day, I wanted to type "Indian Rupee Symbol (₹)" in a word document. My keyboard has a rupee symbol on it, but I don't know how to type it. After

Linux Kernel 6.14 RC6 Released Linux Kernel 6.14 RC6 Released Mar 24, 2025 am 10:21 AM

Linus Torvalds has released Linux Kernel 6.14 Release Candidate 6 (RC6), reporting no significant issues and keeping the release on track. The most notable change in this update addresses an AMD microcode signing issue, while the rest of the updates

What is the Linux best used for? What is the Linux best used for? Apr 03, 2025 am 12:11 AM

Linux is best used as server management, embedded systems and desktop environments. 1) In server management, Linux is used to host websites, databases, and applications, providing stability and reliability. 2) In embedded systems, Linux is widely used in smart home and automotive electronic systems because of its flexibility and stability. 3) In the desktop environment, Linux provides rich applications and efficient performance.

The 8 Best SSH Clients for Linux The 8 Best SSH Clients for Linux Mar 15, 2025 am 11:06 AM

Recommended 8 best SSH clients for Linux system SSH (Secure Shell Protocol) is an encrypted network protocol used to securely run network services on an unsecure network. It is an important part of modern server management and provides secure remote access to the system. SSH clients (applications that utilize the SSH protocol) are an indispensable tool for system administrators, developers and IT professionals. Remote server management is common in the Linux world, and choosing the right SSH client is crucial. This article will discuss 8 best SSH clients for Linux. Selection criteria When choosing the best SSH client for Linux, the following factors must be considered: Performance: Speed ​​and efficiency of SSH clients

See all articles