Help & DocumentationCloud Virtual MachineOps GuideInstalling SoftwareInstall Software via YUM under CentOS Environment

Install Software via YUM under CentOS Environment

Last updated: 2020-02-25 12:04:35

PDF

Scenario

In order to improve the efficiency of software installation on Cloud Virtual Machine and reduce the cost of downloading and installing software, Tencent Cloud provides a source of YUM download. In the CentOS environment, users can use the yum Commandtoquicklyinstallthe**software. For YUM download sources, users do not need to add software sources and can install software packages directly.

Directions

Installing software

  1. Log in to Cloud Virtual Machine with your root account.
  2. Execute the following command to install the software.

StartingwiththeCentOS7system,MariaDBhasbecomethedefaultdatabaseinstallationpackageintheYUMsource. If your operating system is CentOS 7 or above, use the yum Command to install the MySQL package will not be able to use MySQL. YoucanchoosetouseafullycompatibleMariaDB,or Click here to see Install an earlier version of MySQL.

yum install Software name

During the process of installing the software, the system will automatically search for the relevant software packages and dependencies, and prompt the user in the interface to confirm whether the searched software packages are appropriate.
For example, you execute yum install PHP Command, after installing PHP, the interface is shown as follows:

4. After confirming that the software package is correct, enter y , billed by Enter To start installing the software
Interface hint Complete Theinstallationis**complete. as shown below:

View information about installed software

After the software installation is completed, you can execute different commands and view the information according to the actual requirements.

  • ExecutethefollowingcommandtoviewthespecificinstallationofthepackageDirectory.
rpm -ql Software name

For example, you execute rpm -ql php Command, check the specific installation of PHP Directory. as shown below:

  • Execute the following command to view the version information of the package.
rpm -q

For example, you execute rpm -q php Commandtoviewtheversioninformationof**PHP. as shown below: