The necessary packages
NOTE: It is better to install the software described above all together if you don’t want to receive error dependencies message during RPM install. If you have followed all the steps in Chapter 2, “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
• The RPM command to verify that a package is or is not installed on your system is:
[root@deep /]# rpm -q foo
Once again, after installation and compilation of all programs that you need on your server, it’s 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 some evil people 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, surprise! RPM commands are not available either. Of course, in the 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/fdO /mnt/floppy/
[root@deep /]# mv /bin/rpm /mnt/floppy [root@deep /]# umount /mnt/floppy/
• To put the RPM binary to its original directory, use the command:
[root@deep /]# mount /dev/fdO /mnt/floppy/
[root@deep /]# cp /mnt/floppy/rpm /bin/ [root@deep /]# umount /mnt/floppy/
NOTE: 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.
Страниц: 1 2