search on lynty.com

Related Articles

zypper+

Print PDF

http://en.opensuse.org/Zypper/Usage#Installing_Packages


General Usage


The general syntax of zypper is:

zypper [global-options] command [command-options] [arguments] ...

The components enclosed in brackets are not required, thus the simplest way to execute zypper is to type its name followed by a . For example, to apply needed patches to the system type:

zypper patch

Additionally, you can choose from one or more global options by typing them just before the command: (run the command, but don't ask me anything, decide on your own)

zypper --non-interactive patch

To use the options specific to particular command, type them right after the command: (apply needed patches to the system but don't ask me to confirm any licenses, i've read them all before)

zypper patch --auto-agree-with-licenses

Some of the commands require one or more arguments: (install or update mplayer package)

zypper in

stall mplayer

Some of the options also require an argument: (search for patterns)

zypper search -t pattern

All of the above combined: (install mplayer and amarok by using the factory repository only, be verbose)

zypper -v install --repo factory mplayer amarok
 

Related Articles+