This page describes how to install the latest Linux version 2.4 kernel on Redhat 7.1. In particular, it describes how to compile the official kernel sources with Redhat's default configuration.
It can be quite tricky for a typical Linux user to configure the official linux kernel source from www.kernel.org to work with Redhat. For example, I once compiled a kernel that didn't work with my sound card. The best way to avoid such headaches is to get the kernel source config file from the Redhat source RPM, and to use this config with the official kernel source from kernel.org. The following instructions outline how this can be done. I suggest using this guide as a supplement to the usual documentation, not as a replacement.
$ uname -r
$ tar xzf linux-2.4.3.tar.gz
$ tar xzf configs.tar.gz
$ make mrproper
$ cp configs/kernel-2.4.2-i586.config linux-2.4.3/.config
$ make oldconfig
$ make xconfig
$ cp .config ~/backup-kernel-config
$ make dep $ make bzImage $ make modules
# cp ~user/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.3
# make modules_install
image=/boot/vmlinuz-2.4.3 label=linux-2.4.3 read-only root=/dev/hdc2
$ make bzdisk
Now you can reboot your system and choose the new kernel at the lilo prompt. If everything works, you can run "make mrproper" in the source directory or delete it entirely to make space. Delete the old kernel if you're absolutely certain you won't be needing it, updating /etc/lilo.conf as appropriate.