microtar icon indicating copy to clipboard operation
microtar copied to clipboard

unable to use on tar.xz

Open mkandulavm opened this issue 5 years ago • 3 comments

I am getting checksum and other errors when trying to read a tar.xz.

Is it not supported ?

mkandulavm avatar Jul 02 '20 11:07 mkandulavm

microtar only supports tar archives -- tar.xz, tar.gz and friends are compressed tar archives which would have to be decompressed first, the resultant decompressed data should work with microtar.

rxi avatar Jul 02 '20 11:07 rxi

Thanks for the reply ! can you suggest what might be the best route to do that ? Should I use some other library os System command ?

mkandulavm avatar Jul 02 '20 11:07 mkandulavm

basically tar collects all the files and creates a single archive, that archive is then compressed 7z format, thus .tar.7z is produced, or .tar.gz in gzip, or .tar.xz when using xz file format...

libarchive is the best library to work with all sorts of archives...

pegvin avatar May 23 '23 17:05 pegvin