Securing and Optimizing Linux:RedHat Edition | All about OS

Configuring and Building a secure, optimized Kernels

Категория: Securing and Optimizing

Stepi
We must copy the archive file of the Kernel to the 7usr/src” directory and move to this directory.
[root@deep /]# cp linux-version_tar.gz /usr/src/
[root@deep /]# cd /usr/src/
If you already have installed a Linux kernel with a tar archive before
These steps are required only if you already have installed a Linux kernel with a tar archive before. If it is a first, fresh install of Linux kernel, then instead uninstall the kernel-headers-version. i386.rpm, kernel-version.i386.rpm package that are on your system.
• Remove the Linux symbolic link with the following command:
[root@deep src]# rm -rf linux
• Remove the Linux kernel headers directory with the following command:
[root@deep src]# rm -rf linux-2.2.xx
• Remove the Linux kernel modules directory with the following command: [root@deep src]# rm -rf /lib/modules/2.2.xx
NOTE: Removing the old kernel modules is required only if you have installed a modularized kernel version before. If the modules directory doesn’t exist under the “/lib” directory” it’s because your old kernel version is not a modularized kernel.
If the original kernel’s RPM packages are installed on your system
If the original kernels RPM package are installed on your system instead of the Linux kernel tar archive, because you have just finished installing your new Linux system, or have used an RPM package before to upgrade your Linux system, then use the following command to uninstall the Linux kernel:
• You can verify that a kernel RPM package is installed on your system with the following
command:
[root@deep src]# rpm -qa | grep kernel
kernel-headers-2.2.xx.i386.rpm
kernel-2.2.xx.i386.rpm

Страниц: 1 2 3 4 5

« Tuning IDE Hard Disk Performance
Securing the kernel »