
VPS를 PHP 7로 업그레이드하고 싶습니다
그런데 매번 이런 문제가 발생해요
[root@cloudbox75067 /]# yum install php70w php70w-opcache
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.nluug.nl
* epel: fedora.cu.be
* extras: nl.mirror.babylon.network
* updates: ftp.nluug.nl
* webtatic: uk.repo.webtatic.com
Error: xz compression not available
답변1
이 문제는 컴퓨터에 잘못된 epel 릴리스를 설치한 경우 발생합니다. 그렇다면 epel 릴리스를 제거해야합니다.
yum remove epel-release
경우에 따라 충분하지 않은 경우 다음과 같은 방법으로 캐시도 제거해야 합니다.
rm -rf /var/cache/yum/x86_64/6/epel
그런 다음 epel-release를 다시 설치할 수 있습니다
yum -y install epel-release
원천:https://stackoverflow.com/questions/27026003/xz-compression-install-on-centos/31945905#31945905