Categories
C# Programming software

TarTool – Windows tar gzip tgz extraction tool

TarTool is a tiny windows command line tool to extract tar gzip (tar.gz or tgz extension) files.

You can download TarTool , unzip and run TarTool.exe as a command line executable.

The source code  for TarTool is now hosted on github.

I wanted to play around with the Microsoft Shared Source CLI SSCLI. The download is only available as a tgz extension. Imagine that 🙁

After searching the interwebs for tools that would extract tar gzip files , I was disappointed since there was no simple tool to extract tar gzip files on my windows machine.

There are a few tools out there like WinRAR etc., but I found them too bloated for my task.

So I wrote a little tool using SharpZipLib, the open source Zip, GZip, Tar and BZip2 library (great job guys, BTW).

SharpZipLib does most of the heavy lifting so the core of TarTool  is less than ten lines of C#. I can host the source code if there is enough interest.

Enjoy!

 Update (05/06/2009 17:00 CST) :

TarTool now has an addtional option to untar tar file formats.

TarTool -x sample.tar temp

will untar the sample.tar contents into the temp folder.

Update (04/02/2012 11:35 PM CDT)
bzip2 decompression is now supported in TarTool 2.0 Beta .
TarTool -xj sample.tar.bz2 temp
or
TarTool -j sample.bz2

12 replies on “TarTool – Windows tar gzip tgz extraction tool”

I m getting the following content as error ” ‘TarTool’ is not recognized as an internal or external command,
operable program or batch file. ” . Idon’t understand why it was getting . Can you please help me ?

I have a .TAR backup of my website created by the Plesk Control Panel Backup Manager. It has imbedded .GZ and .TAR files. Can TarTool be used to extract all the compressed files to re-create the files and folders?
Thanks,
Harry

is there a command line option to decompress files inside a compressed file? right now uncompressing produces multiple files in compressed format. there are thousands which would require me to uncompress one by one.

so I tried this “utility” on an old tar.z file…
first of all the requirement that you have to have 2 files available to do a tar is fairly stupid… linux / unix somehow does not need this.

so I then fixed that and now I find out it doesn’t handle the zipped version of tar files… so you still need gnu tools.

I truly wonder how microsoft can be sooo obtuse…

but I also wonder why people still use tar (why not use “jar” which works for both windows and unix and is provided with the java development kit…) ?

Hello richard,

Thanks for trying out TarTool and your feedback.

>so I tried this “utility” on an old tar.z file…

TarTool does not support the .z file extension it supports the improved .gz compressed files.

>first of all the requirement that you have to have 2 files available to do a tar is fairly stupid… linux / unix somehow >does not need this.

This avoids “tar bombs” in parent folders.

>but I also wonder why people still use tar (why not use “jar” which works for both windows and unix and is provided with >the java development kit…) ?

Sometimes people don’t want to install a jdk on a Windows machine.

hope this helps.

Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *