Tar gz how to extract windows

I need to open a file that sadly is only available in the .tar.gz file format and I am using Windows 7. I can unzip the file using 7-zip but after that I still have a .tar file that I can't open in

I need to open a file that sadly is only available in the .tar.gz file format and I am using Windows 7. I can unzip the file using 7-zip but after that I still have a .tar file that I can’t open in Windows.

Is there a way to open .tar.gz files on Windows?

Community's user avatar

asked Nov 27, 2010 at 14:46

Jonas's user avatar

6

You can use 7-zip to untar the .tar file as well.

  1. Right-click the file
  2. Select 7-zip -> Extract Here / Extract To

answered Nov 27, 2010 at 14:51

Paul's user avatar

PaulPaul

4,74427 silver badges41 bronze badges

6

If you can, you can always use bash for windows and just do the regular

 tar -xvzf <filename.tar.gz>

answered Oct 26, 2016 at 20:49

Yaron Meiner's user avatar

5

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

li ki's user avatar

answered May 1, 2019 at 14:54

Reishin's user avatar

ReishinReishin

4014 silver badges6 bronze badges

1

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.

answered Nov 27, 2010 at 14:52

Ryan Berger's user avatar

Ryan BergerRyan Berger

6672 gold badges9 silver badges20 bronze badges

3

I use simple WinRAR extractor to extract .tar.gz file; simply do these steps,

  1. Start extracting the .tar.gz file with WinRAR, it will generate an Intermediate file.
  2. Rename that intermediate file as «.tar» and extract it again with WinRAR.

Now second time it will extract your all files/folders.

answered Dec 22, 2012 at 13:24

Shreyas's user avatar

ShreyasShreyas

811 silver badge2 bronze badges

1

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_7ZIP7z.exe x netlib-0.13.1.tar.gz -so | PATH_TO_7ZIP7z.exe x -si -ttar

answered Feb 19, 2016 at 21:02

Refael Ackermann's user avatar

1

The problem is that when 7-zip uncompresses the tar file into a subdirectory, you have to go into the subdirectory in order to uncompress the tar file.

If you’ve tried to uncompress the subdirectory, it won’t work of course.

There are two solutions here:

  1. Use ‘extract here’, not ‘Extract files…’.
  2. Go into the subdirectory and extract from there.

sblair's user avatar

sblair

12.6k6 gold badges47 silver badges77 bronze badges

answered Feb 14, 2012 at 12:36

Druvision's user avatar

DruvisionDruvision

1821 silver badge8 bronze badges

Install total commander, it will deal with tar.gz files. You can just go inside such kind of file and copy it to the place you need. Extraction is done by TC in the background.

answered Sep 24, 2013 at 7:44

Piotus's user avatar

1

Paul has it correct, but in this case it’s a 2-step process. First to remove the .gz(decompress the files) and second to remove the .tar(unpack the files).

answered Aug 21, 2015 at 18:46

Mark Sherrill's user avatar

2

If you solely use Microsoft operating systems on your computers and have never used UNIX or a Linux distro, you may not be familiar with the file types .TAR, .GZ, .TAR.GZ, or TGZ. It is because these file types are usually used in a Linux environment.

However, if you have found such a file with any one of the mentioned file extensions on a Windows computer, you can still access its contents by decompressing it (if compressed) and then extracting its contents.

Unfortunately, Windows does not natively support these file formats, so we need to use third-party tools and software to access such files. Continue reading this post to learn how to open TGZ, TAR, TAR.GZ, or GZ files on a Windows PC.

But before we do, it is important to understand what each of these files is.

Table of contents

  • What is the TAR File
  • What is a GZ File
  • What is a TAR.GZ/ TGZ File
  • How to Open TGZ File on Windows
    • Using WinRAR
    • Using WinZip
    • Using 7Zip
    • Convert TGZ to ZIP
  • FAQs
    • Is TAR.GZ the same as TGZ?
    • Can Windows open TAR/ TGZ files without software?
    • Can TGZ files be opened on MacOS?
    • What is the difference between TGZ and ZIP?

What is the TAR File

A TAR file, also known as a Tape Archive File, is a bundled UNIX archive file. An archive is a collection of multiple files consolidated into a single file, making it convenient to share and send over the internet.

In comparison, a TAR file can be compared to an ISO file within the Windows world – an ISO file is an archive of multiple files bundled up together.

Note: An archive is only a collection, and does not mean the contents within an archive are compressed.

What is a GZ File

The file with a .GZ extension is a compressed file done using the Gzip technology. Gzip is an open-source algorithm used to compress and decompress files. Compressed files are easier to download and upload, thus sharing over the internet, because of their smaller size.

What is a TAR.GZ/ TGZ File

A TAR.GZ is a compressed TAR archive file. This essentially means that an archive was created using multiple files and converted into a single file, which was then further compressed using the Gzip technology. TAR.GZ and TGZ are the same files with different file extensions.

In the Windows world, a TGZ file can be compared to a ZIP or RAR file, which are both archives as well as compressed.

The TAR.GZ file, also known as a “Tarball,” is a Gzipped TAR file which is commonly used to store source code. A TGZ file, also known as a “Slackpack,” is also a GZipped TAR file, but its contents are binary and it also contains a script to be used by “installpkg”, “removepkg” or “upgradepkg” to place the binary files where they need to go.

Therefore, a TAR.GZ file cannot be converted into TGZ file just by renaming the file’s extension (or vice versa). Some files may still work and the content within them may still be accessible, but if it contains any installation files, there’s a good chance that they can be corrupted.

Initially, only the TAR.GZ extension was used. However, web browsers had trouble processing these files because of the long string. These were then renamed TGZ. However, there was still a negligible difference between the two.

Now that you understand what a TGZ file is, let us now show you how to open it using the different third-party tools.

You can either directly open a TGZ file using one of the following third-party tools, or convert it into another format and then access the contents of the compressed archive.

Note: You can also open .TAR, .GZ, and .TAR.GZ files using the same methods given below.

Using WinRAR

WinRAR is free-to-use software that is used to create archives, compress, and decompress files of many different formats. Here is how to use this tool to extract and then open a TGZ file on a Windows computer:

  1. Download and install WinRAR from here.

  2. Once installed, open the app, click Options from the top menu, and then click Settings.

    Open WinRAR settings

    Open WinRAR settings
  3. In the Settings window, switch to the Integration tab. Here, check the boxes next to TAR and GZ, then click Ok.

    Set WinRAR association

    Set WinRAR association
  4. Now use File Explorer and navigate to the TGZ file you want to open. There, right-click on the file and click Extract Files.

    Extract TGZ file

    Extract TGZ file
  5. From the popup, select a location to extract the content and click Ok.

    Select location to extract

    Select location to extract

That is it! The contents of the .TGZ file will now be extracted in a separate folder which you can now access using Explorer.

Using WinZip

Similar to WinRAR, WinZip can also be used to extract and open the contents of a TGZ file. However, it only provides a 21 day free trial at the moment.

  1. Download and install WinZip from here.

  2. Once installed, navigate to the TGZ file, right-click it, expand WinZip from the context menu, then click Unzip to here.

    Unzip here

    Unzip here

You should now see a simple folder in the same directory as the TGZ file, which you can now open and access the extracted contents of the compressed and archived file.

Using 7Zip

7Zip is another freeware used to compress and decompress different file types. Follow these steps to use 7Zip to extract and open a TGZ file:

  1. Download and install 7Zip from here.

  2. Now navigate to the TGZ file, right-click it, expand 7Zip from the context menu, then click Extract here.

    Extract with 7Zip

    Extract with 7Zip
  3. From the popup, select a location to extract the content and click Ok.

    Select location

    Select location

The TGZ file will now be extracted which you can easily access using File Explorer.

There are other third-party tools you can also use:

  • File Viewer Plus
  • Zipeg
  • Smith Micro StuffIt Delux

These tools provide similar methods to open, or extract and open any TGZ file.

Convert TGZ to ZIP

Another way to access the contents of a TGZ file on a Windows PC is by converting the file into a .ZIP file, which is natively supported by Windows. There are several tools online that will do the conversion for you.

Follow these steps to use Convertio TGZ Converter to convert a TGZ file into a ZIP file.

  1. Open the TGZ Converter in any web browser.

  2. On the website, click Choose files, and then select the TGZ file you wish to convert.

    Choose and uploaad TGZ file

    Choose and upload TGZ file
  3. When the file is uploaded successfully, select ZIP from the drop-down menu in front of “To:” to convert the file into a ZIP file.

    Select conversion format

    Select conversion format
  4. Now click Convert. The file will then begin the conversion and the process can take a moment (depending upon the size of the file).

  5. When it successfully converts, click Download to obtain the converted ZIP file.

    Download ZIP file

    Download ZIP file
  6. When downloaded, all you need to do is to access the ZIP folder normally since Windows supports the ZIP format natively. You can also extract the content from the context menu by clicking Extract All.

FAQs

Is TAR.GZ the same as TGZ?

TGZ is a short version of TAR.GZ and are the same things. However, one cannot be converted into another simply by renaming the file extension.

Can Windows open TAR/ TGZ files without software?

TAR, TGZ, and TAR.GZ files are UNIX archive files, and therefore are not supported natively on any Windows version. However, you can use WinRAR, WinZip, and other third-party software to open such files on a Windows computer.

Can TGZ files be opened on MacOS?

MacOS is based on Unix, and thus, a TGZ or TAR file is supported natively on Mac. Simply double-clicking a TAR or TGZ file on MacOS will open it.

What is the difference between TGZ and ZIP?

TGZ is a compressed archive format used by Unix and MacOS, whereas the ZIP format is a compressed archive format used natively by Windows. However, both formats are supported by third-party applications like WinRar and WinZip.

Also see:

Subhan Zafar is an established IT professional with interests in Windows and Server infrastructure testing and research, and is currently working with Itechtics as a research consultant. He has studied Electrical Engineering and is also certified by Huawei (HCNA & HCNP Routing and Switching).

Если у вас есть файлы .tar.gz, .tgz или .gz, вы можете использовать шаги ниже, чтобы использовать инструмент командной строки tar для извлечения его содержимого в Windows 10.

Файл в формате.tar.gz — это файл, который был создан с использованием tar -архива приложения на основе Unix, а затем сжат с использованием сжатия gzip. Эти файлы часто вы можете найти с двойным расширением (.tar .gz), расширение также можно сократить до.tgz или.gz.

Обычно tar-файлы используются пользователями Ubuntu и macOS для архивирования данных и резервного копирования, но иногда пользователи Windows 10 также могут столкнуться с этими типами файлов и могут нуждаться в извлечении их содержимого.

Хотя вы можете использовать ряд сторонних приложений, таких как 7-Zip, иногда эти приложения плохо работают с файлами, созданными на другой платформе, и медленно распаковывают большое количество файлов. К счастью Windows 10 включает встроенную поддержку tar, вы можете использовать командную строку (CMD) для распаковки этих файлов. Кроме того, вы даже можете использовать подсистему Windows для Linux (WSL), которая обеспечивает встроенную поддержку Ubuntu, Fedora и SUSE, следовательно, вы также можете получить доступ ко многим инструментам Linux, включая tar, для быстрого извлечения содержимого из tar-архивов.

В этом руководстве вы узнаете, как использовать собственные команды tar в Windows 10 с помощью командной строки и Ubuntu для извлечения содержимого файла .tar.gz.

  • Содержание
    • Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Windows 10
    • Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Linux на Windows 10

Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Windows 10

Используйте эти шаги для извлечения .tar.gz, .tgz, .gz и .zip файлов с использованием tar в Windows 10 без необходимости установки подсистемы Windows для Linux:

Шаг 1: Откройте меню «Пуск». Начните набирать Командная строка, кликните правой кнопкой мыши первый результат в поиске и выберите параметр «Запуск от имени администратора».

Откройте меню «Пуск». Начните набирать Командная строка

Шаг 2: Введите следующую команду, чтобы использовать tar для распаковки файлов, и нажмите Enter :

tar -xvzf C:путь_к_архивуимя_архива.tar.gz -C C:путь_к_папкегде_будет_распакован_архив

Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Windows 10

*Встроенная поддержка tar в Windows 10

Совет: поскольку вы используете tar в Windows 10, вам не нужно указывать путь, как если бы вы работали в Linux. Вы можете просто использовать формат пути, используемый Windows.

После того, как вы выполните эти шаги, через несколько секунд все файлы и папки будут извлечены по указанному вами пути назначения.

Предполагается, что вы распаковываете архив, созданный в другой системе, поэтому пропускаем некоторые аргументы, обычно необходимые для сохранения разрешений, которые в Windows 10 не нужны для доступа к файлам.

Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Linux на Windows 10

Чтобы использовать tar в Linux, вам нужно включить подсистему Windows для Linux (WSL), а затем установить Ubuntu из магазина Microsoft Store.

После того, как вы установили Ubuntu в Windows 10, выполните следующие шаги, чтобы извлечь файл .tar.gz :

Важное замечание: Начиная с версии 1803, инструмент управления командами tar входит в состав Windows 10, что означает, что для использования средства больше не требуется использование подсистемы Windows для Linux.

Шаг 1: Откройте меню «Пуск». Найдите Ubuntu и откройте приложение.

Шаг 2: Введите следующую команду, чтобы извлечь содержимое файла.tar.gz, и нажмите Enter :

sudo tar -xvzf /mnt/c/PATH/TO/TAR-FILE/Downloads/FILE-NAME.tar.gz -C /mnt/c/PATH/TO/DESTINATION/FOLDER

Как извлечь tar-архивы .tar.gz, .tgz или .gz, используя tar в Linux на Windows 10

*Команда tar в Windows 10

Замените «c/PATH/TO/TAR-FILE/Downloads/FILE-NAME.tar.gz» — на путь и имя вашего архива

Замените  «c/PATH/TO/DESTINATION/FOLDER» — на путь куда будет распакован архив

В приведенной выше команде мы набираем sudo для запуска приложения от имени администратора, tar для вызова приложения, а затем передаем ему несколько аргументов, в том числе:

  • x — указывает tar, что вы хотите извлечь содержимое.
  • v — Это необязательный аргумент для отображения процесса извлечения. В противном случае вы увидите только мигающий курсор, пока процесс не будет завершен.
  • z — указывает tar распаковать содержимое файла.tar.gz с помощью gzip.
  • f — указывает tar имя файла, который вы собираетесь извлечь.

Затем вам нужно указать путь к архивному файлу, который вы хотите извлечь. Вы заметите, что путь начинается /mnt/c/, а не c: потому, что мы на самом деле работаем в Linux.

  • -C — (дефис и заглавная C ) используется, чтобы указать tar сменить папку.

Когда вы выполняете команду, вы начинаете с исходной папки, а затем вам нужно указать папку назначения куда будет распакован архив. Вы можете извлекать файлы в любую папку, которую хотите, но не забудьте начать путь, /mnt/

Очень важно обращать внимание на прописные и строчные буквы при вводе команды в Linux, так как Downloads отличается от downloads 

В этом руководстве мы рассмотрели основные шаги для выполнения конкретной задачи. Если вы не являетесь пользователем Linux, и хотите узнать больше о инструменте WSL ознакомьтесь с нашими руководствами:

  • (WSL2) Что такое подсистема Windows для Linux 2?
  • Как установить подсистему Windows для Linux 2 в Windows 10
  • Установите Linux из Магазина Microsoft в Windows 10.
  • Доступ к файлам WSL Linux с помощью Проводника Windows 10
  • Как запустить Ubuntu Bash в Windows 10.
  • Как запускать приложения Linux GUI в Windows 10.
  • Как Выполнить команды Linux из Командной строки Windows 10.
  • Проверьте погоду в Windows 10 с помощью Linux Bash
  • Новый Windows Terminal в магазине Microsoft.

Понравилась статья? Поделить с друзьями:
  • Tap0901 что это за устройство windows 10
  • Tap0901 драйвер скачать windows 7 x64
  • Tap0901 драйвер скачать windows 10 64 bit с официального
  • Tap адаптер openvpn windows 7 скачать
  • Tap windows provider v9 скачать драйвер для windows 7