我有一个Centos服务器。
结果
$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)和
$ yum list installed
zip.x86_64 3.0-1.el6_7-1 @anaconda-CentOS-201703281317.x86_64/6.9
zlip.x86_64 1.2.3-29.el6 @anaconda-CentOS-201703281317.x86_64/6.9
........... ............ ........................................
zlip-devel.x86_64 1.2.3-29.el6 @anaconda-CentOS-201703281317.x86_64/6.9所有这些都是el6包。我的服务器是脱机服务器,我从私有注册表安装软件包。现在我可以为el6安装软件包,但不能为el7安装软件包。
发布于 2022-01-17 03:29:54
您可以在另一台机器上下载EPEL RPM和其他软件包:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-x86_64/zip-3.0-11.el7.x86_64.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-updates-x86_64/zlib-1.2.7-19.el7_9.x86_64.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-updates-x86_64/zlib-devel-1.2.7-19.el7_9.x86_64.rpm -P ~/Downloads然后,...and将它们“https://getfedora.org/security/”转到您的服务器上(我将验证散列(https://getfedora.org/security/))。您还需要确保/usr/sbin/ldconfig、/lib64/libc.so.6和rtld (来自glibc-2.17)在您的系统上。
验证RPM之后,您可以安装它们:
sudo yum install ~/Downloads/epel-release-latest-7.noarch.rpm
sudo yum install ~/Downloads/zip-3.0-11.el7.x86_64.rpm
sudo yum install ~/Downloads/zlib-1.2.7-19.el7_9.x86_64.rpm
sudo yum install ~/Downloads/zlib-devel-1.2.7-19.el7_9.x86_64.rpmhttps://stackoverflow.com/questions/70604633
复制相似问题