tencent cloud

All product documents
Cloud Virtual Machine
Installing Software via Apt-get (Ubuntu)
Last updated: 2024-01-06 17:38:11
Installing Software via Apt-get (Ubuntu)
Last updated: 2024-01-06 17:38:11

Introduction

Advanced Package Tool (APT) is a free software user interface that works with core libraries to handle the installation and removal of software on various Linux distributions. APT offers a centralized interface for software management and a better experience than having to download and install software one by one. Tencent Cloud hosts APT sources so you can install software without adding sources.

Prerequisites

Log in to a Linux CVM instance that runs Ubuntu.

Directions

Note:
In the following, Nginx is used as an example.

Listing available software

Run the following command to list available software:
sudo apt-cache search all

Installing software

Run the following command to install Nginx:
sudo apt-get install nginx
Make sure this is the software you want to install and enter Y to approve the installation. Wait until the software installation is complete, as shown in the figure below:



Querying installed software

You can run different commands to query installed software.
Run the following command to query the directory of the software package and all the files in the software package.
sudo dpkg -L software_name
Run the following command to query the version information of the software package.
sudo dpkg -l software_name
View information on the installed Nginx, as shown in the figure below:


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon