From 3b7038d9cdfbd3432ecf4df64571b3b943b258b8 Mon Sep 17 00:00:00 2001 From: vicsar <7411419+vicsar@users.noreply.github.com> Date: Wed, 10 Apr 2024 09:55:07 -0600 Subject: [PATCH] dnf5 add page (#12626) Co-authored-by: K.B.Dharun Krishna Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/linux/dnf5.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pages/linux/dnf5.md diff --git a/pages/linux/dnf5.md b/pages/linux/dnf5.md new file mode 100644 index 0000000000..ff4bc4e742 --- /dev/null +++ b/pages/linux/dnf5.md @@ -0,0 +1,38 @@ +# 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 . +> More information: . + +- Upgrade installed packages to the newest available versions: + +`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`