How to list the installed kernel version?
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
Issue
- How to list the installed kernel version?
Resolution
To List the installed kernel use the following command:
# rpm -q kernel kernel-core kernel-modules
Example output:
# rpm -q kernel kernel-core kernel-modules
kernel-5.14.0-427.13.1.el9_4.x86_64
kernel-5.14.0-427.16.1.el9_4.x86_64
kernel-core-5.14.0-427.13.1.el9_4.x86_64
kernel-core-5.14.0-427.16.1.el9_4.x86_64
kernel-modules-5.14.0-427.13.1.el9_4.x86_64
kernel-modules-5.14.0-427.16.1.el9_4.x86_64
In the above example, both kernel 5.14.0-427.13.1.el9_4 and kernel 5.14.0-427.16.1.el9_4 are installed.
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.