Installation of software in Linux

xiaoxiao2021-03-06  71

1. Install gzip -d apache_1.3.20.tar.gz (unzip) TAR XVF APACHE_1.20.20.20.20./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.rpmfoo ############### a. Package has been installed # rpm - IVH foo-1.0-1.i386.rpmfoo package foo-1.0-1 is already installederror: foo-1.0-1.i386.rpm cannot be installed If you still have to install the package, you can use on the command line - The ReplacePkgs option, which will ignore the error message. B. File Conflict If a file is installed in the package to be installed, there is a file that is installed when installing other packages, the following error message will appear: # rpm -ivh foo-1.0-1.i386.rpmfoo / usr / bin / foo conflicts with File from bar-1.0-1 error: foo-1.0-1.i386.rpm cannot be installed To let RPM ignore the error message, use the --ReplaceFiles command line option C. Unresolved RPM package may depend on other The package is installed after a specific package is installed. # rpm -ivh bar-1.0-1.i386.rpmfailed dendencies: foo is needed by bar-1.0-1 You must install the depends on the software 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 fooremoving the package: 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.rpmfoo ##################### When the old version of the package is upgraded to upgrade the new version of the software, the following error message will produce: # rpm -uvh foo-1.0-1.i386.rpmfoo package foo-2.0-1 (Which is newer) is already installederror: 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 foofoo-2.0-1 package Specify options: -a query all installed packages. -F Package containing file - P query Package file named package information selection options: -i Displays package information, such as description, issue number, size, build date, installation date, platform, and other types of information. -l Displays a list of files in the package.