From 9b5cdbcc789b6bfb6890431b53e570e47cc7409a Mon Sep 17 00:00:00 2001 From: Abe Al-Saleh Date: Thu, 8 Oct 2015 08:20:31 -0400 Subject: [PATCH] yum localinstall is deprecated, install will handle local files as well. What's more, in newer versions of fedora (and eventually in redhat/centos) yum is superceded by dnf, which doesn't have the localinstall option. It only supports install. Yum in these versions passes all commands on to dnf, so using yum localinstall in these versions throws an error. Because older versions of yum allow install to do localinstalls, this seems like the best middle ground. --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index f783d2c..3976f46 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -289,7 +289,7 @@ fi if [ "${AUTOINSTALL}" == "yes" ]; then if [ "${REDHAT}" == "yes" ]; then - sudo yum -y localinstall "${DOWNLOADDIR}/${FILENAME}" + sudo yum -y install "${DOWNLOADDIR}/${FILENAME}" else sudo dpkg -i "${DOWNLOADDIR}/${FILENAME}" fi