Jump to content

The Linux Kernel/Updating

75% developed
From Wikibooks, open books for an open world


The most of Linux system distributions update the kernel automatically to recommended and tested release. If you want to research your own copy of sources, compile it and run you can do it manually.

Here is short and fast starting instruction:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git 
cd linux
cp /boot/config-$(uname -r) .config  # reuse current working config
make olddefconfig # configure using current config and default options
make localyesconfig # update current config converting local mods to core
make
sudo make install


Other make targets for configuration

  • menuconfig
    • requires libncurses5-dev
  • gconfig
    • requires libglade2-dev
  • xconfig
    • requires libqt4-dev


📚 References:

Installing the kernel from sources, admin guide doc
Kernel Build System doc
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel


💾 Historical: