Modified: 08/24/2011
Check the http://www.kernel.org/ website for the correct URL of the tarballs.
1.[root]# mkdir /usr/builds/src/
2.[root]# cd /usr/builds/src/
3.[root]# yum install wget
4.[root]# wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.3.tar.bz2
5.[root]# tar xvjf linux-3.0.3.tar.bz2
6.[root]# ln -sfn /usr/builds/src/linux-3.0.3 /usr/src/kernels/linux
7.[root]# cd /usr/src/kernels/linux
8.[root]# wget http://www.kernel.org/pub/linux/kernel/v3.0/patch-3.0.3.bz2
9.[root]# bzip2 -dc patch-3.0.3.bz2 | patch -p1 -R
10.[root]# yum install kernel-devel kernel-headers gcc ncurses-devel
Note: Necessary only if previously not installed
11.[root]# make mrproper
Note: If there is no /boot/config-$(uname -r), perform a manual copy first.
12.[root]# cp /boot/config-2.6.35.11-83.fc14.i686 /boot/config-$(uname -r)
13.[root]# cp /boot/config-$(uname -r) ./.config
14.[root]# make menuconfig
(a) Load Alternative Configuration File
(b) .config
(c) Exit
(d) Yes
15.[root]# make clean
16.[root]# make all
17.[root]# make modules_install
18.[root]# make install
after the build, when you run uname -a, it shows Linux localhost.localdomain 2.6.39 #1 SMP Thu Aug 4 22:39:50 EDT 2011 i686 i686 i386 GNU/Linux
ReplyDeleteafter the build, when you run uname -a, it shows Linux localhost.localdomain 3.0.0 #1 SMP Tue Aug 23 21:13:49 EDT 2011 i686 i686 i386 GNU/Linux
ReplyDelete