README.md 5.68 KB
Newer Older
gramps's avatar
gramps committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# suse

**Maintainer**: [r-darwish](https://github.com/r-darwish)

 Alias for Zypper according to the official Zypper's alias

 To use it add `suse` to the plugins array in you zshrc file.

```zsh
plugins=(... suse)
```

## Main commands

| Alias            | Commands                      | Description                                                    |
| ---------------- | ----------------------------- | -------------------------------------------------------------- |
| z                | `sudo zypper`                 | call zypper                                                    |
18
19
20
| 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 |
gramps's avatar
gramps committed
21
22
23
| 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                |
24
25
| ztos             | `zypper tos`                  | shows the ID string of the target operating system             |
| zvcmp            | `zypper vcmp`                 | tell whether version1 is older or newer than version2          |
gramps's avatar
gramps committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

## 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       |
42
43
| zlp    | `zypper lp`         | list necessary patches |
| zlu    | `zypper lu`         | list updates           |
gramps's avatar
gramps committed
44
45
46
47
48
49
50
51
| zpchk  | `sudo zypper pchk`  | check for patches      |
| zup    | `sudo zypper up`    | update packages        |
| zpatch | `sudo zypper patch` | install patches        |

## Request commands

| Alias         | Commands                   | Description                                          |
| ------------- | -------------------------- | ---------------------------------------------------- |
52
53
54
55
56
57
58
59
60
61
| 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 |
gramps's avatar
gramps committed
62
63
64
65
66
67
68

## Repositories commands

| Alias | Commands            | Description                              |
| ----- | ------------------- | ---------------------------------------- |
| zar   | `sudo zypper ar`    | add a repository                         |
| zcl   | `sudo zypper clean` | clean cache                              |
69
| zlr   | `zypper lr`         | list repositories                        |
gramps's avatar
gramps committed
70
71
72
73
74
75
76
77
78
79
80
81
| 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
| 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      |
82
| zls   | `zypper ls`        | list services defined on the system                            |
gramps's avatar
gramps committed
83
84
85
86
87
88

## Package Locks Management commands
| Alias | Commands         | Description                         |
| ----- | ---------------- | ----------------------------------- |
| zal   | `sudo zypper al` | add a package lock                  |
| zcl   | `sudo zypper cl` | remove unused locks                 |
89
| zll   | `zypper ll`      | list currently active package locks |
gramps's avatar
gramps committed
90
| zrl   | `sudo zypper rl` | remove specified package lock       |