yum install unxz -> Error: Nothing to do

use this one:

yum install xz

tar (child): xz: Cannot exec: No such file or directory on Amazon Linux

yum install -y xz