[quote author=GhostDawg link=board=2;threadid=6285;start=0#59326 date=1044436743]
I'm using Debian 3.0r0 with default kernel 2.4.18-bf24. Now I would like to recompile it using the 2.4.20 kernel the 'Debian Way'.
What does it exactly mean when it starts off with 'apt-get install kernel-image' and 'apt-get install kernel-package'?
What if I already downloaded the 2.4.20 stock kernel already?
Last time I did this I manually compiled the kernel and it worked without problems, this time I would like to try the Deb way.
[/quote]
If you want to compile a kernel yourself then you don't want to do apt-get install kernel-image-<version> cause that would fetch a precompiled kernel image and install it.
The debian way of compiling a kernel goes like this: You grab the stock kernel (or apt-get install a kernel source package),
apt-get install kernel-package
(this is just a helper tool that wraps the compilation process and the building of a deb package). Then you unpack the source and configure it as you'd usually do (make menuconfig or whatever you prefer) and run
make-kpkg --revision <revision_number> kernel-image,
in the dir where the kernel source is. revision_number is the minor version string that will be appended to the name of the debian package that's being built. I usually use somthing like custom.X. This command will compile the kernel and the modules and produce a debian package in /usr/src named kernel-image-<version>_<revision_number>_<arch&g t;.deb which you can then install using
dpkg -i kernel-image-<version>_<revision_number>_<arch&g t;.deb
This will take care of the rest. It even runs /sbin/lilo for you if you want, though you should double check lilo.conf before you just say yes to every quetion it asks. Don't know how it handles grub as I don't use that....


Reply With Quote

Bookmarks