From 0b709ee7661524d08ee1759a3b22b7cb9df20164 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 16 Dec 2021 16:51:45 +0100
Subject: [PATCH] packages2install: replace dnf with yum

---
 check_packages2install | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_packages2install b/check_packages2install
index 420f40f..b9717be 100755
--- a/check_packages2install
+++ b/check_packages2install
@@ -102,7 +102,8 @@ function pkgPamac(){
 # - Centos 8
 function pkgYum(){
 
-    local sum=$( _exec "sudo dnf check-update" )
+    # local sum=$( _exec "sudo dnf check-update" )
+    local sum=$( _exec "sudo yum -y check-update" )
 
     local iStart=3
     # detect number of line containing "Obsoleting Packages"
-- 
GitLab