{"id":18,"date":"2008-08-12T11:52:48","date_gmt":"2008-08-12T15:52:48","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=18"},"modified":"2008-08-12T11:52:48","modified_gmt":"2008-08-12T15:52:48","slug":"create-and-extract-tarballs-in-windows","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/08\/12\/create-and-extract-tarballs-in-windows\/","title":{"rendered":"Create and extract tarballs in Windows"},"content":{"rendered":"<p>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 <a rel=\"nofollow\" href=\"http:\/\/www.7-zip.org\/\">7-zip<\/a> archiver for Windows.<\/p>\n<p>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 (<a href=\"http:\/\/gnuwin32.sourceforge.net\/packages\/libarchive.htm\" rel=\"nofollow\">as specified here<\/a>).<\/p>\n<ol>\n<li><a href=\"\/labs\/files\/bsdtar-gw32.zip\">Download bsdtar<\/a> and extract to a directory, preferably without spaces.<\/li>\n<li>Go into Control Panel -&gt; System and click on &#8220;Advanced&#8221;. Then click on &#8220;Environmental Variables&#8221;.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/images\/labs\/env_var.png\" alt=\"Screenshot of the Advanced tab\" width=\"541\" height=\"563\" \/><\/li>\n<li>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.<\/li>\n<li>You&#8217;re done! To test it, type <strong>tar zcvf archive.tar.gz *<\/strong> to create a tarball (tar+gzip) of all the files in the current directory.<\/li>\n<\/ol>\n<p>If you found this article helpful or interesting, please leave a comment or help us spread the word!<\/p>","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[51,48,50,49,53,47,46,45,52,44],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}