Score:-1

How to install packages from command line on Suse

pr flag

What is the Suse version of apt-get or yum? Or how do I get one of them installed in order to install software packages from the command line?

A fairly intense session of googling suggests that it may be yast or yast2, but no sensible HOWTO of listing and installing packages from the command line seems to exist. (maybe I am looking in the wrong place)

If I am an administrator for a remote Suse server, how do I install packages from the command line? (Not using a GUI and preferably installing from a central repo)

Score:0
cn flag

You can consider my answer on U&L which partly answers your question.

First of all, answer the question. "Your" openSUSE uses zypper package manager as the default, which is not so bad. You can have a look at the documentation as Gerald Schneider commented for how to use it. You named YaST, which can be used to install other package managers such as (partly taken from here):

  • apt4rpm or zypper-aptitude which let you get the feel of apt(-get), the package manager for Debian + Ubuntu + Linux Mint and all Linux Distributions build in Debian
  • Redhat, fedora and CentOS are using dnf/yum package manager, which are also RPM-based package managers, dnf actually being a fork which just uses libsolv as dependency resolver.

BUT the big problem problem will be to find repos, as you probably want to use the (non-zypper) package manager to install software - and there will not be many repos for them. So to adress this, there comes the frustrating part of this answer. You can of course always build the Debian packaging system (dpkg/apt) from source.But I would be doing you a huge disservice by not telling you why you shouldn't do that, so I'll do that for you as well. SUSE is built around RPMs and while I like dpkg better than RPM, I would never try to convert an RPM based distro to a debian based distro because they're architected differently. This is partly taken from here, where there also is more Info.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.