how to untar file in linux red hat?

14,852

Solution 1

First install XZ

yum -y install xz

then

tar -xvf yourfile.tar.xz 

Solution 2

Should work with the following command:

tar -xvfz linux-2.6.32.65.tar.xz
Share:
14,852

Related videos on Youtube

Nauman Sohail
Author by

Nauman Sohail

Updated on September 18, 2022

Comments

  • Nauman Sohail
    Nauman Sohail over 1 year

    I am compiling linux red hat stable kernel on red hat linux and the error which I am facing is as below how should I remove this error

  • jsbillings
    jsbillings about 9 years
    If its a modern GNU tar, just leave off the decompression algorithm, and just use tar xvf linux-2.6.32.65.tar.xz. Tar is smart enough to figure it out.
  • PersianGulf
    PersianGulf about 9 years
    It's Wrong user have to use -Jxf file.tar.xz
  • elbarna
    elbarna about 9 years
    On slackware 14.1i use tar -xvf without problem,same thing on centos6.6