rxi/microtar

unable to use on tar.xz

mkandulavm opened this issue · 3 comments

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

Is it not supported ?

rxi commented

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.

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 ?

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...