README.md 1.21 KB
Newer Older
1
# dnf plugin
Marc Cornellà's avatar
Marc Cornellà committed
2

3
This plugin makes `dnf` usage easier by adding aliases for the most common commands.
Marc Cornellà's avatar
Marc Cornellà committed
4

5
6
7
8
9
10
11
`dnf` is the new package manager for RPM-based distributions, which replaces `yum`.

To use it, add `dnf` to the plugins array in your zshrc file:

```zsh
plugins=(... dnf)
```
Marc Cornellà's avatar
Marc Cornellà committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

## Aliases

| Alias | Command                 | Description              |
|-------|-------------------------|--------------------------|
| dnfl  | `dnf list`              | List packages            |
| dnfli | `dnf list installed`    | List installed packages  |
| dnfgl | `dnf grouplist`         | List package groups      |
| dnfmc | `dnf makecache`         | Generate metadata cache  |
| dnfp  | `dnf info`              | Show package information |
| dnfs  | `dnf search`            | Search package           |
| **Use `sudo`**                                             |
| dnfu  | `sudo dnf upgrade`      | Upgrade package          |
| dnfi  | `sudo dnf install`      | Install package          |
| dnfgi | `sudo dnf groupinstall` | Install package group    |
| dnfr  | `sudo dnf remove`       | Remove package           |
| dnfgr | `sudo dnf groupremove`  | Remove package group     |
| dnfc  | `sudo dnf clean all`    | Clean cache              |