Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
RegisterLogin
Webune Forums » Linux Hosting » Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
Post Description: Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
Tags: Shell, Command, To, Find, What, Linux, Kernel, Version, Have, Installed, In, Unix, Box
This Post Was Posted On Feb 29, 2008 By pinguin #813
Post Description: Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
Tags: Shell, Command, To, Find, What, Linux, Kernel, Version, Have, Installed, In, Unix, Box
This Post Was Posted On Feb 29, 2008 By pinguin #813
Shell Command To Find What Linux Kernel Version Have Installed In Unix Box by pinguin
note, this worked for me, i have fedora core on my server, which i think will also work on red had, centos, but not sure if it will work on other distributions like suse, mandrake or Debian.
Code:
rpm -qa | grep 'kernel'
here are some others, but the one above worked great for me
Code:
$ rpm -q kernel kernel-headers kernel-ibcs kernel-pcmcia-cs kernel-source
kernel-2.0.36-0.7
kernel-headers-2.0.36-0.7
kernel-ibcs-2.0.36-0.7
kernel-pcmcia-cs-2.0.36-0.7
kernel-source-2.0.36-0.7
$ rpm -q mkinitrd SysVinit initscripts
mkinitrd-1.8-3
SysVinit-2.74-5
initscripts-3.78-1
kernel-2.0.36-0.7
kernel-headers-2.0.36-0.7
kernel-ibcs-2.0.36-0.7
kernel-pcmcia-cs-2.0.36-0.7
kernel-source-2.0.36-0.7
$ rpm -q mkinitrd SysVinit initscripts
mkinitrd-1.8-3
SysVinit-2.74-5
initscripts-3.78-1
If you have Red Hat Linux 4.2 on your machine, you will need to change the query slightly to reflect name changes in packages that occurred in the Red Hat Linux 5.x series of releases.
Code:
$ rpm -q kernel kernel-headers kernel-source iBCS pcmcia-cs
kernel-2.0.35-0
kernel-headers-2.0.35-0
kernel-modules-2.0.35-0
kernel-source-2.0.35-0
iBCS-2.0-8
pcmcia-cs-2.9.12-0
$ rpm -q mkinitrd SysVinit initscripts
mkinitrd-1.7-1
initscripts-2.96-1
SysVinit-2.64-8
kernel-2.0.35-0
kernel-headers-2.0.35-0
kernel-modules-2.0.35-0
kernel-source-2.0.35-0
iBCS-2.0-8
pcmcia-cs-2.9.12-0
$ rpm -q mkinitrd SysVinit initscripts
mkinitrd-1.7-1
initscripts-2.96-1
SysVinit-2.64-8
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
sushil
#1030 1
hi,this sushil iwant to know how the shell and kernel works in unix operating system
Jan 30, 2008 Reply Report abuse
Deepak
#1029 2
how to find that which os in installed in our pc?
Jan 15, 2008 Reply Report abuse
Madhusudan Sahoo
#1028 3
Give me all commands in UNIX
Feb 26, 2007 Reply Report abuse
lin
#1027 4
this is a great way to how to find what kernel i have thanks
Feb 10, 2007 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Fri Dec 23, 2011 8:38 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3