Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tar
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Gentoopc
Apprentice
Apprentice


Joined: 25 Dec 2017
Posts: 296

PostPosted: Sat Jan 06, 2018 2:11 pm    Post subject: tar Reply with quote

hi)

how to open the xz file i tested all the keys xvf zaf zvf xvjpf
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Jan 06, 2018 2:13 pm    Post subject: Reply with quote

If is only a xz file without tar use unxz command
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gentoopc
Apprentice
Apprentice


Joined: 25 Dec 2017
Posts: 296

PostPosted: Sat Jan 06, 2018 2:24 pm    Post subject: Reply with quote

ок
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 06, 2018 2:29 pm    Post subject: Re: tar Reply with quote

Gentoopc wrote:
how to open the xz file i tested all the keys xvf zaf zvf xvjpf


Code:
$ man tar
       -J, --xz
              Filter the archive through xz(1)


you need to use it like so
Code:
$ tar xvJf <archivefile(s)>
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Jan 06, 2018 2:40 pm    Post subject: Re: tar Reply with quote

josephg wrote:
Gentoopc wrote:
how to open the xz file i tested all the keys xvf zaf zvf xvjpf


Code:
$ man tar
       -J, --xz
              Filter the archive through xz(1)


you need to use it like so
Code:
$ tar xvJf <archivefile(s)>

But if you don't specify the compression, tar automatically choose correct one
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Sat Jan 06, 2018 2:45 pm    Post subject: Re: tar Reply with quote

fedeliallalinea wrote:
josephg wrote:
Gentoopc wrote:
how to open the xz file i tested all the keys xvf zaf zvf xvjpf


Code:
$ man tar
       -J, --xz
              Filter the archive through xz(1)


you need to use it like so
Code:
$ tar xvJf <archivefile(s)>

But if you don't specify the compression, tar automatically choose correct one
it will also bomb out if what is compressed isn't a tar file.

The OP title is about tar but is asking about xz. How do we know it is a tar.xz?
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 06, 2018 3:02 pm    Post subject: Re: tar Reply with quote

Naib wrote:
The OP title is about tar but is asking about xz. How do we know it is a tar.xz?

my bad.. i assumed the file was tar.xz based on his title and description where he asks about various untar options
Code:
$ file <filename>


Last edited by josephg on Sat Jan 06, 2018 3:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Jan 06, 2018 3:03 pm    Post subject: Reply with quote

I would myself guess that because OP cite he has tried tar with "xvf" and this would work on any tar compression.
And OP also speak about a .xz and not tar.xz, i think fedeliallalinea has the most logical answer : op is certainly trying to use tar on an xz file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum