Question: what is the difference between yum install and yum localinstall?
Answer: In RHEL 6 and later, yum install accepts both package names and local filenames, so localinstall is no longer necesary, but it's included for backward compatibility. In RHEL 8, dnf localinstall is simply an alias for dnf install .