Refactor the package_name lines to add rpm file extension to solve package installation error