05.12.2012 Views

SUSE Manager Documentation

SUSE Manager Documentation

SUSE Manager Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 Reference Guide<br />

by repository alias and package name<br />

zypper in mozilla:MozillaFirefox<br />

In this example mozilla is the alias of the repository from which to install.<br />

by package name using wildcards<br />

The following command will install all packages that have names starting with<br />

“Moz”. Use with care, especially when removing packages.<br />

zypper in 'Moz*'<br />

by capability<br />

If you, for example, would like to install a perl module without knowing the name<br />

of the package, capabilities come in handy:<br />

zypper in 'perl(Time::ParseDate)'<br />

by capability and/or architecture and/or version<br />

Together with a capability you can specify an architecture (such as i586 or<br />

x86_64) and a version. The version must be preceded by an operator: < (lesser<br />

than), , >= (greater than or equal), > (greater<br />

than).<br />

zypper in 'firefox.x86_64'<br />

zypper in 'firefox>=3.5.3'<br />

zypper in 'firefox.x86_64>=3.5.3'<br />

by path<br />

Specify a local or remote path to a package:<br />

zypper in /tmp/install/MozillaFirefox.rpm<br />

zypper in<br />

http://download.opensuse.org/repositories/mozilla/<strong>SUSE</strong>_Factory/x86_64/MozillaFirefox-3.5.3-1.3.x86_64.rpm<br />

To install and remove packages simultaneously use the +/- modifiers. To install emacs<br />

and remove vim simultaneously, use:<br />

zypper install emacs -vim<br />

To remove emacs and install vim simultaneously, use:<br />

zypper remove emacs +vim<br />

To prevent the package name starting with the - being interpreted as a command option,<br />

always use it as the second argument. If this is not possible, precede it with --:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!