From 520894e623a6976594f588c992e3d2d37c0fa18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 1 Jun 2016 04:47:56 +0200 Subject: [PATCH] Prefer 'dnf' over 'yum' for template update QubesOS/qubes-issues#1282 --- qubes-rpc/qubes.InstallUpdatesGUI | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.InstallUpdatesGUI b/qubes-rpc/qubes.InstallUpdatesGUI index 4ad107e..3ae7665 100755 --- a/qubes-rpc/qubes.InstallUpdatesGUI +++ b/qubes-rpc/qubes.InstallUpdatesGUI @@ -4,7 +4,9 @@ # If you are creating package for other distribution, feel free to replace it # with distribution-specific script. -if [ -e /etc/redhat-release ]; then +if [ -e /etc/redhat-release -a -x /usr/bin/dnf ]; then + xterm -title update -e su -l -c 'dnf update --best; echo Done. Press Enter to exit.; read x' +elif [ -e /etc/redhat-release -a -x /usr/bin/yum ]; then xterm -title update -e su -l -c 'yum update; echo Done. Press Enter to exit.; read x' elif [ -e /etc/debian_version ]; then xterm -title update -e su -l -c 'apt-get update && apt-get -V dist-upgrade; echo Done. Press Enter to exit.; read x'