How to install software packages in different formats in Linux
Installation Methods of software packages in different formats in Linux 1. deb package
1. Double-click the software package in ubuntu and follow the instructions.
2. Run sudo dpkg-I package name. deb.
3. Uninstall the command: sudo apt-get remove package name
Ii. rpm package
1. Double-click the graphic interface.
2. You can also run the command: rpm-I package name. rpm
3. Uninstall command: rpm-e complete software name (for example, firefox-1.0.1-1.3.2)
Ps: if you do not know the complete name, use the command: rpm-qa partial package name * for fuzzy query.
Iii. bin package
1. Open the terminal, enter the directory where the package is located, and add the executable permission to the package: chmod + x package name. bin. Run:./package name. bin.
2. Uninstall: Delete the installation directory during installation.
Iv. run package
1. Add the executable permission to the same bin package: chmod + x package name. run. Run:./package name. run.
2. uninstall: There is an uninstall file under the installation directory. Execute this file:./uninstall.
Five character tar.gz (bz or bz2) package
1. Open the terminal and enter the directory where the source code package is located.
2. decompress the file according to the type: tar-zxvf package name .tar.gz
3. After the decompression command is executed, the "Install" file is usually included in the files generated after the decompression. This file is a plain text file that describes the installation method of the software package in detail.
4. Execute the decompressed command to generate an executable script program named configure. It is used to check whether the system has the library required for compilation, and whether the library version meets the compilation requirements and other system information required for installation. Prepare for subsequent compilation. Command: #./configure.
5. After the check is passed, the Makefile file for compilation will be generated. Now you can start compiling. The compilation process varies depending on the software scale and computer performance. Command: # make.
6. After compilation, enter the following command to start installation: # make install
After installation, clear the temporary files generated during compilation and files generated during configuration. Run the following command:
# Make clean
# Make distclean
Ps: If your package is a binary package, you can use it directly after decompression. Steps 3, 4, 5, and 6 can be omitted.