Error unable to run dnf localinstall *.rpm

huangapple go评论69阅读模式
英文:

Error unable to run dnf localinstall *.rpm

问题

我正在尝试在我的RHEL 8.7上安装Nginx。在无网络环境下,我无法运行dnf localinstall *.rpm,并且显示了一些错误。

我尝试检查/etc/yum.repos.d目录,但不确定该怎么做。请提供建议。

英文:

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.

答案1

得分: 2

我建议您检查您的 /etc/yum.repos.d 目录,看看是否有任何 repo 文件。如果有,请尝试在终端中编辑这些 repo 文件 并更改 gpgcheck=0type

  1. yum repolist
  2. yum list
  3. 再次尝试运行 dnf localinstall *.rpm

现在应该可以工作了。

英文:

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.

huangapple
  • 本文由 发表于 2023年6月6日 14:34:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76411993.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定