gpt4 book ai didi

centos - Centos 版本会发生什么

转载 作者:行者123 更新时间:2023-12-04 19:35:19 29 4
gpt4 key购买 nike

我有一个 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的包。我的服务器是离线服务器,我从私有(private)注册表安装包。
现在我可以为 el6 安装软件包,但不能为 el7 安装。

最佳答案

您可以在另一台机器上下载 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
...然后将它们“sneakernet”到您的服务器(我会验证哈希值( 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.rpm

关于centos - Centos 版本会发生什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70604633/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com