Compdigitec Labs

« | Home | »

Create and extract tarballs in Windows

By admin | August 12, 2008

For those of you who want to extract and create tarballs (tgz, tbz) on the Windows platform, there are many commercial tools to extract tarballs. If you want an graphical app, you can use the open-source 7-zip archiver for Windows.

However, there are also not many tools extract tarballs from the command line (cmd.exe or command.com). Below are easy steps to install a GNU Tar-like program (bsdtar) to use in the command line. BSDtar is licensed under the BSD License (as specified here).

  1. Download bsdtar and extract to a directory, preferably without spaces.
  2. Go into Control Panel -> System and click on “Advanced”. Then click on “Environmental Variables”.
    Screenshot of the Advanced tab
  3. In the user variables section, add the path you extracted bsdtar to the PATH variable. If the PATH variable has not been created, create it.
  4. You’re done! To test it, type tar zcvf archive.tar.gz * to create a tarball (tar+gzip) of all the files in the current directory.

If you found this article helpful or interesting, please leave a comment or help us spread the word!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Windows | 905 Comments »

905 Responses to “Create and extract tarballs in Windows”

  1. Arvada Plumber Says:
    June 11th, 2026 at 02:31

    Oh my goodness! Incredible article dude! Many thanks, However
    I am encountering issues with your RSS. I don’t understand why
    I cannot join it. Is there anybody else having the
    same RSS issues? Anyone that knows the solution can you
    kindly respond? Thanx!!

  2. Spartan Plumber Drain Cleaning Says:
    June 11th, 2026 at 03:01

    Good blog you have got here.. It’s hard to find excellent writing like
    yours nowadays. I seriously appreciate people like you!
    Take care!!

  3. clogged drain cleaning Arvada CO Says:
    June 11th, 2026 at 03:16

    I savour, lead to I discovered just what I used to be having a look for.
    You’ve ended my 4 day long hunt! God Bless you man. Have a nice day.
    Bye

  4. Power Path Electric Salt Lake City Says:
    June 11th, 2026 at 03:20

    Hi, Neat post. There is an issue together with your site in web explorer,
    could test this? IE still is the marketplace chief and a
    good part of people will pass over your magnificent writing because of this problem.

  5. residential electrician Salt Lake City Says:
    June 11th, 2026 at 03:33

    Fantastic beat ! I would like to apprentice at the same time as you amend your site,
    how can i subscribe for a blog site? The account helped me
    a acceptable deal. I were a little bit acquainted of this
    your broadcast offered vivid transparent concept

Comments