mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 10:53:53 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user