![]() ![]() The yum and dnf commands are used to install packages in RPM-based distributions like CentOS, RHEL, and Fedora. ![]() $ apt-get show linux-generic Check/Display Linux Kernel Version with yum or dnf Command This package will always depend on the latest complete generic Linux kernelĪlternatively, the “ apt-get show linux-generic” command can be used which will produce the same output. Provides: kernel-testing-linux-full-generic, kernel-testing-linux-full-preferredĭepends: linux-image-generic (= 5.8.0.29.34), linux-headers-generic (= 5.8.0.29.34)ĪPT-Sources: groovy-updates/main amd64 Packagesĭescription: Complete Generic Linux kernel and headers We will use the grep tool in order to match the line which contains the term “Kernel” where also the version information is provided. While printing the message buffer of the Linux kernel also the kernel information is provided. The dmesg command is used to print system logs and message buffer of the Linux kernel in the command-line interface. Linux version 5.8.0-29-generic (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #31-Ubuntu SMP Fri Nov 6 12:37: Check/Display Linux Kernel Version with dmesg Command The output is like below where the 5.8.0.29 is the kernel version. We will use the cat command in order to print the contents of the /proc/version file which will provide detailed Kernel version information. The Linux kernel version is also provided via the /proc/version file. Linux is a file-based operating system where information, monitoring, and configuration are generally done via special files. Machine ID: 295c2cf105a140e5ab505a9e74ff560eīoot ID: 9a37d5dd34e1444d9c6b76bd983c778fįrom the output, we see that the hostnamectl command provides kernel version, major revision, minor revision, and patch number.Ĭheck/Display Linux Kernel Version from /proc/version File The output of the hostnamectl is like below where the “ Kernel: Linux 5.8.0-29-generic” line provides kernel version information which is the same as the “uname -r” command. The kernel version will be listed in the like Kernel: like below. ![]() The hostnamectl is a new command which provides very useful information about the current operating system, distribution, and kernel. uname -a Check/Display Linux Kernel Version with hostnamectl Command If you are working with the FreeBSD you can use the -a option with the uname command. 29 is the path or update level which is generally added by the distribution creators.We can see that our kernel is very near to the latest kernel manor release version. We can see that our kernel is the latest with the main kernel version The output will be like below which is the only kernel version major and minor numbers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |