Как распаковать tgz в windows

Большинство архивов, с которыми приходится сталкиваться пользователям Windows, имеют формат ZIP, поддерживаемый операционной системой из коробки. Почти столь же часто встречаются архивы RAR, открываемые обычно с помощью сторонних архиваторов. Но может случиться такое, что вам попадется файл TAR.GZ, TGZ или GZ. Архивы этого типа являются столь же популярными как RAR и ZIP, только в среде пользователей Unix-систем, в частности, Linux и MacOS.

Если у вас установлен сторонний архиватор (подойдет даже WinRAR), для просмотра и распаковки unix-архивов можете воспользоваться им. Однако в систему Windows 10 поддержка TAR включена по умолчанию, так что наличие дополнительного ПО в принципе не требуется. Кроме того, в «десятке» есть встроенная подсистема Linux, и если этот компонент активен, то ничто не мешает задействовать его.

Итак, у вас есть архив TAR (или его модификация), из которого необходимо извлечь содержимое. Откройте от имени администратора классическую командную строку и выполните в ней команду следующего вида:

tar -xvzf [путь к архиву] -C [путь к целевой папке]

Команда для распаковки архива tar с помощью консоли Windows 10

Путь указываем полный и без скобок. Архив будет распакован в указанное расположение, а список содержащихся в нем файлов отобразится в консоли. Приведенный здесь способ, однако, работает не во всех версиях «десятки», а только в сборках начиная с Windows 10 1809 и далее.

Если у вас включена подсистема Linux, можете использовать для распаковки TAR.GZ, TGZ и GZ-архивов установленные дистрибутивы Linux. Рассмотрим пример с Ubuntu. Запустив ее из меню Пуск, выполните в открывшейся консоли такую команду:

sudo tar -xvzf /mnt/[путь к архиву] -C /mnt/[путь к целевой папке]

Использование подсистемы Linux для распаковки архивов tar

Похоже, не правда ли? Нужно только добавить sudo и /mnt/ к началу пути, конечный результат будет тот же, что и при распаковке архива в среде Windows 10. Кстати, для отключения вывода списка извлекаемых файлов достаточно убрать аргумент v из набора ключей -xvzf. И еще одно маленькое, но важное замечание. В путях Windows допускается использовать как строчные, так и прописные буквы, ничего от этого не меняется. В Linux так делать нельзя, поскольку эта система чувствительна к регистру, а, значит, c/User и c/user в ней будут разными путями.

Андрей Хамлюк

Эксперт по ремонту и настройке ПК с более чем 5-летним опытом работы. Имеет профильное образование по специальности оператор ЭВМ.

Задать вопрос

Compressed files are a convenient way to store and share large amounts of data. They can significantly reduce file sizes, making them easier to transfer and store.

There are many different types of compressed files, each with its own unique characteristics and file extensions. TGZ or GZ files are made by compressing many files together on a Unix-based system. They have two different extensions like «.TAR.GZ» but can be shortened to «.TGZ» or «.GZ».

How to Unzip, Open, and Extract TGZ (tar.gz) Files in Windows

To open these files on a Windows 11/10 computer, you need specific software to extract or unzip them. In this article, we will explain how to properly unzip and open TGZ, GZ, and TAR.GZ files on your Windows 11/10 computer.

Table of Contents

  1. What is a TGZ File?
  2. How to Extract TGZ, GZ or TAR.GZ Files in Windows 11/10
  3. Open .tar.gz, .tgz, and .gz Files With 7-Zip
  4. Convert .tar.gz, .tgz, and .gz Files to Zip
  5. Open .tar.gz, .tgz, and .gz Files Using the ‘Tar’ Command

What is a TGZ File?

TGZ files are a staple in the UNIX and Linux systems for efficient file management. These files are essentially a TAR archive that has been compressed with Gnu Zip software, making it easier to distribute or back up collections of files.

In practical terms, TGZ files allow users to store a multitude of files in a single location, reducing the amount of time and storage space needed to keep track of individual files. While this compression may sound complex, the process is seamless and reliable, ensuring your files are safe and accessible whenever and wherever needed.

As technology evolves and the need for efficient file management increases, TGZ files will continue to play a vital role in simplifying the process of bundling and backing up files. If you’re using a Windows computer and need to open a TGZ file, these step-by-step instructions will help guide you through the process.

How to Extract TGZ, GZ, or TAR.GZ Files in Windows 11/10

There are a few different approaches you can take when it comes to extracting TGZ, GZ, or TAR.GZ files on Windows 11 and Windows 10. Here, we will cover the most common methods and explain how to accomplish each one.

1. Open .tar.gz, .tgz, and .gz Files With 7-Zip

7-Zip is a free and open-source file archiver tool used to compress or extract files. It supports many different compression formats, including TGZ, GZ, and TAR.GZ. To extract the contents of a TGZ file using 7-Zip:

  1. Download and install 7-Zip from its official website.
  2. Right-click on the TGZ file you want to extract and select «7-Zip» from the context menu.
  3. Choose the «Extract files…» option to extract the files to the same folder as the TGZ file, or choose «Extract to» to extract the files to a specific folder.
    extract

By following these steps, you should be able to extract your TGZ file with ease. If you encounter any issues, make sure to check that you have installed the correct software and that the file is not corrupted or damaged.

2. Convert .tar.gz, .tgz, and .gz Files to Zip

An alternative way to extract TGZ, GZ, and TAR.GZ on Windows 11/10 is by converting the file to a ZIP file using a service or app that can convert between different file types.

Many online services allow you to upload your compressed files and convert them into a compatible format like ZIP. The process is simple, but it can take some time if the file is large. Once the conversion is complete, you can extract the contents of your .TGZ, .GZ, or .TAR.GZ file using the default Windows utility.

  1. Open your web browser and navigate to the Convertio web tool.
  2. Select «Choose Files» and import the TGZ archive you want to convert to ZIP. Find the file in the folder and click «Open» to add it to the online converter.
  3. Select the conversion type to «ZIP
  4. Hit the «Convert» button to start the conversion process.
  5. Once the conversion is complete, click «Download» and save the new ZIP archive.
  6. Go to the downloaded files folder and double-click the downloaded ZIP file to open its «Extract» tab. Now, hit the “Extract all” button to open the window directly below.
  7. Select the destination where you want to extract the files and hit «Extract

By following these steps, you should be able to easily convert and extract your TGZ files to the more widely recognized ZIP format. If you have any issues or concerns, make sure to check that you have selected the correct files and that the files are not corrupted or damaged.

3. Open .tar.gz, .tgz, and .gz Files Using the ‘tar’ Command

Windows 11/10 has native support for tar files, which can be extracted using Command Prompt. In addition, Windows Subsystem for Linux (WSL) brings native support for Ubuntu, Fedora, and SUSE, allowing you to access many Linux tools, including tar to extract content from tarballs.

Here are the steps to extract contents of a .tar.gz file using native tar commands on Windows 11/10 using Command Prompt:

  1. Open the Command Prompt as Administrator by typing «cmd» in the Start Menu search bar and selecting «Run as Administrator.» Remember that you’ll need access to a local administrator account to do this.
  2. Type the following command to use tar to extract the files and press Enter: tar -xvzf C:\PATH\TO\FILE\FILE-NAME.tar.gz -C C:\PATH\TO\FOLDER\EXTRACTION
  3. Make sure to update the syntax to include the source and destination paths. After completing these steps, all files and folders will be extracted to the specified destination.

Note: It’s crucial to ensure the syntax is correct and that you have entered the correct source and destination paths. Otherwise, the files won’t be extracted properly.

FAQ

What software do I need to open .tar.gz files in Windows?

Windows 11/10 has native support for tar files that can be extracted using Command Prompt. It also has the Windows Subsystem for Linux which lets you use Linux tools, like tar, to get the contents of tarballs quickly.

Are .tar.gz files safe?

Generally, .tar.gz files are safe and commonly used to compress and archive files on Unix-based systems. However, as with any file, it is important to be cautious when downloading or opening .tar.gz files from unknown or suspicious sources.

Can WinRAR open .tar.gz files?

To open .tar.gz files in WinRAR, make sure to tick the GZ file extension checkbox in the WinRAR Integration panel.

Can I convert a .tar.gz file to a .zip file in Windows?

Yes, you can convert a .tar.gz file to a .zip file in Windows using various methods. One way is to use an online file converter like Convertio or CloudConvert, which can convert the file format for you.

What do I do if I encounter errors while extracting .tar.gz files in Windows?

If you encounter errors while extracting .tar.gz files in Windows, make sure that you are using the correct software to extract the file. If you are using the correct software, try downloading the file again in case it is corrupted. If the problem persists, try using a different extraction location or checking your disk space to make sure you have enough storage.

Conclusion

The .tar.gz file is a popular archive format for Linux users, and Windows 11/10 users can access them too with the right software. There are several ways to open, extract, or convert these files using native tools and third-party applications.

With the right tools, you can easily open and extract your .tar.gz files in Windows 11/10. 

We have outlined step-by-step instructions for using both native tools and third-party applications to open or convert these files. We hope this article helps you access all the files you need.

One More Thing

We’re glad you’ve read this article. :) Thank you for reading.

If you have a second, please share this article on your socials; someone else may benefit too. 

Subscribe to our newsletter and be the first to read our future articles, reviews, and blog post right from your inbox. We also offer deals, promotions, and updates on our products and share them via email. You won’t miss one.

Related Articles 

» Password Protect a Zip File on Windows 10 (With Images)
» How to Compress Files and Folders to Zip in Mac
» How to Compress Files on Windows 11

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.

How to Open TGZ File on Windows

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.



Пользовательский рейтинг на CNET 4.5 звезды

Файл .TGZ это архив TAR, сжатый с помощью утилиты gzip. Это значит, что файлы были помещены в архив TAR, а затем упакованы посредством gzip. Такие файлы, как правило, можно встретить в установщиках ПО для UNIX-подобных ОС, например macOS, но также они применяются для обычного архивирования данных.

WinRAR – наиболее популярная в мире утилита упаковки файлов, после Google Chrome и Acrobat Reader это самая часто устанавливаемая программа!

Как открывать файлы TGZ

1. Если вам нужно открыть какой-либо TGZ-архив, убедитесь, что в настройках WinRAR на вкладке «Интеграция» стоят флажки в полях GZ и TAR:

WinRAR может открывать файлы с расширением TGZ по умолчанию
WinRAR может открывать файлы с расширением TGZ по умолчанию

2. Дважды щёлкните по файлу, который вы хотите открыть, и его содержимое будет показано в WinRAR. Выберите файлы, которые вам нужно извлечь/открыть, и нажмите кнопку «Извлечь…» вверху окна WinRAR:

Нажмите OK – и файлы из архива TGZ будут сохранены в папке назначения.

WinRAR может распаковывать файлы TGZ
WinRAR может распаковывать файлы TGZ

WinRAR поддерживает следующие популярные форматы архивов:

  • RAR
  • ZIP
  • CAB
  • ARJ
  • LZH
  • TAR
  • GZ, Tar.GZ и TGZ
  • XZ
  • BZ2 и TAR.BZ2
  • UUE
  • JAR
  • 7Z
  • Z
  • ISO

Если у вас есть файлы .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.

  • Как распаковать winrar на windows 10
  • Как разрешить пустые пароли windows 10
  • Как разрешить программу в защитнике windows 10
  • Как разрешить программе доступ в интернет windows 10
  • Как разрешить программе вносить изменения на компьютере windows 10