- Как распаковать архив tar.gz средствами Windows 10
- Распаковка архива TAR в Windows 10
- Как установить tar.gz на Windows?
- 2 ответов
- How to install a tar.gz on Windows?
- 2 Answers 2
- How to open or extract .TAR.GZ, .TGZ or .GZ. Files in Windows 10
- How to extract .TAR.GZ, .TGZ or .GZ. file
- 1] Using third-party software
- a] Open TGZ files with 7-Zip
- 2] Open TAR files in Windows 10 using native tar commands
- a] Extract .tar.gz, .tgz, or .gz tarballs using tar on Windows 10
- b] Extract .tar.gz, .tgz, or .gz tarballs using tar on Linux on Windows 10
Как распаковать архив tar.gz средствами Windows 10
Большинство архивов, с которыми приходится сталкиваться пользователям Windows, имеют формат ZIP, поддерживаемый операционной системой из коробки. Почти столь же часто встречаются архивы RAR, открываемые обычно с помощью сторонних архиваторов. Но может случиться такое, что вам попадется файл TAR.GZ, TGZ или GZ. Архивы этого типа являются столь же популярными как RAR и ZIP, только в среде пользователей Unix-систем, в частности, Linux и MacOS.
Если у вас установлен сторонний архиватор (подойдет даже WinRAR), для просмотра и распаковки unix-архивов можете воспользоваться им. Однако в систему Windows 10 поддержка TAR включена по умолчанию, так что наличие дополнительного ПО в принципе не требуется. Кроме того, в «десятке» есть встроенная подсистема Linux, и если этот компонент активен, то ничто не мешает задействовать его.
Распаковка архива TAR в Windows 10
Итак, у вас есть архив TAR (или его модификация), из которого необходимо извлечь содержимое. Откройте от имени администратора классическую командную строку и выполните в ней команду следующего вида:
tar -xvzf [путь к архиву] -C [путь к целевой папке]
Путь указываем полный и без скобок. Архив будет распакован в указанное расположение, а список содержащихся в нем файлов отобразится в консоли. Приведенный здесь способ, однако, работает не во всех версиях «десятки», а только в сборках начиная с Windows 10 1809 и далее.
Если у вас включена подсистема Linux, можете использовать для распаковки TAR.GZ, TGZ и GZ-архивов установленные дистрибутивы Linux. Рассмотрим пример с Ubuntu. Запустив ее из меню Пуск, выполните в открывшейся консоли такую команду:
sudo tar -xvzf /mnt/[путь к архиву] -C /mnt/[путь к целевой папке]
Похоже, не правда ли? Нужно только добавить sudo и /mnt/ к началу пути, конечный результат будет тот же, что и при распаковке архива в среде Windows 10. Кстати, для отключения вывода списка извлекаемых файлов достаточно убрать аргумент v из набора ключей -xvzf. И еще одно маленькое, но важное замечание. В путях Windows допускается использовать как строчные, так и прописные буквы, ничего от этого не меняется. В Linux так делать нельзя, поскольку эта система чувствительна к регистру, а, значит, c/User и c/user в ней будут разными путями.
Как установить tar.gz на Windows?
Я установил mpd (Демон музыкального проигрывателя) на моем Raspberry Pi (работает под Unix). Затем GMPC (клиент) на Windows. Существует плагин для GMPC, чтобы поймать обложки альбомов, но это tar.GZ-архив. Как я могу это установить?
I can извлечь файлы. У меня нет с этим проблем. Но когда я извлекаю файлы из архива, то получаю такие файлы:
Что делать с этими файлами?
2 ответов
в общем случае, нет «установки» с .tar.gz — Как .zip файл, архив может содержать что угодно, включая, но не ограничиваясь, резервные копии ваших фотографий, коллекцию сообщений электронной почты, чертежи для САПР и т. д.
то, что вы скачали исходный архив. Файлы в архиве — это то, что программист будет использовать для создания двоичного файла для своей архитектуры. Этот проект очень похож он был разработан для Unix-совместимые системы, и не будут тривиально строиться на Windows.
проекты, переносимые в Windows, часто содержат что-то вроде Makefile.win32 (возможно, в подкаталоге) С в основном рецептом компиляции для make утилиты, или proj файл для Visual Studio.
общие инструкции Unix для сборки из архива в основном
- распакуйте архив.
- найдите файл с именем README или аналогичные. Если вы найдете его, он, вероятно, повторяет или заменяет остальные эти инструкции. Файл также можно назвать INSTALL , хотя это часто файл с общими инструкциями по установке, которые на самом деле не относятся к этому конкретному проекту.
- если есть файлы с именем типа Makefile.am вы, возможно, должны быть в состоянии запустить automake продолжить.
- если есть файл с именем configure , который является исполняемым, запустите его. Он будет пытаться выяснить, какие компоненты вы должны установить для того, чтобы иметь возможность продолжить. Если он успешно выполняется, можно перейти к следующему шагу. Если нет, вам нужно понять, почему это не удалось, исправить проблему и перейти 4.
- если есть файл с именем типа Makefile.yourplatform (so Makefile.linux для Linux Makefile.BSD для *BSD, Makefile.suxix для Suxix и т. д.) Попробуйте запустить make -f Makefile.yourplatform где очевидно, что имя файла Makefile должно быть правильным из тех, которые вы нашли.
в противном случае, если существует файл по имени Makefile (или, возможно, GNUmakefile или makefile ) run просто make . Это выполняет фактическую компиляцию, используя компилятор, библиотеки и вспомогательные утилиты toolchain, которые configure подобран на шаге 4. Если это не удастся, у вас будет больше работы, вероятно, над головой, если вы не знакомы с написанием переносимых программ на языке, используемом в этом проекте (обычно C или C++).
сообщение об ошибке make просто указывает на то, что make пробовать бежать не удалось. Если вам нужно обратиться за помощью, то строки непосредственно перед сообщением об ошибке от make полезнее диагностики, чем итоговое лаконичное сообщение» что-то не получилось » от make .
для разумно самомоднейших проектов, см. Если место, то где вы загруженный исходный код также будет иметь некоторые инструкции и / или, возможно, набор готовых двоичных файлов для вашей платформы. Иногда есть сторонние сборки для богом забытых платформ, даже если основная разработка происходит и фокусируется на U*x или конкретно Linux.
How to install a tar.gz on Windows?
I have installed a MPD (Music Player Daemon) on my Raspberry Pi (running under Unix). Then GMPC (the client) on Windows. There is a plugin for the GMPC to catch the album covers, but it is a tar.gz archive. How can I install this?
I can extract the files. I don’t have a problem with that. But when I extract the files from the archive, I get these files:
What should I do with these files?
2 Answers 2
In the general case, there is no «installation» with .tar.gz — just like a .zip file, the archive can contain just about anything, including but not limited to backups of your photos, a collection of email messages, drawings for a CAD system, etc etc.
What you have downloaded is a source tarball. The files in the archive are what a programmer would use to build a binary for their architecture. This particular project looks very much like it was designed for Unix-compatible systems, and will not trivially build on Windows.
Projects which are portable to Windows will often contain something like a Makefile.win32 (perhaps in a subdirectory) with basically a compilation recipe for the make utility, or a proj file for Visual Studio.
The generic Unix instructions for building from a tarball are basically
- Extract the tarball.
- Look for a file named README or similar. If you find one, it probably reiterates or supersedes the rest of these instructions. The file could also be called INSTALL , though this is often a file with generic installation instructions which are not really specific to this particular project.
- If there are files named something like Makefile.am you might need to be able to run automake to proceed.
- If there is a file named configure which is executable, run that. It will try to figure out what components you need to install in order to be able to proceed. If it runs successfully, you can proceed to the next step. If not, you need to understand why it failed, fix the problem, and goto 4.
- If there is a file named something like Makefile.yourplatform (so Makefile.linux for Linux, Makefile.BSD for *BSD, Makefile.suxix for Suxix, etc) try running make -f Makefile.yourplatform where obviously the name of the Makefile needs to be the correct one from the ones you found.
Otherwise, if there is a file named Makefile (or perhaps GNUmakefile or makefile ) run just make . This performs the actual compilation using the compiler, libraries, and auxiliary toolchain utilities which configure picked up back in step 4. If this fails, you have more work to do, probably way over your head unless you are familiar with writing portable programs in the language used in this project (commonly C or C++).
An error message from make simply indicates that something that make tried to run did not succeed. If you need to ask for help, the lines immediately before the error message from make are more useful diagnostics than the final laconic «something failed» message from make .
For reasonably modern projects, see if the site where you downloaded the source from would also have some instructions, and/or perhaps a collection of pre-built binaries for your platform. Sometimes there are third-party contributed builds for godforsaken platforms even if the main development happens on and focuses on U*x or specifically Linux.
How to open or extract .TAR.GZ, .TGZ or .GZ. Files in Windows 10
A file with the TGZ or GZ file extension is created using the Unix-based archival application tar and further compressed using GZIP Compression. These files are made up of a collection of files that have been placed in a TAR archive mainly for making storage and tracking easy. TAR files are often compressed once created; the compressed TAR files are called tarballs and sometimes use a “double” extension like “.TAR.GZ” but are usually shortened to “.TGZ” or “.GZ”.
How to extract .TAR.GZ, .TGZ or .GZ. file
.TAR.GZ, .TGZ or .GZ. files are typically seen with software installers on Unix-based operating systems like Ubuntu and macOS for data archival and backups. But they are sometimes used for regular data archiving purposes, hence, Windows 10 users may also come across such types of files and may need to extract its content.
Extracting a .TAR.GZ, .TGZ or .GZ. file is easy. They can be extracted using third-party applications like 7-Zip and PeaZip which are free and open-sourced. In addition to external apps, Windows 10 includes native support for TAR which can help you extract TAR files using simple Command Prompts. Today we discuss a few of these methods:
- Using third-party software
- Using the native tar commands
Let’s look at these two methods in detail.
1] Using third-party software
a] Open TGZ files with 7-Zip
7-Zip is a free, open-source file archiver with a high compression ratio. This software can be used on any computer, including the ones in a commercial organization. This utility program can help you extract compressed files and create your own compressed files in several different formats. To extract TAR files using 7-Zip, follow the below steps:
1] Open 7-Zip webpage and download either 32 or 64-bit 7-Zip version based on your System Type.
Note: To check your system type, open ‘Settings’ then go to ‘System’ and click on ‘About’.
2] Once downloaded, open the 7-Zip installer to install the software to your Windows system.
3] Next, open the 7-Zip app from the Search Menu.
4] Now, within the 7-Zip’s file browser go to the folder that includes your TGZ file.
5] Now select and right-click the TGZ file, hit, 7-zip, and press the Extract files to open the Extract window as shown below.
6] You will see a new folder path is already included in the ‘Extract to’ text box. But if you want you can modify this path as required.
7] Press ‘OK’ to extract the TGZ file.
8] Now, double-click the extracted TAR folder in the same 7-Zip window to open it.
Once you open the initial archive, double-click on the sub TAR folders/files to open and view the contents.
Read: How to zip and unzip files in Windows 10 using the built-in feature.
b] Convert TGZ Files to the ZIP Format using online TGZ converter
Windows 10’s File Explorer allows the users to extract ZIP Files. Intrinsically, you can open the contents of a TGZ file by converting it to the ZIP format first. Once the files are converted, users can utilize the ‘Extract All’ option to decompress the ZIP. You can convert TGZ files to ZIP format using online converters, here is how:
1] Open the Convertio web tool in your web browser. This is an Online TGZ (TAR.GZ) Converter that can convert files to and from tgz on the web.
2] Now select ‘Choose Files’ to select a TGZ archive to convert to ZIP.
3] Select the file from the folder and click ‘Open’ to add the file to the online converter.
4] Select the conversion type to ‘Zip’
5] Now hit the ‘Convert’ button to convert the archive.
5] 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 and hit Extract.
Now double click the ZIP’s extracted folder and open its content.
2] Open TAR files in Windows 10 using native tar commands
Windows 10 consists of native support for tar that you can use with Command Prompt to extract these files. In addition to this, users can use the Windows Subsystem for Linux (WSL) that brings native support for Ubuntu, Fedora, and SUSE, and therefore you can also access many Linux tools, including tar to instantly extract content from tarballs. Here we discuss the steps to use native tar commands on Windows 10 using Command Prompt and Ubuntu to extract contents of a .tar.gz file.
a] Extract .tar.gz, .tgz, or .gz tarballs using tar on Windows 10
For extracting .tar.gz, .tgz, or .gz files using tar on Windows 10, use these steps:
1] Open the ‘Start’ menu.
2] Search for ‘Command Prompt’
3] Right-click the first result and hit ‘Run as administrator’
4] Now type the below command to use tar to extract the files and hit ‘Enter’:
Make sure to update the syntax to include the source and destination paths.
Once the above steps are completed, you will have all the files and folder extracted to the specified destination.
b] Extract .tar.gz, .tgz, or .gz tarballs using tar on Linux on Windows 10
Another way of using tar on Windows 10 is by installing Ubuntu on your system. Once installed on your Windows 10 system follow the steps given below:
1] Launch ‘Ubuntu’ from the ‘Start’ menu
2] Now, type the below-given command to extract the content of .tar.gz file:
Make sure to update the syntax to include the source and destination paths.
3] Now hit the ‘Enter’ key.
Now, you will have all the files and folder extracted to the specified destination.