From 160b91ce9594c41eb9ebaf764f03a231b76a4d71 Mon Sep 17 00:00:00 2001 From: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Sun, 17 Jul 2022 22:33:59 +0530 Subject: [PATCH] dnf: add history example (#8220) The history command shows well formatted installation log. Gives quick idea about what has happened so far. Also, retrieve the list and repeat the same operations on the new system to get up and running quickly. --- pages/linux/dnf.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/dnf.md b/pages/linux/dnf.md index 190402ba05..1188e301cc 100644 --- a/pages/linux/dnf.md +++ b/pages/linux/dnf.md @@ -15,14 +15,10 @@ `dnf info {{package}}` -- Install a new package: +- Install a new package (use `-y` to confirm all prompts automatically): `sudo dnf install {{package}}` -- Install a new package and assume yes to all questions: - -`sudo dnf -y install {{package}}` - - Remove a package: `sudo dnf remove {{package}}` @@ -34,3 +30,7 @@ - Find which packages provide a given file: `dnf provides {{file}}` + +- View all past operations: + +`dnf history`