mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
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.
This commit is contained in:
parent
b809a59b27
commit
9b5cdbcc78
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue