Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xz compression install on centos

Tags:

linux

centos

yum

Any installation or update using yum command I ended up error: Error: xz compression not available. On website I read that Python library is missing. When you try to install a library (sudo yum update pyliblzma) again failed with error. Do not know how? Thanks.

like image 735
infomf Avatar asked Nov 19 '14 20:11

infomf


1 Answers

This problem comes if you installed a wrong epel release on your machine. If so, then you need to remove the epel release by

yum remove epel-release

Sometimes that is not enough, you need to remove the cache as well by:

rm -rf /var/cache/yum/x86_64/6/epel

Then you can install the epel-release again

yum -y install epel-release
like image 115
Ali Ayad Jalil Avatar answered Oct 02 '22 12:10

Ali Ayad Jalil