33

What is the Suse version of apt-get or yum?

How do I 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)

Cadoiz
  • 1,446
  • 21
  • 31
Fergie
  • 5,933
  • 7
  • 38
  • 42
  • Why was this question closed as "off topic"? It is a fairly straightforward software question, with one, well-defined answer. It has also attracted several upvotes. Please re-open, or explain why the question is not valid. – Fergie Sep 19 '14 at 07:44
  • I imagine the issue is that it's a system administration question, not a programming question. It belongs on ServerFault. – GreenReaper Dec 18 '14 at 03:23
  • 1
    I'm pretty sure that ServerFault wasnt a thing when this comment was posted – Fergie Jan 22 '15 at 11:24
  • Somebody [did exactly that](https://serverfault.com/q/1085169/515968) [@GreenReaper](https://stackoverflow.com/questions/7158838/how-to-install-packages-from-command-line-on-suse#comment43505442_7158838) - I tried to give [a summarizing answer](https://serverfault.com/a/1085552/515968) there, but feel free to edit it or answer too @ all – Cadoiz Jan 06 '22 at 12:04

1 Answers1

40

zypper

Found a tutorial for you

And official documentation

Community
  • 1
  • 1
edvaldig
  • 2,301
  • 16
  • 17
  • 3
    Yes, that is the answer. Funny how this isnt more widely publicized. But great, thanks, that pointed me in the right direction. – Fergie Aug 23 '11 at 10:33
  • @edvaldig Please check out [this post](https://meta.stackexchange.com/q/225370/220651) about why link-only answers, such as this one, do not help future readers as much as they should. From my own experience, if you don't feel a question is worth putting time in to answer fully, it often means it's a low-quality question. – jpaugh Apr 09 '18 at 13:31
  • 1
    @edvaldig Wow! I just realized how old this answer is. You probably already know everything I just told you; and don't worry: some of my early answers suck, too. :-) – jpaugh Apr 09 '18 at 13:33
  • @jpaugh yeah community already edited the original link into the webarchive version of it some years ago :) good point regardless! – edvaldig Apr 16 '18 at 14:27