Get to the source directory:
cd /usr/src
If your source tarball ends in ".tar.gz" or ".tgz":
tar xvzf /path/to/kernel/source.tar.gz
If your source tarball ends in ".bz2":
tar xvjf /path/to/kernel/source.bz2
Of course, replace /path/to/kernel/source.* with the real path on your system
When the tarball unpacks, you'll see it creates a new directory, probably linux-2.4.20. You can symlink it to make /usr/src/linux point to the same directory with:
ln -s linux-2.4.20 linux
If your kernel source is in RPM format, then you'll need to unpack it (man rpm) and adjust the symlink command to wherever it places the source when installed (probably the same place, but I can't guarantee that).
|