install tar.xz in ubuntu

C++
tar xf [filename]

This will expand the contents of the file to a folder. Then the commands are, from the folder:

./configure

make

sudo make install
tar xf [filename]

Source

Also in C++: