
Ich möchte meinen VPS auf PHP 7 aktualisieren
Aber ich habe dieses Problem jedes Mal
[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
Antwort1
Dieses Problem tritt auf, wenn Sie eine falsche Epel-Version auf Ihrem Computer installiert haben. Wenn dies der Fall ist, müssen Sie die Epel-Version entfernen, indem Sie
yum remove epel-release
Manchmal reicht das nicht aus. Sie müssen auch den Cache löschen, indem Sie:
rm -rf /var/cache/yum/x86_64/6/epel
Anschließend können Sie das epel-release erneut installieren
yum -y install epel-release
Quelle:https://stackoverflow.com/questions/27026003/xz-compression-install-on-centos/31945905#31945905