mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 00:54:58 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,39 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf5
|
||||
|
||||
> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).
|
||||
> DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
|
||||
> This command is an alias of `dnf`.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
- View documentation for the original command:
|
||||
|
||||
`sudo dnf5 upgrade`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`dnf5 search {{keyword1 keyword2 ...}}`
|
||||
|
||||
- Display details about a package:
|
||||
|
||||
`dnf5 info {{package}}`
|
||||
|
||||
- Install new packages (Note: Use `-y` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf5 install {{package1 package2 ...}}`
|
||||
|
||||
- Remove packages:
|
||||
|
||||
`sudo dnf5 remove {{package1 package2 ...}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dnf5 list --installed`
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf5 provides {{command}}`
|
||||
|
||||
- Remove or expire cached data:
|
||||
|
||||
`sudo dnf5 clean all`
|
||||
`tldr dnf`
|
||||
|
||||
Reference in New Issue
Block a user