Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

how to install .tar.xz file in ubuntu

Writer Andrew Henderson

i am new in Linux. Generally i install software by internet, but i think it is not a good approach to depend on internet all the times. Then i downloaded a vlc .tar.xz file. then searched Internet how to install .tar.xz. But unable to install. The command i written and result got given below..

ubuntu@ubuntu-HP:~/programs$ tar -zxvf vlc-2.0.6.tar.xz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ubuntu@ubuntu-HP:~/programs$ tar -zxf vlc-2.0.6.tar.xz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
3

5 Answers

This is not good practice unless you know the implications of installing software this way, and trust the source of the file.

Decompress:

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

This will compile the VLC source code, and then install it into your system. Because you are installing as root, this is why you must know that the source of the file is trustworthy.

To compile vlc, you need at least the following libraries installed:

  • libdvbpsi (compulsory) ,
  • mpeg2dec (compulsory) ,
  • libdvdcss if you want to be able to read encrypted DVDs ,
  • libdvdplay if you want to have DVD menu navigation ,
  • a52dec if you want to be able to decode the AC3 (i.e. A52) sound format often used in DVDs ,
  • ffmpeg, libmad, faad2 if you want to read MPEG 4 / DivX files ,
  • libogg & libvorbis if you want to read Ogg Vorbis files .

You will probably also need to install the build-essential package to get a compiler and associated commands.

More details here

1

First, you should have xz installed on your system. If not:

# apt-get install xz-utils

Then, instead of "z" option in tar command (which is for zip), you must use "J" (which is for xz):

$ tar xvfJ fich.tar.xz

I dug up an answer with a bit of searching.

tl;dr, use tar xf [filename]

1

You can use tar xvf [filename] if you also want to see the files being extracted. The z in your original code is used for gzip files.

Install this pakage

sudo apt-get install xz-utils

Go to the file direction and run this command to extract the package

tar -xvf {file name}