1. Install the source code package Gzip -d apache_1.3.20.tar.gz (decompressed) TAR XVF APACHE_1.3.20.TAR (Unpack) CD Apache_1.3.20 ./configure (configured) ----./configure - Help Make Install Note: Typical source package can be installed like this, but not all like this, if webmin is going to execute ./setup.sh enters Interactive Configuration Installation Uninstalling Uninstall Program If you don't clearly see an example of the README file 2, the RPM package to install the RPM package: foo-1.0-1.i386.rpm includes the name of the package ( Foo), version number (1.0), issue number (1), and hardware platform (i386). (1) Install # rpm -ivh foo-1.0-1.i386.rpm foo ############### A. Package has been installed # rpm -IVH foo-1.0-1.i386.rpm foo package foo-1.0-1 is already installed error: foo-1.0-1.i386.rpm cannot be installed If you still have to install the package, you can be on the command line This will ignore this error message using the - ReplacePkgs option. B. File Conflict If there is a file to be installed if you want to install other packages installed, the following error message will appear: # rpm -ivh foo-1.0-1.i386.rpm foo / usr / bin / foo conflicts With file from bar-1.0-1 error: foo-1.0-1.i386.rpm cannot be installed To allow rpm to ignore this error message, use -ReplaceFiles command line option C. Unresolved RPM package may depend on In other packages, the package can be installed after installing a specific package. # rpm -ivh bar-1.0-1.i386.rpm failed Dependencies: foo is needed by bar-1.0-1 You must install the depends on the package to solve this problem. If you want to force installation (however, this installed package does not necessarily function properly), please use the -NodePs command line option. (2) Uninstall # rpm -e foo Note: Use the package of the package "Foo-1.0-1.i386.rpm," foo-1.0-1.i386.rpm "here," Foo-1.0-1.i386.rpm ", if other packages depends on the package you want to uninstalled , Error messages are generated when uninstalling. Such as: # rpm -e foo removing the packages: foo is needed by bar-1.0-1 To ignore the error message Continue to uninstall (however, the program depends on the package may not be able to run), please use -Nodeps command line option.
(3) Upgrade # rpm -uvh foo-2.0-1.i386.rpm foo ######################### When using the old version of the software package to upgrade the new version of the software, the following error message produces: # rpm -uvh foo-1.0-1.i386.rpm foo package foo-2.0-1 (Which is newer) is Already Installed Error: Foo-1.0-1.i386.rpm cannot be installed To enable RPM to insist on "Upgrade", you can use the --oldpackage command line parameters. (4) Query # rpm -q foo-2.0-1 package Specify options: -a query all installed packages. -F