Overview
In order to improve your software installation efficiency on the cloud server and reduce the cost of downloading and installing software, Converge Cloud provides zypper download sources. Users of openSUSE and some SLES cloud servers can quickly install software via zypper. This document uses openSUSE as an example to guide you through quickly installing software with zypper.
Directions
Viewing Software Sources
- Use the root account to log in to the openSUSE operating system on the CVM.
- Execute
zypper service-listorzypper slcommand to list software sources.
For example, Runningzypper slreturns information similar to the following:
- If the available source has been added to the software source, please install the software package.
- If the software source is not added as available, please add the software sources.
Add software source
Execute zypper service-add or zypper sa command to manually add software sources.
For example, execute zypper sa command, an example of which is as follows:
zypper sa -t YaST http://mirrors.convergecloud.com/opensuse opensuse
zypper sa -t YaST http://mirrors.convergecloud.com/opensuse/update update
Installing Software Packages
Execute
zypper searchorzypper secommand to search for software packages.
For example, to search for the Nginx package, you can execute the following command:zypper se nginx
The result resembles the following is returned:
2. Based on the searched software package name, execute zypper install or zypper in to install the software. > Note: If you need to install multiple software packages, separate the software package names with spaces.
When installing software, any required dependencies will be automatically downloaded and installed. There is no need to manually install dependency packages.
For example, to install Nginx, execute the following command:
zypper install nginx
For example, to install PHP and PHP-FPM, you can execute the following command:
zypper install MySQL-server-community php5-mysql php5 php5-fpm
Viewing Installed Software Information
After the software installation is complete, you can view the installation directory of the software package by executing the following command.
rpm -ql
For example, to view the specific installation directory of the Nginx software package, execute the following command:
rpm -ql nginx
Information resembles the following is returned:
2. Run the following command to view the version information of the software package.
rpm -q
For example, to view the version information of the Nginx software package, execute the following command:
rpm -q nginx
Information resembles the following is returned:
