Package / system tool

zypper — SUSE family

zypper is used for package management or system administration in the SUSE family. Consult the distribution manual for release-specific behaviour.

Availability: openSUSE and SUSE Linux Enterprise; commands differ by product and transactional mode.中文

Syntax

zypper [global-options] command [options]

Examples

zypper is used for package management or system administration in the SUSE family. Consult the distribution manual for release-specific behaviour.

sudo zypper refresh

Show command help and options where supported.

zypper --help

Parameters, options and clauses

Option / clauseDescription
refreshRefresh repository metadata.
install / remove <package>Install or remove packages; inspect dependency changes.
search <term>Search package names and descriptions.
update / dupUpdate packages or perform a distribution upgrade; dup can change many packages.
--dry-runShow planned changes without applying them.
--non-interactiveSuppress interactive prompts; use carefully in scripts.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory