All Products
Search
Document Center

Elastic Compute Service:Search for software packages

Last Updated:Sep 04, 2023

If you want to install software on a Linux Elastic Compute Service (ECS) instance and you are not sure about the name of the software package, you can use Linux tools to search for the package by keyword. This topic describes how to search for software packages on different Linux distributions.

Procedure

Search for software packages in CentOS

  1. Connect to a CentOS instance.

    For more information, see Connect to a Linux instance by using a password or key.

  2. Run the following command to search for software packages:

     yum search [Software package keywords]

Examples:

Example 1: Search for the software packages of rz and sz.

Run the following command to search for the software packages of rz and sz:

yum search sz rz

The following command output is displayed, which indicates that the lrzsz.x86_64 software package that contains the lrz and lsz programs is found.

Example 2: Search for the software packages of MySQL Server.

Run the following command to search for the software packages of MySQL Server:

yum search mysql-community-server

The following command output is displayed, which indicates that the mysql-community-server package is found.

Note

If you cannot find the mysql-community-server package in CentOS, the reason may be that you did not add the repository of the package. For information about how to add the required software repository and how to install and use MySQL Server, see Deploy MySQL on a Linux instance.

Search for software packages in Debian or Ubuntu

  1. Connect to a Debian or Ubuntu instance.

    For more information, see Connect to a Linux instance by using a password or key.

  2. Run the following command to search for software packages.

    apt-cache search [Software package keywords]

Examples:

Example 1: Search for the software packages about web servers.

Run the following command to search for the software packages about web servers:

apt-cache search "web server"

The following command output is displayed, which indicates that the software packages about web servers are found.

p48441.png

Example 2: Search for OpenJDK software packages.

Run the following command to search for OpenJDK software packages:

apt-cache search openjdk

The following command output is displayed, which indicates that the OpenJDK software packages are found.

p48443.png

What to do next

After you find a software package, you may need to install the package. For information about how to install a software package, see Install software packages.