Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error unable to run dnf localinstall *.rpm

I am trying to install Nginx on my rhel 8.7. I am not able to run dnf localinstall *.rpm on a non-internet environment and it is showing some errors.

I tried check the /etc/yum.repos.d directory but not sure what to do. Please advise.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I suggest you to check your /etc/yum.repos.d and check if there are any repo files in the directory. If there are, try to edit the repo files and change the gpgcheck=0 and type in the terminal:

  1. yum repolist
  2. yum list
  3. Try to run dnf localinstall *.rpm again.

It should work now.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading