zypper

投稿日:

マニュアル

概要(リンクをクリックするとGoogle翻訳)

Manage packages on SUSE and openSUSE using the zypper and rpm tools.

必要条件

  • zypper >= 1.0 # included in openSuSE >= 11.1 or SuSE Linux Enterprise Server/Desktop >= 11.0
  • python-xml
  • rpm

ステータス

プレビュー(preview)

オプション

パラメータ 選択肢/デフォルト コメント(リンクをクリックするとGoogle翻訳)
disable_gpg_check
bool
選択肢
  • no ←
  • yes
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
bool
選択肢
  • no
  • yes ←
Corresponds to the --no-recommends option for zypper. Default behavior (yes) modifies zypper's default behavior; no does install recommended packages.
extra_args

2.4で追加
Add additional options to zypper command. Options should be supplied in a single line as if given in the command line.
extra_args_precommand

2.6で追加
Add additional global target options to zypper. Options should be supplied in a single line as if given in the command line.
force
bool
2.2で追加
選択肢
  • no ←
  • yes
Adds --force option to zypper. Allows to downgrade packages and change vendor or architecture.
name
必須
Package name name or package specifier or a list of either. Can include a version like name=1.0, name>3.4 or name<=2.7. If a version is given, oldpackage is implied and zypper is allowed to update the package within the version range given. You can also pass a url or a local path to a rpm file. When using state=latest, this can be '*', which updates all installed packages.

別名: pkg
oldpackage
bool
2.2で追加
選択肢
  • no ←
  • yes
Adds --oldpackage option to zypper. Allows to downgrade packages with less side-effects than force. This is implied as soon as a version is specified as part of the package name.
state
選択肢
  • present
  • latest
  • absent
  • dist-upgrade
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. dist-upgrade will make sure the latest version of all installed packages from all enabled repositories is installed. When using dist-upgrade, name should be '*'.
type

2.0で追加
選択肢
  • package
  • patch
  • pattern
  • product
  • srcpackage
  • application
The type of package to be operated on.
update_cache
bool
2.2で追加
選択肢
  • no ←
  • yes
Run the equivalent of zypper refresh before the operation. Disabled in check mode.

別名: refresh

ソースコード

packaging/os/zypper.py