3 **Maintainer**: [r-darwish](https://github.com/r-darwish)
5 Alias for Zypper according to the official Zypper's alias
7 To use it add `suse` to the plugins array in you zshrc file.
15 | Alias | Commands | Description |
16 | ---------------- | ----------------------------- | -------------------------------------------------------------- |
17 | z | `sudo zypper` | call zypper |
18 | zh | `zypper -h` | print help |
19 | zhse | `zypper -h se` | print help for the search command |
20 | zlicenses | `zypper licenses` | prints a report about licenses and EULAs of installed packages |
21 | zps | `sudo zypper ps` | list process using deleted files |
22 | zshell | `sudo zypper shell` | open a zypper shell session |
23 | zsource-download | `sudo zypper source-download` | download source rpms for all installed packages |
24 | ztos | `zypper tos` | shows the ID string of the target operating system |
25 | zvcmp | `zypper vcmp` | tell whether version1 is older or newer than version2 |
29 | Alias | Commands | Description |
30 | ----- | ----------------- | ------------------------------------------------------------------ |
31 | zin | `sudo zypper in` | install packages |
32 | zinr | `sudo zypper inr` | install newly added packages recommended by already installed ones |
33 | zrm | `sudo zypper rm` | remove packages |
34 | zsi | `sudo zypper si` | install source of a package |
35 | zve | `sudo zypper ve` | verify dependencies of installed packages |
39 | Alias | Commands | Description |
40 | ------ | ------------------- | ---------------------- |
41 | zdup | `sudo zypper dup` | upgrade packages |
42 | zlp | `zypper lp` | list necessary patches |
43 | zlu | `zypper lu` | list updates |
44 | zpchk | `sudo zypper pchk` | check for patches |
45 | zup | `sudo zypper up` | update packages |
46 | zpatch | `sudo zypper patch` | install patches |
50 | Alias | Commands | Description |
51 | ------------- | -------------------------- | ---------------------------------------------------- |
52 | zif | `zypper if` | display info about packages |
53 | zpa | `zypper pa` | list packages |
54 | zpatch-info | `zypper patch-info` | display info about patches |
55 | zpattern-info | `zypper pattern-info` | display info about patterns |
56 | zproduct-info | `zypper product-info` | display info about products |
57 | zpch | `zypper pch` | list all patches |
58 | zpd | `zypper pd` | list products |
59 | zpt | `zypper pt` | list patterns |
60 | zse | `zypper se` | search for packages |
61 | zwp | `zypper wp` | list all packages providing the specified capability |
63 NOTE: `--no-refresh` is passed to zypper for speeding up the calls and avoid errors due to lack
64 of root privileges. If you need to refresh the repositories, call `sudo zypper ref` (`zref` alias)
65 before running these aliases.
67 Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798).
69 ## Repositories commands
71 | Alias | Commands | Description |
72 | ----- | ------------------- | ---------------------------------------- |
73 | zar | `sudo zypper ar` | add a repository |
74 | zcl | `sudo zypper clean` | clean cache |
75 | zlr | `zypper lr` | list repositories |
76 | zmr | `sudo zypper mr` | modify repositories |
77 | znr | `sudo zypper nr` | rename repositories (for the alias only) |
78 | zref | `sudo zypper ref` | refresh repositories |
79 | zrr | `sudo zypper rr` | remove repositories |
82 | Alias | Commands | Description |
83 | ----- | ------------------ | -------------------------------------------------------------- |
84 | zas | `sudo zypper as` | adds a service specified by URI to the system |
85 | zms | `sudo zypper ms` | modify properties of specified services |
86 | zrefs | `sudo zypper refs` | refreshing a service mean executing the service's special task |
87 | zrs | `sudo zypper rs` | remove specified repository index service from the system |
88 | zls | `zypper ls` | list services defined on the system |
90 ## Package Locks Management commands
91 | Alias | Commands | Description |
92 | ----- | ---------------- | ----------------------------------- |
93 | zal | `sudo zypper al` | add a package lock |
94 | zcl | `sudo zypper cl` | remove unused locks |
95 | zll | `zypper ll` | list currently active package locks |
96 | zrl | `sudo zypper rl` | remove specified package lock |