Searching the internet says I should do:
tar Jxvf gcc-4.6-20110916.tar.xz
or (with a dash)
tar -Jxvf gcc-4.6-20110916.tar.xz
but I keep getting the error: invalid option...
How do I decompress a gcc source tar ('xz' format)?
(What I'm looking to get is gfortran 4.6, if anyone knows a better way.)
Thanks.
Walter
[SOLVED] Cannot untar a tar.xz file
Re: Cannot untar a tar.xz file
[code]
yum install xz
(say Y to the prompt)
unxz gcc-4.6-20110916.tar.xz
tar -xvf gcc-4.6-20110916.tar
xz gcc-4.6-20110916.tar
[/code]
yum install xz
(say Y to the prompt)
unxz gcc-4.6-20110916.tar.xz
tar -xvf gcc-4.6-20110916.tar
xz gcc-4.6-20110916.tar
[/code]
Re: Cannot untar a tar.xz file
That did the trick - thanks!
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
[SOLVED] Cannot untar a tar.xz file
Thank you for reporting back.
For posterity (and on your behalf) this thread is marked [SOLVED].
For posterity (and on your behalf) this thread is marked [SOLVED].