Install Local RPM with yum Command

The yum command is created to manage, install, update and remove RPM-based packages in an automated way. By default, the yum command uses online repositories to download RPM packages and install them with their dependencies. But the yum command can be also used to install RPM packages locally without the need for the internet.

Install Local RPM Package with “yum install” Command

The yum install command can be used to install local RPM packages. This is supported by modern versions of the yum command. The RPM package name and path are provided as parameters to the yum install command.

$ sudo yum install httpd.rpm

If the RPM package file is different than the current working directory we should provide the RPM file name with its path information.

$ sudo yum install /home/ismail/httpd.rpm

Install Local RPM Package with “yum localinstall” Command

In the old times about 5-6 years ago the yum command provide the yum localinstall command to install local RPM package file.

$ sudo yum localinstall httpd.rpm

If the RPM package file is different than the current working directory we should provide the RPM file name with its path information.

$ sudo yum install /home/ismail/httpd.rpm

Leave a Comment