mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
dnf, dnf4, dnf5: update pages (#20618)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2cc6bd6c7f
commit
64bde4af83
+7
-8
@@ -1,9 +1,8 @@
|
||||
# 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:
|
||||
|
||||
@@ -17,11 +16,11 @@
|
||||
|
||||
`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 ...}}`
|
||||
|
||||
@@ -31,8 +30,8 @@
|
||||
|
||||
- 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}}`
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# dnf4
|
||||
|
||||
> Package manager for RHEL 8/9 and older Fedora versions (pre-41).
|
||||
> 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>.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`sudo dnf4 {{[up|upgrade]}}`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`dnf4 {{[se|search]}} {{keyword1 keyword2 ...}}`
|
||||
|
||||
- Display details about a package:
|
||||
|
||||
`dnf4 {{[if|info]}} {{package}}`
|
||||
|
||||
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf4 {{[in|install]}} {{package1 package2 ...}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`sudo dnf4 {{[rm|remove]}} {{package1 package2 ...}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dnf4 {{[ls|list]}} --installed`
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf4 {{[wp|provides]}} {{command}}`
|
||||
|
||||
- View all past operations:
|
||||
|
||||
`dnf4 {{[hist|history]}}`
|
||||
+3
-34
@@ -1,38 +1,7 @@
|
||||
# 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