From 0aa346093a9987e7ee54fbba0a87d1122deda5c4 Mon Sep 17 00:00:00 2001 From: tianci Date: Wed, 25 May 2022 19:19:48 +0800 Subject: [PATCH 1/2] Delete extra spaces in the text. Supplement to the content of yumdownloader command --- docs/books/admin_guide/04-advanced-commands.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/books/admin_guide/04-advanced-commands.md b/docs/books/admin_guide/04-advanced-commands.md index 228d98309f..f666c84496 100644 --- a/docs/books/admin_guide/04-advanced-commands.md +++ b/docs/books/admin_guide/04-advanced-commands.md @@ -264,16 +264,18 @@ Examples of use: * `yumdownloader` command: -The `yumdownloader` command downloads RPM packages from the repositories. +The `yumdownloader` command downloads RPM packages from the repositories. Equivalent to `dnf download --downloadonly --downloaddir ./ package-name` !!! Note This command is very useful to quickly build a local repository of a few rpm! -Example: `yumdownloader` will download the _repoquery_ rpm package and all its dependencies: +Example: `yumdownloader` will download the _samba_ rpm package and all its dependencies: ``` -$ yumdownloader --destdir /var/tmp -- resolve repoquery +$ yumdownloader --destdir /var/tmp --resolve samba +or +$ dnf download --downloadonly --downloaddir /var/tmp --resolve samba ``` | Options | Comments | From 6657bf8113b525c84c522bd21e2f9ad19c6c0376 Mon Sep 17 00:00:00 2001 From: wale soyinka Date: Wed, 25 May 2022 08:53:14 -0400 Subject: [PATCH 2/2] Update 04-advanced-commands.md --- docs/books/admin_guide/04-advanced-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/04-advanced-commands.md b/docs/books/admin_guide/04-advanced-commands.md index f666c84496..01ac0ea610 100644 --- a/docs/books/admin_guide/04-advanced-commands.md +++ b/docs/books/admin_guide/04-advanced-commands.md @@ -268,7 +268,7 @@ The `yumdownloader` command downloads RPM packages from the repositories. Equiv !!! Note - This command is very useful to quickly build a local repository of a few rpm! + This command is very useful to quickly build a local repository of a few rpms! Example: `yumdownloader` will download the _samba_ rpm package and all its dependencies: