Manage packages on SUSE and openSUSE using the zypper and rpm tools.
- zypper
- rpm
parameter | required | default | choices | comments |
---|---|---|---|---|
disable_gpg_check |
no | no |
|
Whether to disable to GPG signature checking of the package signature being installed. Has an effect only if state is present or latest. |
disable_recommends (added in 1.8) |
no | yes |
|
Corresponds to the --no-recommends option for zypper. Default behavior (yes ) modifies zypper's default behavior; no does install recommended packages. |
name |
yes | package name or package specifier with version name or name-1.0 . You can also pass a url or a local path to a rpm file.aliases: pkg | ||
state |
no | present |
|
present will make sure the package is installed. latest will make sure the latest version of the package is installed. absent will make sure the specified package is not installed. |
type (added in 2.0) |
no | package |
|
The type of package to be operated on. |
# Install "nmap" - zypper: name=nmap state=present # Install apache2 with recommended packages - zypper: name=apache2 state=present disable_recommends=no # Remove the "nmap" package - zypper: name=nmap state=absent # Install the nginx rpm from a remote repo - zypper: name=http://nginx.org/packages/sles/12/x86_64/RPMS/nginx-1.8.0-1.sles12.ngx.x86_64.rpm state=present # Install local rpm file - zypper: name=/tmp/fancy-software.rpm state=present
For more information on what this means please read Extras Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.