Some options also require an argument. The following command will list all known
patterns:
zypper search -t pattern
You can combine all of the above. For example, the following command will install
the mplayer and amarok packages from the factory repository while being verbose:
zypper -v install --from factory mplayer amarok
The --from option makes sure to keep all repositories enabled (for solving any de-
pendencies) while requesting the package from the specied repository.
Most Zypper commands have a dry-run option that does a simulation of the given
command. It can be used for test purposes.
zypper remove --dry-run MozillaFirefox
9.1.2 Installing and Removing Software with Zypper
To install or remove packages use the following commands:
zypper install
package_name
zypper remove
package_name
Zypper knows various ways to address packages for the install and remove com-
mands:
by the exact package name (and version number)
zypper install MozillaFirefox
or
zypper install MozillaFirefox-3.5.3
by repository alias and package name
zypper install mozilla:MozillaFirefox
Where mozilla is the alias of the repository from which to install.
by package name using wildcards
The following command will install all packages that have names starting with
“Moz”. Use with care, especially when removing packages.
zypper install 'Moz*'
by capability
For example, if you would like to install a perl module without knowing the name
of the package, capabilities come in handy:
zypper install 'perl(Time::ParseDate)'
112 Start-Up