Windows как открыть tar gz 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 в ней будут разными путями.

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.

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,76429 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

4414 silver badges6 bronze badges

2

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

6772 gold badges9 silver badges20 bronze badges

3

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

answered Feb 19, 2016 at 21:02

Refael Ackermann's user avatar

1

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 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 badges48 silver badges77 bronze badges

answered Feb 14, 2012 at 12:36

Druvision's user avatar

DruvisionDruvision

1721 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

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

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

0

28.07.201822:1028.07.2018 22:10:56

tar.jpg

Архивы tar.gz легко распаковываются с помощью WinRAR или 7zip.

Сложность в windows представляют многотомные архивы tar.gz

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

Первую часть архива нужно переименовать в .tar.gz.001, т.е:

.tar.gz в .tar.gz.001

а в последующих частях переименовать и увеличить номер части на один:

.tar.gz.1 в .tar.gz.002

.tar.gz.2 в .tar.gz.003

.tar.gz.3 в .tar.gz.004

………………….. и т.д.

Теперь после переименования многотомные архивы tar.gz распаковываются полностью WinRAR или 7zip.

  • Windows как изменить время создания файла
  • Windows как запустить программу как службу windows
  • Windows как завершить процесс из командной строки windows
  • Windows как войти в консоль восстановления windows
  • Windows использование файла подкачки windows