First you need to install module-init-tools. There should be a slack package available.
Then you need to download the source and untar it. The usual convention is to place the source in /usr/src/ and make a symlink /usr/src/linux to the source code directory. On my system /usr/src looks like this:
Code:
slougi@Gondolin slougi $ ls -l /usr/src/
total 7
lrwxrwxrwx 1 root root 11 Mar 15 18:44 linux -> linux-2.6.4
drwxr-xr-x 16 root root 808 Mar 11 13:57 linux-2.4.22-gentoo-r7
drwxr-xr-x 16 root root 624 Mar 22 05:13 linux-2.4.26_pre5-gentoo
drwxr-xr-x 16 root root 624 Mar 30 13:23 linux-2.4.26_pre6-gentoo
drwxr-xr-x 19 root root 784 Mar 19 22:08 linux-2.6.4
drwxr-xr-x 19 root root 776 Mar 8 17:11 linux-2.6.4-rc2
drwxr-xr-x 18 root root 632 Mar 22 05:26 linux-2.6.5-rc2
I know I really need to clean up there
Next the source code must be configured. if you have a /proc/config file just copy that to /usr/src/linux/.config, if you hav /proc/config.gz do zcat /proc/config.gz > /usr/src/linux/.config.
Then enter the source dir and do make oldconfig, followed by make.
Alternatively if you cannot get the config this way, do a make menuconfig in the source dir and configure it manually, then save the config and make.
Next you must copy the appropriate files to /boot/ and configure the boot loader. Usually this means copying the bzImage or vmlinux file, and maybe the map file, and editing grub.conf in case of grub and lilo.conf in case of lilo.
As you can see updating the kernel is not the easiest thing to do
