zypp, libzypp, zypper
This document (7001498) is provided subject to the disclaimer at the end of this document.
Novell Open Enterprise Server 2 (OES 2)
SUSE Linux uses rpm as its package format. The basic tool for this is the RPM (RPM Package manager) program, it handles installation, removal and querying of packages.
RPM checks that the requirements of a package are met, e.g. if package X needs package libY and you try to install package X but without having libY installed, rpm will refuse to install X and give a warning that libY is missing. RPM has no way to install automatically a package that contains libY.
There are various programs using rpm (and other package formats) to support the following use cases with a comfortable user interface:
- Install a package and all of its dependencies automatically
- Download these packages from a remote server or local media
- Remove packages
- Update packages with newer versions
SUSE Linux 10.0 offers the following programs for this:
- YOU - the YaST online update (only update)
- yast package manager ("yast sw_single") for installation and removal (but not update)
- apt-rpm as alternative for yast and YOU
With SUSE Linux 10.1, SUSE has integrated a new package manager resolver library called "libzypp".
libzypp is the integration of SUSE's yast2 Package manager and Ximian's libredcarpet. At Novell two solutions so far were used - Red Carpet and YaST package manager - and it was decided to merge both in a best of breed approach.
The advantages for SUSE Linux are:
- A better resolver than before
- More information about why a package is installed or no solution is found
- A better integration of all those feature that were added over the years to our package manager.
- A command line interface ("rug")
- A common handling of packages *and* patches
- Dependency handling for update packages
- A better way to handle selections (we call them now "patterns")
- Remote management (not yet in SUSE Linux 10.1)
- Additional repositories during installation
- More flexibility in handling of different repositories, e.g. it is possible to have additional patterns for each repository.
- Additional dependencies based on language (for fonts, translatations, etc.) or hardware (for drivers)
- Thus, following its consecutive acquisitions SuSE GmbH and Ximian, Novell decided to merge both systems RedCarpet and YaST package manager to its Zen Management Network, designed to manage large heterogeneous park. While the resulting manager, ZYpp, worked well on products Company with the ZMD deamon, it was not very well suited for public distribution, leading to an openSUSE 10.1 release which came out with a system package not working as expected.
- The openSUSE 10.2 release corrected some defects of the previous release, using the revisited libzypp v2. Then, ZMD was finally removed permanently from the 10.3 release and reserved only to the company Enterprise products. While zypp v3 provided openSUSE with a relative good package manager, equivalent to other existing packages management systems, it suffers from some flaws in its implementation which limited its performance.
- In May 2007, during the 29th "International Conference on Software Engineering" were published the results of an experimental solver called OPIUM (Optimal Package Install / Uninstall Manager), a first implementation in a Linux system of a SAT solver (Boolean satisfiability problem). This new tool is intended to address the sometimes unacceptable deficiencies of existing solvers dependencies such as traditional Apt. The SAT solver, from the theory of complexity, basically works differently from them (see  for the operation of the algorithm Apt and Aptitude). They must manage a compromise between speed of solving the dependancy problem and the quality of that solution. Unlike them, the SAT solver is complete: it finds the best possible solution in a very reasonable time.
- After several months of work, the results are more encouraging: the benchmarks of zypp v4 compared to YUM and Smart, on the same machine, speak for themselves (see  to see a few graphs) and Smart "use-case"  are properly managed. Another surprising feature of this new zypp is its ability to invoke recommendations physical packages. Need to install a new camera? A simple connection of hardware and a simple "zypper update" command line (or via YaST) and zypp will try to get good drivers from the online repositories.
- Zypp is to be an independent project of the openSUSE distribution: It has therefore some degree of interoperability  with the de facto standard yum, and can be used with other distributions: the graphical user interface implements a complete PackageKit zypp backend. Taking part of the flexibility of the openSUSE Build Service, packages of the ZYpp package manager will be available for other distribution like Fedora and Mandriva Linux .
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7001498
- Creation Date: 06-Mar-2009
- Modified Date:23-Dec-2021
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com