Kernel Version
Get the version of the kernal
cat /proc/version
OR
uname -r
Get the version of the kernal
cat /proc/version
OR
uname -r
Show version of the kernel
cat /proc/version
This command shows the kernel modules that are currently loaded.
# lsmod
Module Size Used by
vboxdrv 55088 0
autofs4 20421 2
ipt_MASQUERADE 6721 1
iptable_nat 9669 1
nf_nat 18669 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 11717 2 iptable_nat
nf_conntrack 51977 4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
....
The final numbers(2.6.20.6) is the version of you kernel. You can get this using uname -r
(for the current kernel)
rm -rf /lib/modules/2.6.20.6 rm /boot/System.map-2.6.20.6 rm /boot/vmlinuz-2.6.20.6 rm /boot/initrd-2.6.20.6.img rm /boot/config-2.6.20.6
Get the latest Kernel from kernel.org
Get a default .config file
cp /boot/config-`uname -r` ./.config
OR
make defconfig
Then configure the kernel - the hardest part 🙁
make xconfig
Compile/Install it
make make modules_install make install
[tags]kernel,linux,command,compile,configure,xconfig[/tags]