Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

Packages Management

News

Recommended Books

Recommended Links Installation Checklist YaST RPM Packages

YUM

rug

zypper

 

Midnight Commander

Humor Etc
 

Suse is RPM based distribution and its package repositories are YUM-compatible.

Among supported packages on suse 11 are:

Suse 10 additionally suppports

 


Notes:
  • This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Some amount of grammar and spelling errors should be expected.
  • The site contain some broken links as it develops like a living tree... Please try to use Google, Open directory, etc. to find a replacement link (see HOWTO search the WEB for details). We would appreciate if you can mail us a correct link.
Google Search
Open directory

Research Index


Old News ;-)

openSUSE News ป Blog Archive ป Sneak Peeks at openSUSE 10.3 New Package Management

In addition to this, two new tools were also created in order to work with the new libzypp:

Displaying your repository list:

opensuse:~ # zypper repos
# | Enabled | Refresh | Type | Name | URI
–+———+———+——–+—————+——————————————————————————–
1 | Yes | Yes | yast2 | 10.3 - Main Repository (NON-OSS) | http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/
2 | Yes | Yes | rpm-md | KDE:Community | http://download.opensuse.org/repositories/KDE:/Community/openSUSE_Factory
3 | Yes | Yes | yast2 | 10.3 - Main Repository (OSS) | http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/

Installing a package:

opensuse:/home/francis # zypper install filelight
* Reading repository ‘10.3 - Main Repository (NON-OSS)’ cache
* Reading repository ‘KDE:Community’ cache
* Reading repository ‘10.3 - Main Repository (OSS)’ cache
* Reading installed packages [100%]
The following NEW package is going to be installed:
filelight
Overall download size: 619.3 K. After the operation, additional 1.0 M will be used.
Continue? [y/n]: y
Downloading package filelight-1.0-6.1.i586, 619.3 K (1.0 M unpacked)
* Installing: filelight-1.0-6.1 [100%]

What kind of advantages does this package management have over the old, pre SUSE Linux 10.1, package management?

The pre-10.1 stack, while mature, was showing its limitations. With the ZYpp based stacks we got:

And now in 10.3 you will get:

Upgrade candidates are considered from the same vendor, so you don’t jump automatically between feature-sets and vendors as new versions are available.

Package Management With Zypper Linux Journal

As I've mentioned before I'm an openSUSE user, and as long as they don't make the "U" lower case again, I'll probably stick with it. When it comes to package management, OpenSUSE and SUSE Linux Enterprice (and SuSE before them) are usually associated with YaST (and yes, I'm still waiting for them to upper case the "a"). YaST works well but it's a bit verbose for installing a single package, and of course that's just more fodder for the apt-getters with all their apt-get install this and their apt-get install thats. And you can't argue with them, but there are other options with openSUSE: yum and apt4rpm come to mind, but the preferred solution is zypper.

Zypper is a command line tool for package management, it's based on ZYpp, aka libzypp. The WikiPedia entry for Zypp says:

Unlike other common package managers, it provides a powerful satisfiability solver to compute package dependencies and a convenient package management API.

Since we don't want our heads to explode we'll just take it for granted that a powerful satisfiability solver is a good thing.

It turns out that YaST is also (now) based on ZYpp so you don't need to worry that you're missing out on something by using zypper.

Zypper is fairly straightforward to use. If you want to search for a package do zypper search STRING.... The STRING(s) can include * and ? wildcards and there are options for matching all or any of the strings and for full exact matches (the default is a partial match). If you want to search the package descriptions there's an option for that also. For example to search for packages with the word "mail" in the name or in the description do:

$ zypper search --search-descriptions mail
$ # --search-descriptions can be abbreviated as -d
Reading installed packages...

S | Name                 | Summary                                | Type
--+----------------------+----------------------------------------+-----------
  | Buddi                | Buddi - Personal budget software ...   | package
  | CgEddie              | A simple editor with syntax high ...   | package
  | FrostWire            | Gnutella peer-to-peer (P2P) file ...   | package
  ...
i | yast2-mail           | YaST2 - Mail Configuration             | package
  | yast2-mail-plugins   | YaST2-Users/Group Plugins for the ...  | package
  | yum-updatesd         | YUM update notification daemon         | package

When installing packages with zypper, as you'd expect/hope, zypper takes care of installing the package's dependencies:

$ zypper install Buddi
Reading installed packages...

The following NEW packages are going to be installed:
  BrowserLauncher2 swingx Buddi jcommon jfreechart

Overall download size: 4.1 M. After the operation, additional 5.2 M will be used.
Continue? [YES/no]:

Some of the other interesting commands that zypper supports are:

For a full list of the commands that zypper supports type zypper help and check the man page for more details.

One of Ubuntu's WOW factors seems to be apt-get dist-upgrade, i.e. the ability to upgrade to the next version of Ubuntu (and actually it's a feature of any debian based distro). This is another thing that the apt-getters puff up about, well enter zypper dist-upgrade or zypper dup. This allows you to upgrade from one version of openSUSE to the next. I have not used this feature yet, but posts on the openSUSE wiki seem to indicate that it works well.

So to all you apt-getters out there, all I can say is: zypp it.

Recommended Links

SUSE Linux Enterprise Server 11 Technical Specifications Detailed descriptions of all packages included on SUSEฎ Linux Enterprise Server. Check the support site to see the list of supported packages.

Package Management With Zypper Linux Journal



Copyright ฉ 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Disclaimer:

Last modified: January 15, 2010