Command Line Package Installation in OpenSuSE

October 1, 2007

One of the things I love the most about Debian is apt. It’s a great and speedy package manager. Being able to apt-get install from the command line and not have to wait for a heavy UI to come up is a major plus for me. Thats why I was frustrated with OpenSuSE, which we use at work.

First thing first, I think that the OpenSuSE package system is a pig. Yast is a pig. Zypper is a pig. I did, however, find the fastest route to installing via the command line, which I’ll share here.

Unless you happen to know the exact name of the package you want to install, you’ll need to look it up. The fastest way I’ve found is using Webpin, a nice online package searcher. Be careful that you are reading from the right repo though. For example, a search on “magick++” returns many packages, including “libMagick++-devel (” which, to my Debian eye, looks like the perfect package. It is from an odd repo though, “Results from” and the one I really want, and have access to mind you, is “ImageMagick-Magick++-devel (” which is in the main repo “Results from”. It’s already too complicated, but we soldier on.

With my new, exact, package name in hand, I open up a root command line. The syntax for a zypper install is zypper install [package name] so I do zypper install ImageMagick-Magick++-devel and let it rip. After a ridiculous amount of parsing, it figures out the dependencies and asks me to continue, which I do. You have to babysit it for key managing, I havent figured out how to force “yes” on it. And that is how you use zypper to install on OpenSuSE.

root:~$ zypper install ImageMagick-Magick++-devel

Restoring system sources...

Parsing metadata for 20070918-142944...

Parsing metadata for 20070927-100843...

Parsing metadata for 20070927-100709...

Parsing metadata for 20070918-055437...

Parsing metadata for SUSE-Linux-10.2-Updates...

Parsing RPM database...









Continue? [y/n] y

Downloading: [S4:1][package]liblcms-devel-1.15-30.i586, 141.5 K(490.1 K unpacked)

Installing: [S4:1][package]liblcms-devel-1.15-30.i586

Downloading: [S4:1][package]libwmf-gnome-, 7.7 K(9.6 K unpacked)

Installing: [S4:1][package]libwmf-gnome-

Downloading: [S4:1][package]readline-devel-5.1-55.i586, 137.2 K(376.7 K unpacked)

Installing: [S4:1][package]readline-devel-5.1-55.i586

Downloading: [S4:1][package]libwmf-devel-, 414.1 K(2.7 M unpacked)

Installing: [S4:1][package]libwmf-devel-

Downloading: [S3:0][package], 2.5 M(11.6 M unpacked)

Installing: [S3:0][package]

Downloading: [S5:0][package]ImageMagick-devel-, 1.5 M(5.6 M unpacked)

Installing: [S5:0][package]ImageMagick-devel-

Downloading: [S5:0][package]ImageMagick-Magick++-devel-, 193.2 K(939.8 K unpacked)

Installing: [S5:0][package]ImageMagick-Magick++-devel-


Categories: Geek
Tags: , , , ,


  1. Alex R says:

    I agree. I started with Opensuse 3 years ago, then Fedora, then Debian. Just switched again to OSuse and man, I remember that I ditched it in the first place because of its ridiculous package management capabilities.

  2. kamoga simon says:

    how can i see the GUI package installer in opensuse

  3. John Hobbs says:

    You are probably looking for YaST

Leave A Comment

Your email will not be published.