|Securing and Optimizing Linux: RedHat Edition -A Hands on Guide|
|Prev||Chapter 13. Linux -The Compiler functionality||Next|
The following are the necessary packages needed to be able to compile the other software programs on your system after recompilation of your kernel. This software is on your Red Hat Linux 6.1 or 6.2 Part 1 CD-ROM under RedHat/RPMS directory if they are not already installed.
[root@deep] /#mount /dev/cdrom /mnt/cdrom/ [root@deep] /#cd /mnt/cdrom/RedHat/RPMS/
: It is better to install the software described above all together if you don't want to receive dependency error messages during RPM install. If you have followed all the steps in Installation of your Linux Server, then all of these packages are already installed on your system and you don't need to reinstall them again.
The RPM command to install a RPM package on your system is:
[root@deep] /#rpm -Uvh foo-1.0-2.i386.rpm
[root@deep] /#rpm -q foo
Once again, after installation and compilation of all programs that you need on your server, its important to uninstall all sharp objects compilers, etc. describe above. This will protect your system from unauthorized users trying to compile programs on your server without authorization.
Another thing to do is to move the rpm binary program to a safe place like a floppy disk for the same reasons listed above. Imagine somebody with dark intentions trying to compile programs on your server and realizing that compilers are not available. They will switch to import programs RPM on the server and install it with the RPM commands. Whoops, Heh! Heh! surprised! RPM commands are not available either.
Of course, in future if you need to install new software on your server, all you have to do is to replace it from the floppy disk. To move the RPM binary in the floppy disk, use the command:
[root@deep] /#mount /dev/fd0 /mnt/floppy/ [root@deep] /#mv /bin/rpm /mnt/floppy [root@deep] /#umount /mnt/floppy/
[root@deep] /#mount /dev/fd0 /mnt/floppy/ [root@deep] /#cp /mnt/floppy/rpm /bin/ [root@deep] /#umount /mnt/floppy/
Never uninstall the RPM program completely from your system or you will be unable to reinstall it again later since to install RPM or other software you need to have RPM commands available.