英文:
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=0 和 type:
yum repolist
yum list
- 再次尝试运行
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:
yum repolist
yum list
- Try to run
dnf localinstall *.rpm
again.
It should work now.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论