Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-12 00:23:19 +00:00
parent 66b30baed4
commit 4c553ecd81
7 changed files with 92 additions and 44 deletions

View File

@@ -5,10 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# dnf
> Package management utility for RHEL, Fedora, and CentOS (replaces yum).
> Some subcommands such as `group` and `config-manager` have their own usage documentation.
> Package manager for Fedora 41+ and RHEL 10.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html>.
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
- Upgrade installed packages to the newest available versions:
@@ -22,11 +21,11 @@ source: https://github.com/tldr-pages/tldr.git
`dnf {{[if|info]}} {{package}}`
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
- Install new packages (use `--assumeyes` to confirm all prompts automatically):
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
- Remove a package:
- Remove packages:
`sudo dnf {{[rm|remove]}} {{package1 package2 ...}}`
@@ -36,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
- Find which packages provide a given command:
`dnf {{[wp|provides]}} {{command}}`
`dnf provides {{command}}`
- View all past operations:
- Clean cached data:
`dnf {{[hist|history]}}`
`sudo dnf clean {{all|dbcache|expire-cache|metadata|packages}}`