{{Short description|Linux package management library}} {{Use dmy dates|date=January 2026}} {{Infobox software | name = ZYpp | title = ZYpp | logo = <!-- Image name is enough --> | logo size = | logo caption = | logo alt = | screenshot = Zypper info libzypp screenshot.png | caption = A {{code|zypper info}} command showing information of libzypp | screenshot size = | screenshot alt = | collapsible = | author = SUSE | developer = openSUSE Project | released = {{Start date and age|2006|01|14|df=y}}<ref>{{cite web|url=https://github.com/openSUSE/libzypp/blob/90acb93974a99bea7409516be55d6acdc35099f7/package/libzypp.changes|title=Earliest known changelog}}</ref> | discontinued = | latest release version = {{Wikidata|properties|references|edit|P348}}, {{Wikidata|properties|references|edit|Q9393236|P348}} | latest release date = {{Start date and age|{{Wikidata|qualifier|single|P348|P577|df=y}}}}, {{Start date and age|{{Wikidata|qualifier|single|Q9393236|P348|P577}}}} | latest preview version = {{Wikidata|properties|references|edit|P348|P548=Q51930650}} {{Wikidata|properties|references|edit|Q9393236|P348|P548=Q51930650}} | latest preview date = {{Start date and age|{{Wikidata|qualifier|single|P348|P548=Q51930650|P577|df=y}}}}, {{Start date and age|{{Wikidata|qualifier|single|Q9393236|P348|P548=Q51930650|P577}}}} | repo = {{Wikidata|properties|references|edit|P1324}}, {{Wikidata|properties|references|edit|Q9393236|P1324}} | programming language = * ZYpp: {{Wikidata|properties|references|edit|P277}} * Zypper: {{Wikidata|properties|references|edit|Q9393236|P277}} | operating system = Linux | platform = | size = | language = | language count = <!-- DO NOT include this parameter unless you know what it does --> | language footnote = | genre = Package manager | license = GNU General Public License | website = {{URL|https://en.opensuse.org/Portal:Libzypp}} | standard = | AsOf = }}

'''ZYpp''' (or '''libzypp'''; ''"Zen / YaST Packages Patches Patterns Products"''<ref>{{Cite web|url=https://en.opensuse.org/Acronyms#Z|title = Acronyms - openSUSE Wiki}}</ref>) is a package manager engine that powers Linux applications like Myrlyn, YaST, Zypper and the implementation of PackageKit for openSUSE and SUSE Linux Enterprise.<ref>{{cite web |url=https://doc.opensuse.org/projects/libzypp/HEAD/|title=Libzypp documentation}}</ref> Unlike some more basic package managers, it provides a satisfiability solver to compute package dependencies.<ref>{{cite web |url=https://en.opensuse.org/Portal:Libzypp|title=Libzypp project homepage}}</ref> It is a free and open-source software project sponsored by SUSE and licensed under the terms of the GNU General Public License v2 or later. ZYpp is implemented mostly in the programming language C++.

'''Zypper''' is the native command-line interface of the ZYpp package manager to install, remove, update and query software packages of local or remote (networked) media. Its graphical equivalent is the YaST package manager module. It has been used in openSUSE since version 10.2 beta1. In openSUSE 11.1, Zypper reached version 1.0. Zypper is also part of the mobile Linux distributions MeeGo, Sailfish OS, and Tizen.

==History==

===Purpose=== thumb|upright=1.5|Screenshot of <code>zypper dup</code>, showing available updates to install Following its consecutive acquisitions of Ximian and SuSE GmbH in 2003, Novell decided to merge both package management systems, YaST package manager and Red Carpet, in a best of breed approach, as the two solutions so far were used at Novell. Looking at the extant open source tools and their maturity available back in 2005, none fulfilled the requirements, and were able to work smoothly with the extant Linux management infrastructure software developed by Ximian and SUSE, so it was decided to get the best ideas from extant pieces and to work on a new implementation. Libzypp, the resulting library, was planned to be the software management engine of the SUSE distributions and the Linux Management component of the Novell ZENworks Management suite.

===Early days=== The Libzypp's solver was a port from the Red Carpet solver, which was written to update packages in installed systems. Using it for the full installing process brought it to its limits, and adding extensions such as support for weak dependencies and patches made it fragile and unpredictable.<ref>{{cite web |url=https://github.com/openSUSE/libsolv/blob/master/doc/libsolv-history.txt|title=Michael Schroeder, History of satsolver|website=GitHub|date=26 November 2021}}</ref> Although this first version of ZYpp's solver worked satisfactorily, on the company enterprise products with the coupled ZMD daemon, it led to an openSUSE 10.1 release which came out in May 2006 with a system package not working as expected. In December 2006, the openSUSE 10.2 release corrected some defects of the prior release, using the revisited ZYpp v2. ZMD was subsequently removed from the 10.3 release and reserved for only the company Enterprise products. While ZYpp v3 provided openSUSE with a relatively good package manager, equivalent to other existing package managers, it suffered from some flaws in its implementation which greatly limited its speed performance.

===SAT solver integration=== An area where libzypp needed improvement was the speed of the dependency solver. libsolv is being written and released under the revised BSD license.<ref>{{cite web |url=https://github.com/openSUSE/libsolv |title=libsolv on github|website=GitHub|date=26 November 2021}}</ref>

Projects like Optimal Package Install/Uninstall Manager (OPIUM)<ref>{{citation|last1=Tucker|first1=Chris|last2=Shuffelton|first2=David|last3=Jhala|first3=Ranjit|last4=Lerner|first4=Sorin|url=https://www.cs.ucsd.edu/~lerner/papers/opium.pdf|title=OPIUM: OPtimal Package Install/Uninstall Manager|work=29th International Conference on Software Engineering|publisher=ICSE'07|year=2007|postscript=.}}</ref><ref>{{citation|author=EDOS Project Workpackage 2 Team|url=http://www.edos-project.org/xwiki/bin/Main/Deliverables|title=Report on formal management of software dependencies|work=EDOS Project Deliverable Work Package 2|publisher=Deliverable 2|date=March 2006|postscript=.|access-date=2009-06-06|archive-date=2006-06-19|archive-url=https://archive.today/20060619200622/http://www.edos-project.org/xwiki/bin/Main/Deliverables|url-status=dead}}</ref> and MANCOOSI<ref>{{citation|last1=Le Berre|first1=Daniel|last2=Parrain|first2=Anne|title=On SAT Technologies for dependency management and beyond|work=ASPL 2008|publisher=Limerick|year=2008|url=http://www.mancoosi.org/papers/leberre-sat-beyond.pdf|at=Mancoosi.org|postscript=.}}</ref> were trying to fix dependency solving issues with a SAT solver. Traditional solvers like Advanced Packaging Tool (APT) sometimes show unacceptable deficiencies. It was decided to integrate SAT algorithms into the ZYpp stack; the solver algorithms used were based on the popular minisat solver.<ref>{{cite web |url=http://minisat.se/|title=Minisat.se}}</ref>

The SAT solver implementation as it appears in openSUSE 11.0 is based on two major, but independent, blocks: * Using a data dictionary approach to store and retrieve package and dependency information. A new solv format was created, which stores a repository as a string dictionary, a relation dictionary and then all package dependencies. Reading and merging multiple solv repositories takes only milliseconds. * Using satisfiability for computing package dependencies. The Boolean satisfiability problem is a well-researched problem with many exemplar solvers available. It is very fast, as package solving complexity is very low compared to other areas where SAT solvers are used. Also, it does not need complex algorithms and can provide understandable suggestions by calculating proof of why a problem is unsolvable.

After several months of work, the benchmark results of this fourth ZYpp version integrated with the SAT solver were more than encouraging, moving YaST and Zypper ahead of other RPM-based package managers in speed and size.<ref>{{cite web |url=http://duncan.mac-vicar.com/2008/05/17/yum-and-zypp-speed-memory-usage.html |title=yum and ZYpp speed / memory usage |date=16 May 2008 |access-date=23 October 2008 }}{{Dead link|date=March 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref><ref>{{cite web |url=https://news.opensuse.org/2008/06/06/sneak-peeks-at-opensuse-110-package-management-with-duncan-mac-vicar/ |title=Sneak Peeks at openSUSE 11.0: Package Management, with Duncan Mac-Vicar |date=6 June 2008 |access-date=15 October 2017}}</ref>

== Front ends == Typically, YaST has served as the graphical front end for ZYpp in SUSE.<ref name=":0">{{Cite web |title=Formerly Known As YQPkg, Myrlyn Package Manager GUI Adds Repository Configuration |url=https://www.phoronix.com/news/Myrlyn-Repo-Configuration |access-date=2025-05-06 |website=Phoronix.com |language=en|date=10 February 2025|last=Larabel|first=Michael}}</ref> ZYpp is also supported by PackageKit.<ref>{{cite web |title=Frequently asked questions |url=http://www.packagekit.org/pk-faq.html#how-complete |url-status=dead |archive-url=https://web.archive.org/web/20080319143605/http://www.packagekit.org/pk-faq.html#how-complete |archive-date=19 March 2008 |access-date=10 July 2009 |publisher=packagekit.org}}</ref> Starting in 2025 with openSUSE Leap 16.0, YaST was replaced by Myrlyn.<ref name=":0" /><ref>{{Cite news |last=Brockmeier |first=Joe |date=2025-05-12 |title=The last of YaST? |url=https://lwn.net/Articles/1020408/ |access-date=2026-05-15 |work=LWN.net |language=en-US}}</ref>{{Portal|Free and open-source software}}

==References== {{Reflist}}

==External links== {{Wikidata property | P7788 }} * {{Official website|https://en.opensuse.org/Portal:Libzypp}} * [https://news.opensuse.org/2007/08/26/sneak-peeks-at-opensuse-103-new-package-management/ Sneak peeks at openSUSE new package management] * [https://distrowatch.com/weekly.php?issue=20080602#feature DistroWatch.com]

{{Linux package management systems}} {{Novell}}

{{DEFAULTSORT:Zypp}} Category:Free package management systems Category:Free software programmed in C++ Category:Linux package management-related software Category:Software using the GNU General Public License Category:SUSE Linux