Package installation method under Linux

  
1. Compiled packaged xxx.rpm
If your Linux system has an installer, it is best to install it with the system's own installer. For example, SuSE's YaST2 comes with an installer. In the KDE environment, as long as it is rpm, you can click on "Konqueror" and then "Install with YaST2". The advantage of this is that YaST2 will give you the details of the package, and automatically check the trust. Relationship, and later you can easily uninstall the package in YaST2. SuSE's Red-Carpet also provides installation features, which is not bad.
Another way is to use the rpm command, you need to open the terminal, switch to the directory where xxx.rpm is located, execute:
rpm -ivh xxx.rpm If necessary, you can bring other parameters. However, in SuSE, the package installed with the rpm command is displayed as "Lock Status" in the YaST2 control panel. I don't know what this means, but the package is available and can be uninstalled in YaST2.
2, packaged source package xxx.src.rpm
use a command to regenerate it:

rpm -rebuild xxx.src.rpm
3, the installation program xxx.bin
There are a lot of commercial software packaged and distributed in this way, in fact, it is equivalent to Setup.exe under Windows, but you must first change xxx.bin to executable state, you can use the right--> property to modify You can also use the following command:
chmod +x xxx.bin This way, you can double-click or execute xxx.bin in the terminal.
4, compression package xxx.tar.gz, xxx.bz2, xxx.z, etc.
How to decompress please see this article: http://www.linuxsir.org/bbs/showthr ...threadid=162970 This package is divided into two forms: (1) The compiled package is installed using the installation script: You should first look at the package's documentation, such as readme, install, xxx .htm and so on. Look for the xxx.sh, xxx.pl file, usually install.sh or install.pl, may not be the name, the specific analysis.
Open the terminal, switch to the directory where the package is located, run the following command:
./xxx.sh or ./xxx.pl.
(2) Need to compile the source code compression package, first decompress: Similarly, you should first look at the package description file, such as readme, install, xxx.htm.
The general installation form is: open the terminal, switch to the directory where the software package is located,
run the following command:
./configure (Doing a lot of automatic configuration, it usually takes a lot of time. The configuration program will check your System information, make the appropriate configuration, will definitely check your compiler (such as gcc) and library files (such as glib) and other information, so you must ensure that you have these software on your system) make (start compilation, generally will spend a lot Time) make check (check if the result is correct. This step is not necessary, but it is recommended to do it) make install This completes the software installation process.
If you want to delete the source code file, you can run the command in the original directory:
make clear If you want to uninstall the package, you can run the command in the original directory:
make uninstall
5, use Java compiler installer xxx.jar
First of all, you must have java virtual machine software on your system, if not, download one on Sun's website (http://www.java.com or http: //java.sun.com).
To install the package in the form of xxx.jar, first open the terminal, switch to the directory where xxx.jar is located, and execute:
java -jar xxx.jar This starts the installer. Make check (check if the result is correct. This step is not required, but it is recommended) make clear If you want to uninstall the package, you can run the command in the original directory:
make uninstall
6. Use portage, Knock command:
# emerge packagename (Compile or install some compiled packages from source) # emerge -k packagename (Compile your own package on the hard disk) No, just do it.

Copyright © Windows knowledge All Rights Reserved