After you add software repositories, you can use the package management tool of the Linux system to install the packages you need. This topic uses Apache HTTP Server in Alibaba Cloud repositories as an example to describe how to install software packages on different Linux distributions.

Prerequisites

You have added the repositories of software packages before you install them. You must add Alibaba Cloud repositories before following the steps in the examples below. For more information about how to add repositories, see Add software repositories.

Install software packages on CentOS

  1. Connect to a Linux instance. For more information, see Connect to a Linux instance.
  2. Run the following command to install software packages.
    yum install <package> # Replace <package> with the software package you want to install.
    For example, to install Apache HTTP Server, run the following command.
    yum install httpd

Install software packages on Debian or Ubuntu

  1. Connect to a Linux instance. For more information, see Connect to a Linux instance.
  2. Run the following command to install software packages.
    # apt-get update
    # apt-get install <package> # Replace <package> with the software package you want to install.
    For example, to install Apache HTTP Server, run the following command.
    # apt-get update
    # apt-get install apache2

Install software packages on openSUSE

  1. Connect to a Linux instance. For more information, see Connect to a Linux instance.
  2. Run the following command to install software packages.
    zypper install <package> # Replace <package> with the software package you want to install.
    For example, to install Apache HTTP Server, run the following command.
    zypper install apache2