From c7ae6b3d8a75f4f313097690c0bc74baf5759d9d Mon Sep 17 00:00:00 2001 From: jn64 <23169302+jn64@users.noreply.github.com> Date: Thu, 28 May 2020 20:07:09 +0800 Subject: [PATCH] dnf: add and reorder examples (#4063) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Zlatan Vasović Co-authored-by: Starbeamrainbowlabs --- pages/linux/dnf.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pages/linux/dnf.md b/pages/linux/dnf.md index 841011a84..459981647 100644 --- a/pages/linux/dnf.md +++ b/pages/linux/dnf.md @@ -1,6 +1,19 @@ # dnf > Package management utility for RHEL, Fedora, and CentOS (replaces yum). +> More information: . + +- Upgrade installed packages to the newest available versions: + +`sudo dnf upgrade` + +- Search packages via keywords: + +`dnf search {{keywords}}` + +- Display details about a package: + +`dnf info {{package}}` - Install a new package: @@ -14,18 +27,10 @@ `sudo dnf remove {{package}}` -- Upgrade installed packages to newest available versions: - -`sudo dnf upgrade` - - List installed packages: `dnf list --installed` -- Search packages via keyword: +- Find which packages provide a given file: -`sudo dnf search {{keyword}}` - -- Find which packages provide a given value: - -`sudo dnf provides {{value}}` +`dnf provides {{file}}`