Help & DocumentationCloud Virtual MachineOps GuideInstalling SoftwareInstall Software via Apt-get under Ubuntu Environment

Install Software via Apt-get under Ubuntu Environment

Last updated: 2020-02-25 12:12:27

PDF

Scenario

In order to improve the efficiency of software installation on Cloud Virtual Machine and reduce the cost of downloading and installing software, Tencent Cloud provides a source of Apt-get download. In Ubuntu environment, users can quickly install software through Apt-get. For the Apt-get download source, you do not need to add a software source, you can install the software package directly.

Prerequisites

Cloud Virtual Machine, who has logged in to the operating system Ubuntu.

Directions

The following action takes installing Nginx as an example.

View installable software

Execute the following command to view the software that can be installed.

sudo apt-cache search all

Installing software

  1. Run the following command to install Nginx.
sudo apt-get install nginx

After confirming that the software information is correct, type Y Agree to the installation and wait until the software installation is complete as shown below:

View installed software information

According to the actual requirements, execute different commands to view the installed software information.

  • Execute the following command to view the Directory where the package is located and all the files in the package.
sudo dpkg -L Software name 
  • Execute the following command to view the version information of the package.
sudo dpkg -l Software name 

View installed Nginx information. as shown below: