Clone Linus' tree
git clone --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Get current running kernel configuration.
zcat /proc/config.gz > $KERNEL_TREE/.config
Build and install the kernel as applicable for your distribution.
- build kernel
- build modules
- install kernel
- install modules
Pro Tip: Do not get bogged down configuring the kernel at this stage, for guaranteed build use a running config as the basis. For quicker build use make localmodconfig.
Configure boot loader and boot new kernel.