Extract a tar.xz file on CentOS and RedHat
…On newer versions of tar, you can simply replace the z with a J to use the correct (de)compression library, but if you have version 1.15.1 or earlier, you’ll find that this doesn’t work either. Note that this is a capital “J” and not a lowercase “j” which would be used to specify bzip2 compression. tar -xJf gnutls.tar.xz tar: invalid option — J Try `tar –help’ or `tar –usage’ for more information. Getting around this is as simple as using the…