mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-28 01:55:27 +02:00
989 B
989 B
dnf
Package management utility for RHEL, Fedora, and CentOS (replaces yum). Some subcommands such as
group
andconfig-manager
have their own usage documentation. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://dnf.readthedocs.io.
- Upgrade installed packages to the newest available versions:
sudo dnf {{[up|upgrade]}}
- Search packages via keywords:
dnf {{[se|search]}} {{keyword1 keyword2 ...}}
- Display details about a package:
dnf {{[if|info]}} {{package}}
- Install a new package (use
--assumeyes
to confirm all prompts automatically):
sudo dnf {{[in|install]}} {{package1 package2 ...}}
- Remove a package:
sudo dnf {{[rm|remove]}} {{package1 package2 ...}}
- List installed packages:
dnf {{[ls|list]}} --installed
- Find which packages provide a given command:
dnf {{[wp|provides]}} {{command}}
- View all past operations:
dnf {{[hist|history]}}