When installing packages via yum on a RHEL Server 6.6 system, I get the following error:
$ sudo yum install foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Error: xz compression not available
Search engine searches suggest that the pyliblzma package is missing.
I can't install this via sudo yum install pyliblzma because I run into the same xz compression not available error.
Instead, I downloaded the RPM archive and installed it via rpm:
$ wget http://download.fedoraproject.org/pub/epel/6/SRPMS/pyliblzma-0.5.3-3.el6.src.rpm
$ sudo rpm -ivh pyliblzma-0.5.3-3.el6.src.rpm
It appears to not have been installed successfully; the following returns no results:
$ rpm -qa | grep pyliblzma
What should I do to correctly install pyliblzma and fix the xz compression not available error?