Learn to manage packages, repositories and updates quickly with the zypper command. 03.06.2026 | reading time: 3 min zypper is the command line package manager for openSUSE and SUSE Linux Enterprise; use it to refresh repositories, install and remove software, apply patches and perform distribution upgrades quickly and reproducibly. Install nginx in two commands Follow these exact commands to refresh metadata and install a web server; run the commands as root or with sudo and observe the output to learn how zypper reports progress and transactions: ``` sudo zypper refresh Retrieving repository 'openSUSE-Leap-15.3-OSS' metadata... Repository refresh completed. sudo zypper install -y nginx Loading repository data... Resolving package dependencies... The following NEW package is going to be installed: nginx Overall download size: 1.2 MiB. Already cached: 0 B. After the operation, additional 4.5 MiB will be used. Proceed? [y/n/...?] (y): y Installing: nginx-1.14.2-3.1.x86_64 ...................................[done] Service 'nginx' will be enabled and started. ``` This shows refresh, dependency resolution and an unattended install with automatic service enable. Manage repositories and updates List and inspect repositories with `zypper lr -u`, add a repo with `zypper ar`, remove one with `zypper rr`, apply security patches with `zypper patch` and perform a distribution upgrade with `zypper dup`; use these commands routinely to keep systems consistent and to control sources of packages. Useful options and safety tips Work non-interactively in automation with `--non-interactive`, auto-import vendor keys with `--gpg-auto-import-keys`, preview operations using `zypper list-updates` and always run `zypper refresh` before installs; prefer `zypper patch` for safe updates and `zypper dup` only when intentionally switching releases or vendor stacks. Complementary tools in the SUSE stack zypper works on top of the RPM format and the libzypp dependency solver, YaST provides GUI management for the same tasks and the `rpm` tool is available for low level package queries or manual inspections. Keep learning and certify skills Practice on a VM, automate zypper with scripts and build a habit of reviewing repo sources and changelogs; expand knowledge with certification tracks such as CompTIA Linux+ or LPIC-1 and use bitsandbytes.academy for intensive exam preparation and hands-on labs. Join Bits & Bytes Academy First class LINUX exam preparation. utilities infrastructure setup