如何通过 https Repo 在 CentOS 中使用 yum 安装?

如何通过 https Repo 在 CentOS 中使用 yum 安装?

我想用 yum 安装yum install -y yum-utils这个软件包,但我公司的政策不允许 http 链接。 yum 正在寻找此链接以获取存储库:http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock但此链接不是 https,因此我无法使用 yum 安装任何内容。

你知道任何 https Repo 链接吗?

答案1

我找到了解决方案。因为我公司的政策是拒绝非https来源的访问。我已经禁用了所有的存储库。首先,找到所有的存储库$ dnf repolist 其次,禁用所有带有 http 地址的存储库$ sudo dnf config-manager --set-disabled YourRepoName ,然后您可以随意在网络中查找任何 .rpm 数据包并手动安装它,例如dnf install ./myRpmFile.rpm

相关内容