How Ubuntu systems install software

Source: Internet
Author: User

1. The simplest way is that when we know the name of the software, we can simply enter the command in the Terminal command window:

sudo apt-get install google-chrome-unstable

The various parameters of Apt-get are given below:

Apt-get Install XXX. If it has parameters, then-d means download only and-F indicates mandatory installation
Apt-get Remove xxx Uninstall XXX
Apt-get Update updates the Software information database
Apt-get Upgrade for system upgrades
Apt-cache Search Package
Tips: It is recommended that you use the "apt-get Update" command frequently to update your software information database

2. Since it is inherited from the Debian system, we can download the Deb installer package file and then double-click the Deb installation package to install it, which is only suitable for the installation of some software. Or

sudo dpkg-i *.deb

3. 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.

4. How to install a 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

How to install the 5.RPM package

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.

6. 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

PS: If none of the above methods can be installed, refer to the Readme document under the software source code.

How Ubuntu systems install software

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.