1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-11 15:15:52 +02:00
tldr/pages/linux/zypper.md

30 lines
696 B
Markdown
Raw Normal View History

2016-01-05 02:32:04 +08:00
# 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>.
2016-01-05 02:32:04 +08:00
- Synchronize list of packages and versions available:
2016-01-05 02:32:04 +08:00
2025-07-19 19:03:20 +03:00
`zypper {{[ref|refresh]}}`
2016-01-05 02:32:04 +08:00
- Install a new package:
2016-01-05 02:32:04 +08:00
2025-07-19 19:03:20 +03:00
`zypper {{[in|install]}} {{package}}`
2016-01-05 02:32:04 +08:00
- Remove a package:
2016-01-05 02:32:04 +08:00
2025-07-19 19:03:20 +03:00
`zypper {{[rm|remove]}} {{package}}`
2016-01-05 02:32:04 +08:00
- Upgrade installed packages to the newest available versions:
2016-01-05 02:32:04 +08:00
2025-07-19 19:03:20 +03:00
`zypper {{[up|update]}}`
2016-01-05 02:32:04 +08:00
- Search package via keyword:
2016-01-05 02:32:04 +08:00
2025-07-19 19:03:20 +03:00
`zypper {{[se|search]}} {{keyword}}`
- Show information related to configured repositories:
2025-07-19 19:03:20 +03:00
`zypper {{[lr|repos]}} --sort-by-priority`