How to open a .tar.gz file in Windows?
Solution 1:
You can use 7-zip to untar the .tar file as well.
- Right-click the file
- Select 7-zip -> Extract Here / Extract To
Solution 2:
If you can, you can always use bash for windows and just do the regular
tar -xvzf <filename.tar.gz>
Solution 3:
7-zip should work for you. I believe you have to untar the .tar
part of the file as a second step after unzipping the .gz
part.
You also may need to check your 7-zip settings...
- Click Tools → Options
- Go to the “System” tab.
- Make sure “tar” and “gz” are checked off.
Solution 4:
With a latest Windows 10 (1803+, or 10.0.17063+ for insiders) you can unpack a tar archive just like you do it in linux:
cmd.exe -> tar xf archive.tar.gz
Solution 5:
The 7-zip package comes with a command-line tool called 7z.exe
that can pipe to and from stdin (-si
) & stdout (-so
). So the following line will do the extractraction in one step with no intermediary file (-ttar
tells 7-zip that we're piping in a tar stream).
PATH_TO_7ZIP\7z.exe x netlib-0.13.1.tar.gz -so | PATH_TO_7ZIP\7z.exe x -si -ttar