[Libguestfs] [PATCH] customize: Make dnf upgrade to the latest versions of packages.

Richard W.M. Jones rjones at redhat.com
Tue Aug 4 21:38:48 UTC 2015


I discovered that 'dnf upgrade' doesn't actually upgrade to the latest
versions of packages unless you also supply the '--best' flag.

This also changes update -> upgrade, since apparently 'dnf update'
is deprecated.
---
 customize/customize_run.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index bce0aca..828c711 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -123,7 +123,7 @@ exec >>%s 2>&1
         apt-get $apt_opts upgrade
       "
     | "dnf" ->
-      sprintf "dnf -y update"
+      sprintf "dnf -y --best upgrade"
     | "pisi" ->
       sprintf "pisi upgrade"
     | "pacman" ->
-- 
2.5.0




More information about the Libguestfs mailing list