LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel installing (https://www.linuxquestions.org/questions/linux-software-2/kernel-installing-126855/)

Q-collective 12-18-2003 02:33 AM

Kernel installing
 
Ok, I want to install the kernel (version 2.4.23) and downloaded the linux-2.4.23.tar.bz2 to do so.
However, how do you compile the kernel anyway? The online kernel howto is offline for a long time now and I want to upgrade to fix the security issue that I now have (I'm now in kernel 2.4.22).
My guess is to compile in the ordinary way:
1. ./configure
2. make
3. make install

Is this the right way?
Thank you!

rootboy 12-18-2003 03:36 AM

You should be afraid, very afraid.

Read the kernel HowTo for starters,

http://www.icewalkers.com/Linux/Howto/Kernel-HOWTO.html


For the impatient (from the doc itself):

1) Unpack the sources
2) Optional - You can copy the .config file from your old linux kernel source tree to new kernel tree (may save time, if you want to reuse the old settings).
3) make clean; make mrproper
4) make xconfig
5) make dep
6) make
7) make bzImage
8) make modules
9) make modules_install
10) make install
11) configure LILO or GRUB.
12) Optional - make clean (If you want to free up disk space)

Make a boot disk before doing any of this and be sure that it works. There are no end of the number of things that can go wrong here and you will surely experience at least one of them.

FYI: The 2.6 kernel is out, if you are going to wreck your system anyway, why not go for the latest-n-greatest? :)


John

timdsmith 12-18-2003 09:21 AM

Another FYI. If you want to use your old .config file, you'll want to copy it to your new source tree AFTER doing make mrproper. Because make mrproper wipes it out.

rootboy 12-24-2003 02:41 AM

Quote:

Originally posted by timdsmith
Another FYI. If you want to use your old .config file, you'll want to copy it to your new source tree AFTER doing make mrproper. Because make mrproper wipes it out.
I think for 2.6 they warned you not to do this (usually you can).


John


All times are GMT -5. The time now is 08:09 PM.