LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2012, 02:01 AM   #1
kiranonlinuxque
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Rep: Reputation: 11
[SOLVED] how to extract tar.xz file?


Hi,
My distro is RHEL 5?
How do I extract tar.xz file?

Thanks
Kiran

Last edited by kiranonlinuxque; 08-10-2012 at 02:43 AM.
 
Old 08-10-2012, 02:04 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and welcome to LinuxQuestions,

According to the man page for tar the following option(s) extract tar.xz files:
Code:
-J, --xz       filter the archive through xz
Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric
 
Old 08-10-2012, 02:13 AM   #3
slack32
LQ Newbie
 
Registered: Apr 2012
Distribution: Slackware
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by kiranonlinuxque View Post
Hi,
My distro is RHEL 5?
How do I extract tar.xz file?

Thanks
Kiran
You can use xz too. http://tukaani.org/xz/
 
Old 08-10-2012, 02:35 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Redhat EL5 is old and uses an old version of tar ( version 1.15 ).

A contemporary OS has e.g. tar-1.26, which automatically recognizes xz,
and you can do : tar xvf archive.tar.xz

RHEL 5 : 1) xz -d archive.tar.xz
2) tar xvf archive.tar

.
 
1 members found this post helpful.
Old 08-10-2012, 02:42 AM   #5
kiranonlinuxque
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 11
I installed xz and tried with xz -d <archive.tar.xz>
Thank you all.
Solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
extract the tar file Phutit Linux - Newbie 7 03-28-2011 09:56 AM
[SOLVED] How to extract a tar file ? gardenair Linux - Software 18 03-12-2011 12:26 PM
extract tar.gz file manolakis Linux - Newbie 3 11-13-2006 10:49 AM
can not extract the tar.gz file sharad durgawad Linux - Software 3 10-05-2005 02:41 AM
How to extract a tar.gz file? deWin Linux - Newbie 3 11-10-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration