2018-10-02 21:40:26 +02:00
|
|
|
# suse
|
|
|
|
|
2024-08-09 09:44:46 +02:00
|
|
|
Aliases for [Zypper](https://en.opensuse.org/Portal:Zypper) according to the official Zypper's alias
|
2018-10-02 21:40:26 +02:00
|
|
|
|
2021-08-20 12:25:58 +02:00
|
|
|
To use it add `suse` to the plugins array in you zshrc file.
|
2018-10-02 21:40:26 +02:00
|
|
|
|
|
|
|
```zsh
|
|
|
|
plugins=(... suse)
|
|
|
|
```
|
|
|
|
|
2024-08-09 09:44:46 +02:00
|
|
|
**Maintainer**: [r-darwish](https://github.com/r-darwish)
|
|
|
|
|
2018-10-02 21:40:26 +02:00
|
|
|
## Main commands
|
|
|
|
|
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ---------------- | ----------------------------- | -------------------------------------------------------------- |
|
|
|
|
| z | `sudo zypper` | call zypper |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zh | `zypper -h` | print help |
|
|
|
|
| zhse | `zypper -h se` | print help for the search command |
|
|
|
|
| zlicenses | `zypper licenses` | prints a report about licenses and EULAs of installed packages |
|
2018-10-02 21:40:26 +02:00
|
|
|
| zps | `sudo zypper ps` | list process using deleted files |
|
|
|
|
| zshell | `sudo zypper shell` | open a zypper shell session |
|
|
|
|
| zsource-download | `sudo zypper source-download` | download source rpms for all installed packages |
|
2019-03-22 20:32:29 +01:00
|
|
|
| ztos | `zypper tos` | shows the ID string of the target operating system |
|
|
|
|
| zvcmp | `zypper vcmp` | tell whether version1 is older or newer than version2 |
|
2018-10-02 21:40:26 +02:00
|
|
|
|
|
|
|
## Packages commands
|
|
|
|
|
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ----- | ----------------- | ------------------------------------------------------------------ |
|
|
|
|
| zin | `sudo zypper in` | install packages |
|
|
|
|
| zinr | `sudo zypper inr` | install newly added packages recommended by already installed ones |
|
|
|
|
| zrm | `sudo zypper rm` | remove packages |
|
|
|
|
| zsi | `sudo zypper si` | install source of a package |
|
|
|
|
| zve | `sudo zypper ve` | verify dependencies of installed packages |
|
|
|
|
|
|
|
|
## Updates commands
|
|
|
|
|
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ------ | ------------------- | ---------------------- |
|
|
|
|
| zdup | `sudo zypper dup` | upgrade packages |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zlp | `zypper lp` | list necessary patches |
|
|
|
|
| zlu | `zypper lu` | list updates |
|
2018-10-02 21:40:26 +02:00
|
|
|
| zpchk | `sudo zypper pchk` | check for patches |
|
|
|
|
| zup | `sudo zypper up` | update packages |
|
|
|
|
| zpatch | `sudo zypper patch` | install patches |
|
|
|
|
|
|
|
|
## Request commands
|
|
|
|
|
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ------------- | -------------------------- | ---------------------------------------------------- |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zif | `zypper if` | display info about packages |
|
|
|
|
| zpa | `zypper pa` | list packages |
|
|
|
|
| zpatch-info | `zypper patch-info` | display info about patches |
|
|
|
|
| zpattern-info | `zypper pattern-info` | display info about patterns |
|
|
|
|
| zproduct-info | `zypper product-info` | display info about products |
|
|
|
|
| zpch | `zypper pch` | list all patches |
|
|
|
|
| zpd | `zypper pd` | list products |
|
|
|
|
| zpt | `zypper pt` | list patterns |
|
|
|
|
| zse | `zypper se` | search for packages |
|
|
|
|
| zwp | `zypper wp` | list all packages providing the specified capability |
|
2018-10-02 21:40:26 +02:00
|
|
|
|
2021-08-20 12:25:58 +02:00
|
|
|
NOTE: `--no-refresh` is passed to zypper for speeding up the calls and avoid errors due to lack
|
|
|
|
of root privileges. If you need to refresh the repositories, call `sudo zypper ref` (`zref` alias)
|
2021-12-01 12:20:31 +01:00
|
|
|
before running these aliases.
|
2021-08-20 12:25:58 +02:00
|
|
|
|
|
|
|
Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798).
|
|
|
|
|
2018-10-02 21:40:26 +02:00
|
|
|
## Repositories commands
|
|
|
|
|
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ----- | ------------------- | ---------------------------------------- |
|
|
|
|
| zar | `sudo zypper ar` | add a repository |
|
|
|
|
| zcl | `sudo zypper clean` | clean cache |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zlr | `zypper lr` | list repositories |
|
2018-10-02 21:40:26 +02:00
|
|
|
| zmr | `sudo zypper mr` | modify repositories |
|
|
|
|
| znr | `sudo zypper nr` | rename repositories (for the alias only) |
|
|
|
|
| zref | `sudo zypper ref` | refresh repositories |
|
|
|
|
| zrr | `sudo zypper rr` | remove repositories |
|
|
|
|
|
|
|
|
## Services commands
|
2024-08-09 09:44:46 +02:00
|
|
|
|
2018-10-02 21:40:26 +02:00
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ----- | ------------------ | -------------------------------------------------------------- |
|
|
|
|
| zas | `sudo zypper as` | adds a service specified by URI to the system |
|
|
|
|
| zms | `sudo zypper ms` | modify properties of specified services |
|
|
|
|
| zrefs | `sudo zypper refs` | refreshing a service mean executing the service's special task |
|
|
|
|
| zrs | `sudo zypper rs` | remove specified repository index service from the system |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zls | `zypper ls` | list services defined on the system |
|
2018-10-02 21:40:26 +02:00
|
|
|
|
|
|
|
## Package Locks Management commands
|
2024-08-09 09:44:46 +02:00
|
|
|
|
2018-10-02 21:40:26 +02:00
|
|
|
| Alias | Commands | Description |
|
|
|
|
| ----- | ---------------- | ----------------------------------- |
|
|
|
|
| zal | `sudo zypper al` | add a package lock |
|
|
|
|
| zcl | `sudo zypper cl` | remove unused locks |
|
2019-03-22 20:32:29 +01:00
|
|
|
| zll | `zypper ll` | list currently active package locks |
|
2018-10-02 21:40:26 +02:00
|
|
|
| zrl | `sudo zypper rl` | remove specified package lock |
|