如何为centos安装特定的软件包和版本

问题描述 投票:1回答:1

尝试在centos中安装特定版本的phphttps://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/

yum install epel-release yum-utils -y
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php70
yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y

现在,当我尝试安装其他软件包时,例如。 yum install svn,出现此错误

failure: repodata/repomd.xml from remi-release: [Errno 256] No more mirrors to try.
http://rpms.remirepo.net/enterprise/remi-release-7.rpm/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

这是为centos安装特定软件包和版本的一种非常方便的方法谢谢

php centos rpm yum
1个回答
0
投票

似乎remi-release存储库的baseurl不可用或已被删除,您应该将它从yum存储库中删除并清理本地yum缓存

rm -rf /etc/yum.repos.d/remi-php70.repo.rpmsave
yum clean all
© www.soinside.com 2019 - 2024. All rights reserved.