Centos版本发生了什么

rslzwgfq  于 2022-11-07  发布在  其他
关注(0)|答案(1)|浏览(210)

我有一台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。

dsf9zpds

dsf9zpds1#

您可以在另一台计算机上下载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.6rtld(来自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

相关问题