Install software via zypper in OpenSUSE environment

Last Updated At: 2025-10-21 09:10:00

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

  1. Use the root account to log in to the openSUSE operating system on the CVM.
  2. Execute zypper service-list or zypper sl command to list software sources.
    For example, Running zypper sl returns information similar to the following:

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

  1. Execute zypper search or zypper se command 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

  1. 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: