There are two different forms of software installation under Linux. The first installation file name is xxx.tar.gz; another installation file name is xxx.i386.rpm. Software issued in the first way is mostly published in the form of source code, and the second is directly published in binary form.
The first method of installation is as follows:
1. First, copy the installation files to your directory.
# CP Xxx.tar.gz/tmp
2. Unzip the package.
#tar Xvzf xxx.tar.gz
3. Use the LS command to see the extracted files. Typically, in a file that is uncompressed, view the "Install" file. This file is a plain text file, detailing how the package is installed.
#vi Install
4. Perform a decompression of the resulting executable script named configure. It is the system information required for installation to check whether the system has the necessary libraries to compile, and whether the version of the library meets the needs of the compilation. Prepare for the subsequent compilation work.
#./configure
5. After the check is passed, the makefile file for compilation is generated. At this point, you are ready to start compiling. The process of compiling depends on the size of the software and the performance of the computer, and the time spent is different.
#make
6. After successful compilation, type the following command to start the installation:
#make Install
7. Installation completed, should clear the compilation process generated during the temporary files and configuration process generated files. Type the following command:
#make Clean
#make Distclean
8. Uninstall the software.
#make Uninstall
The second method of installation is as follows:
1. In the current directory of the installation files, use the rpm command to install.
#rpm-IVH xxx.i386.rpm
RPM will automatically unpack the installation files and install the software to the default directory. The installation information of the software is registered into the RPM database, and the parameter IVH indicates that the installation mode is entered and the setup information and progress are displayed.
If you need to force the installation, execute:
#rpm –ivh–-force xxx.i386.rpm
2. The name of the query package registered in the system or whether it has been installed.
#rpm –q–a
Or
#rpm-Q-A |grep Pkgnam
#rpm-Q Pkgnam
3. Uninstall the installation package.
#rpm –e Pkgnam
You can uninstall the software. The function of the parameter e is to get the RPM into uninstall mode. Uninstall the package named [Package name]. There is a dependency between each package in the system. If you cannot uninstall because of dependencies, RPM prompts and stops uninstalling. You can use the following commands to ignore dependencies and start uninstalling directly:
#rpm –e Pkgnam--nodeps