Installation of software in Linux environment

Source: Internet
Author: User

Download-Unzip:

Put the resulting directory in a non-interfering directory, we can set the hidden directory:

To view the executable program:

How do I become a system command?

PATH: An executable program that can be placed in any one of these directories can become a system-aware command, and can, of course, create symbolic Links:

Note: The last Subl is the link name, only need to knock Subl can enter sublime.

Download your own source installation:

Download the Hello on the Free Software Foundation and install:

The steps to install the open source software are fixed , as follows:

./configure

Make

sudo make install

Execute Hello program, normal output

Git Clone

Dependent Library Installation

Enter the source directory

Make

Note: To get the binary output, the first line that runs is actually the following.

Sudo make install executes the following instruction, which is to install the executable file in the bin directory

Note: Users install their own dependencies, very troublesome. There are too many manual installation, forget the installation of the location, in the unloading time is very troublesome. So we can save the basic information of the installation process, which is the basic idea of package management.

Deb Package

Common software in Ubuntu is packaged in a Deb package and then installed.

So we'll have more worry. Tutorial: Happycasts14.

Pack:

Once a package is installed, a rich set of information is left in the system's package management database.

List all the Deb packages that the system has installed:

This gives you a lot of output, and you can use the command to find one of the following:

See which files the package has installed on the system:

To see which package a file comes from:

It can be seen that google-choremo-stable provided the chrome file.

In practice, the apt-get is used, and the DPKG command is included at the bottom.

Software Warehouse

In the open source system, the software is generally published through the source code, Ubuntu official will regularly get the source code and make the Deb file for users to download. And they will build a software repository on their servers, put the Deb package up, I need to download the package is very convenient:

Remove software can be used: Apt-get remove git

However, if you want to delete the configuration file together, use:

Apt-get purge git

Sometimes we know what software to install, but the software name is not very clear:

Apt-catch Search

Note: The first line of the above command output will be more. The second line of instructions entered two times tab automatically complements the possible packages and displays (that is, lists the alternates).

Depend on

The installation of TIG requires GIT to be installed first, if not previously installed. Apt-get automatically handles dependencies and installs Git when TIG is installed.

Sometimes the Ubuntu warehouse software update is not timely, we need the latest version, which is required to install manually.

Installation of software in Linux environment

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.