In Linux systems, software is usually provided in the form of source code or precompiled packages. (1) The software source code needs to be compiled into binary machine code to be able to use, installation time-consuming, but you can adjust the compilation options, determine the required features or components, or for the hardware platform for some optimization. (2) A precompiled package, usually compiled by the publisher of the software, you can simply copy the software to the system. Pre-compiled packages are not typically optimized for some hardware platform, given the applicability of precompiled packages. The features and components that it contains are also common combinations.
1. How to install the Deb package
Deb is a Debian Linux package management method, Ubuntu is a Debian Linux distribution, so the default support for this software installation, when downloaded into a Deb format software, the terminal input This command can be installed:
sudo dpkg -i *.deb
or simply double-click the installation.
2. Compile and install the method
(Tip: Before compiling, you need to establish a compilation environment, using the following command to establish a basic compilation environment: sudo apt-get install build-essential)
In the world of Linux, there are a lot of software to provide you with the source code, you need to compile and install yourself, generally open source software will use tar.gz compressed file to publish, of course, there are other forms. Get the source code of the compressed document, unzip it into the/tmp directory, enter the/tmp/software directory, and then execute the following three commands:
1./configure
2 Make
3 sudo make install
In the first step./configure may be prompted to say that some software can not be found, such as the hint "libgnome" This development package is not found, then put libgnome this keyword copy, and then open the new software manager, in the search libgnome this keyword, Will find Libgnome related projects, the front has an Ubuntu symbol of the Libgnome pack (note: also need to install the dev package, but can not install the DOC package) all installed, through this method to the./configure process missing development packages are all loaded on the OK, The first step can pass smoothly, second, three steps basic problem is not big.
The above is the general beginner Ubuntu Friends must master the basic method of compiling and installing!
3, Apt-get installation method
Ubuntu world has a lot of software sources, in the system installation chapter has described how to add sources, Apt-get basic Software Installation commands are:
sudo apt-get install 软件名
4. New software package Management
Open: System--system management-------------------------------------new software package management, this tool is the same as apt, can search, download, install Ubuntu source, the specific installation method is simple
5. How to install the binary package
There are many non-open source business software will be published in this way Linux software, such as Google Earth, after getting the binary software, put it into the/tmp directory, under the terminal into the installation directory, in the installation directory to execute:
./Software Name
You can then install the software by following the step-by-step instructions. For example, install RealPlayer Player: You directly to the official website http://www.real.com/linux Download RealPlayer installation package, the installation package is. bin format, installed with the following command:
chmod +x RealPlayer11GOLD.bin
./RealPlayer11GOLD.bin
6, the RPM package installation method
The RPM package is the most common form of package management outside of the Deb package, but Ubuntu can also use RPM's software resources. First we need to install a RPM-to-Deb software
sudo apt-get install alien
You can then convert the software in the RPM format to the Deb format:
alien -d *.rpm
You can then install the software by using the Deb installation method. You can also install the RPM package directly without the need for conversion:
alien -i *.rpm
More alien usage methods you can use the-H parameter to view the appropriate documentation.
7. Other installation methods
Other installation methods generally also have a script installation, such software, you will find similar suffix files in the software installation directory, such as:. Sh. py. Run, etc., some even the suffix name does not have, directly only an install file, for this software, you can try the following several ways to install:
The simplest is to enter directly in the SOFTWARE directory:./software Name * (Note that there is an * number, which is generally available with all suffix names)
Or: SH software name. sh
Or: Python software name. py
TIP: If none of the above methods can be installed, refer to the Readme document under the software source code.
How to install software under Ubuntu Linux