Files
cheatsheet-tldr/tldr/linux/zypper
2025-11-10 00:21:37 +00:00

35 lines
808 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# zypper
> SUSE & openSUSE package management utility.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://en.opensuse.org/SDB:Zypper_manual>.
- Synchronize list of packages and versions available:
`sudo zypper {{[ref|refresh]}}`
- Install a new package:
`sudo zypper {{[in|install]}} {{package}}`
- Remove a package:
`sudo zypper {{[rm|remove]}} {{package}}`
- Upgrade installed packages to the newest available versions:
`sudo zypper {{[up|update]}}`
- Search package via keyword:
`zypper {{[se|search]}} {{keyword}}`
- Show information related to configured repositories:
`zypper {{[lr|repos]}} --sort-by-priority`