May 3, 2024

Package management in SUSE Linux

Zypper: SUSE Linux's advanced package manager, comparable to yum, dnf, and apt in terms of effectiveness and versatility.


SUSE Linux is one of the most veteran Linux distributions, known for its robustness and stability in enterprise environments. Founded in 1992, SUSE has evolved from a small software distributor to a leading provider of enterprise Linux solutions. The distribution offers SUSE Linux Enterprise Server (SLES) and openSUSE, the latter geared towards users and developers who want an up-to-date and stable operating system for everyday use.

The importance of package management

Package management is fundamental in any operating system, but takes on particular importance in a Linux environment. This is because software in Linux is typically distributed in the form of packages, which contain binaries, configuration scripts, and dependency management information. Effective package management allows system administrators to install, update, configure and remove software easily and safely, maximizing system stability and security.

Similarities with other distributions

Before diving into the details of Zypper, it is essential to understand how other Linux distributions approach package management, as this helps to grasp the peculiarities and conveniences of each tool in different contexts. Distributions such as Debian and Ubuntu rely on the Advanced Package Tool (APT), a tool that automates the process of installing, updating and removing software, effectively managing dependencies between packages. APT is particularly appreciated for its robustness and the wide availability of packages via its numerous repositories.

On the other hand, Red Hat-based distributions like Fedora and CentOS originally used YUM (Yellowdog Updater Modified) to manage RPM packages in a similar way. YUM was later replaced by DNF (Dandified YUM), which offers significant improvements in speed, dependency resolution efficiency, and configurability. DNF uses a SAT (Satisfiability) based dependency resolution model, which is more efficient and accurate than older systems.

Both of these tools, APT and DNF, offer package management features that allow users to keep their system updated and secure with intuitive commands, although each tool has its own particular syntax and command set. For example, while APT requires commands like apt-get update o apt-get install, DNF works with commands like dnf install o dnf update.

Knowing the logic and structure of these package managers can therefore greatly facilitate learning and using Zypper for those users switching to a SUSE distribution. Similarities between commands and functions support a smoother transition, reducing the learning curve and increasing efficiency in managing the system. This cross-country familiarity among package managers highlights how, despite the differences, the basic principle remains the same: provide users with reliable and complete control over their system's software.

Introduction to Zypper

Zypper is the command-line package management tool for SUSE Linux distributions. First launched with openSUSE 10.3, this tool revolutionized the way users and administrators manage software on SUSE-based systems. As a package manager, Zypper uses the Red Hat Package Manager (RPM) format, a standard for software distribution in many Linux distributions. This allows Zypper to manage not only individual packages, but also the complex chains of dependencies that often accompany software packages.


Zypper's power lies in its integration with the RPM package management system and the openSUSE build system, known as OBS (Open Build Service). OBS is an extremely versatile platform that facilitates the creation and distribution of software packages between multiple Linux distributions. Thanks to OBS, developers can build software packages that are optimized for SUSE but potentially compatible with other platforms as well.

Zypper's interface is designed to be intuitive and powerful, offering simple commands that mask complex operations. This design allows users to install, upgrade, search, and manage repositories with a clear and concise set of commands. Additionally, Zypper is equipped with a transaction management system that ensures system integrity during software updates, a critical aspect for maintaining the stability and security of the operating system.

One of the most popular aspects of Zypper is its ability to handle complicated scenarios, such as version upgrades and package conflicts, with simple user intervention. Its modular architecture and script-oriented design make it highly adaptable and automatable, essential qualities in enterprise environments where package management must often be integrated into larger system scripts or automated deployment operations.

Zypper is not just a package management tool, but a powerful ally for system administrators who need detailed and reliable control of the software in their operating environments. With ongoing support and development from the openSUSE and SUSE Linux Enterprise community, Zypper continues to evolve, better adapting to the needs of increasingly complex and interconnected systems.

Basic functions of Zypper

Zypper supports multiple features that help in day-to-day package management. Below, some of the most common operations are explained:

1. Installing a package

To install a package with Zypper, simply use the command: zypper install package_name
This command searches for the package in the configured repositories, resolves any dependencies and proceeds with the installation.

2. Removing a package

To remove a package, use the command: zypper remove package_name
This command uninstalls the package and removes dependencies that are no longer needed.

3. Adding a repository

Repositories are sources from which packages can be retrieved and installed. To add a new repository, you use: zypper addrepo repository_url repository_name
This command adds the repository to the list that Zypper consults for package operations.

4. Deleting a repository

To delete a repository that is no longer needed, the command is: zypper removerepo repository_name

5. System update

To keep your system updated with the latest version of all installed packages, you use: zypper Update
This command searches for available updates and applies them.

Cheatsheet and equivalent commands between DNF, APT and Zypper

System administrators and advanced users working with different Linux distributions often need a quick reference to switch between package management systems without wasting time. This cheatsheet is designed to provide a quick comparison between the commands of three popular package managers: DNF for RHEL-based distributions, APT for Debian-based distributions, and Zypper for SUSE Linux. The goal is to facilitate the transition and daily use through an equivalence table that covers the main operations: repository management, package operations and system updates.

Operation DNF (Fedora, RHEL) APT (Debian, Ubuntu) Zypper (openSUSE, SLES)
Update the repo list dnf makecache apt update zypper refresh
Install a package dnf install <pacchetto> apt install <pacchetto> zypper install <pacchetto>
Remove a package dnf remove <pacchetto> apt remove <pacchetto> zypper remove <pacchetto>
Update all packages dnf upgrade apt upgrade zypper update
Search for a package dnf search <parola_chiave> apt search <parola_chiave> zypper search <parola_chiave>
Show details of a package dnf info <pacchetto> apt show <pacchetto> zypper info <pacchetto>
Add a repository dnf config-manager --add-repo <url_repo> add-apt-repository <repo> zypper addrepo <url_repo> <nome_repo>
Remove a repository dnf config-manager --remove-repo <url_repo> add-apt-repository --remove <repo> zypper removerepo <nome_repo>
List all repositories dnf repolist apt list --all-sources zypper repos
Upgrade the system (deployment) dnf distro-sync apt full-upgrade zypper dist-upgrade

How to Use the Cheatsheet

This cheatsheet can be used as a quick reference for performing common package management tasks across distributions. It is useful for system administrators and users who work in multi-distribution environments or who are migrating from one distribution to another. Remember that while the basic commands remain consistent, specific options and dependency management may vary slightly between package managers, so always consult your distribution-specific documentation for more in-depth details or advanced features.


Zypper represents an effective and sophisticated solution for package management in SUSE Linux environments. Through its integration with the RPM package management system and Open Build Service, Zypper offers administrators a robust platform for installing, updating and maintaining software. Its command-line interface, while powerful, is intuitive even for novice users, and its automated dependency resolution capabilities minimize the risks of software incompatibility. Zypper's flexibility and efficiency make it an indispensable tool for system administrators, allowing them to keep systems secure and up-to-date with minimal effort. Despite the presence of other well-established package managers such as YUM, DNF and APT, Zypper has nothing to envy in terms of functionality and performance, confirming itself as an excellent package manager, suitable for both enterprise environments and individual users.

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.


Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.


Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV Hetzner Online GmbH owns the rights to Hetzner®; OVHcloud is a registered trademark of OVH Groupe SAS; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Facebook, Inc. owns the rights to Facebook®. This site is not affiliated, sponsored or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a trademark registered at European level by MANAGED SERVER SRL, Via Enzo Ferrari, 9, 62012 Civitanova Marche (MC), Italy.

Back to top