This topic describes how to install software packages in different Linux distributions
by using Apache HTTP Server in Alibaba Cloud software repositories. After you add
a software repository, you can use the package management tool provided by Linux to
install packages based on your needs.
Prerequisites
A software repository that contains the software packages to be updated is added before
you install the software packages. In this example, you must add an Alibaba Cloud
software repository before you proceed. For more information about how to add a software
repository, see
Add a software repository.
Install a software package in CentOS
- Connect to a Linux instance. For more information, see Connection methods.
- Run the following command to install a software package:
yum install <package> # Replace <package> with the software package that you want to install.
In this example, run the following command to install Apache HTTP Server:
yum install httpd
Install a software package in Debian or Ubuntu
- Connect to a Linux instance. For more information, see Connection methods.
- Run the following commands to install a software package:
# apt-get update
# apt-get install <package> # Replace <package> with the software package that you want to install.
In this example, run the following commands to install Apache HTTP Server:
# apt-get update
# apt-get install apache2
Install a software package in OpenSUSE
- Connect to a Linux instance. For more information, see Connection methods.
- Run the following command to install a software package:
zypper install <package> # Replace <package> with the software package that you want to install.
In this example, run the following command to install Apache HTTP Server:
zypper install apache2