zypper

zypper Cheatsheet #

zypper is a command-line package management tool used on openSUSE and SUSE Linux Enterprise systems. It helps in installing, updating, and removing software packages.

Basic Commands #

Command/OptionExampleDescription
zypper installzypper install <package>Install a package
zypper removezypper remove <package>Remove a package
zypper updatezypper updateUpdate all installed packages
zypper upgradezypper upgradeUpgrade all installed packages
zypper infozypper info <package>Show information about a package

Package Management #

Command/OptionExampleDescription
zypper searchzypper search <package>Search for a package
zypper info -izypper info -i <package>Show detailed information about a package
zypper patternszypper patternsList all available patterns
zypper install --oldpackagezypper install --oldpackage <package>Install an older version of a package

Repository Management #

Command/OptionExampleDescription
zypper arzypper ar <repo_url> <repo_alias>Add a new repository
zypper rrzypper rr <repo_alias>Remove a repository
zypper refzypper refRefresh repository information
zypper reposzypper reposList all repositories

Configuration #

Command/OptionExampleDescription
zypper cleanzypper cleanClean up cached data
zypper dist-upgradezypper dist-upgradeUpgrade the system to a new distribution
zypper dupzypper dupPerform a distribution upgrade

Advanced Commands #

Command/OptionExampleDescription
zypper lockzypper lock <package>Lock a package to prevent updates
zypper unlockzypper unlock <package>Unlock a package to allow updates
zypper lpzypper lpList all locked packages

This cheatsheet provides essential zypper commands for package management on openSUSE and SUSE Linux Enterprise systems.

zypper

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.