-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you decompress tar.xz files? #1
Comments
First, decompress the *.tar.xz to a *.tar, either to memory or a temporary file. Then use a tar decompressor (i.e., A working xz decompressor is needed first; and this seems to be alpha software currently. |
Many thanks for the interest in my code. The code is not even alpha right now. Currently the software contains working code for the LZMA method. This is the core compression method used by xz file format. But actually xz is using LZMA2 that contains chunks of LZMA compressed data. So I'm working currently on LZMA2. When the code will be complete, I will provide examples on how to create and decompress tar files in Go. |
Easy: https://github.com/mholt/archiver/blob/cdc68dd1f170b8dfc1a0d2231b5bb0967ed67006/tarxz.go#L53-L66 (Opening the .tar file is the "hard" part, but the xz decompression just gets layered on underneath it as you can see.) |
Trying to discover how to extract tar.xz files. Is this possible?
The text was updated successfully, but these errors were encountered: