Richard W.M. Jones
2015-Aug-04 21:38 UTC
[Libguestfs] [PATCH] customize: Make dnf upgrade to the latest versions of packages.
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
Pino Toscano
2015-Aug-05 13:41 UTC
[Libguestfs] [PATCH] customize: Make dnf upgrade to the latest versions of packages.
On Tuesday 04 August 2015 22:38:48 Richard W.M. Jones wrote:> 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" ->LGTM. Thanks, -- Pino Toscano -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: This is a digitally signed message part. URL: <http://listman.redhat.com/archives/libguestfs/attachments/20150805/d791e35d/attachment.sig>