Installing Software on CentOS via YUM

Last Updated At: 2025-10-15 20:25:54

Overview

To improve user efficiency of software installation on Cloud Virtual Machines and reduce the cost of downloading and installing software, Converge Cloud provides a YUM repository. In CentOS environment, users can quickly install the software using the yum command. For YUM repository, users do not need to add additional repositories and can directly install software packages.

Directions

Software Installation

  1. Log in to the Cloud Virtual Machine using the root account.

  2. Execute the following command to install the software. > Note: Starting from CentOS 7, MariaDB has become the default database package in the YUM repository. If your operating system is CentOS 7 or later, you will not be able to use MySQL with the yum command to install MySQL packages. You can choose to use the fully compatible MariaDB, or
    to install an earlier version of MySQL.

    yum install software-name
    

    During the software installation process, the system will automatically search for relevant software packages and dependencies, and prompt the user to confirm whether the found packages are suitable.

For example, when you execute yum install PHP command, after installing PHP, the interface will display as shown below:

3. After confirming that the software package are correct, type y and press Enter to start installing the software.
When the interface displays Complete, the installation is finished. As shown below:

Viewing Installed Software Information

After the software installation is complete, you can execute different commands based on actual needs to view information.

  • Run the following command to view the specific installation directory of the software package.

    rpm -ql software-name
    

    For example, if you execute rpm -ql php command to view the specific installation directory of PHP. As shown below:

  • Run the following command to view the version information of the software package.

    rpm -q
    

    For example, if you execute rpm -q php command to view the PHP version information. As shown below: