Short tip: YUM error: “xz compression not available”

While importing the recent EPEL7 YUM repositories I stumbled upon the following error:

# /usr/bin/spacewalk-repo-sync --channel epel-el7-x86_64 
> --url 
> --type yum -c epel-el7-x86_64
Repo URL:
ERROR: xz compression not available

The solution was pretty easy – the following Python library was missing:

# yum install pyliblzma

The next import was working like a charm. 🙂

Sharing is caring

Leave a Reply