How to extract .xz files?

You have to install xz-utils package first:

$ sudo apt-get install xz-utils

You can use unxz command to extract .xz files:

$ unxz file.xz

or using with --decompress option of xz:

$ xz --decompress file.xz