Home Common Problem How to decompress tar.gz

How to decompress tar.gz

Dec 21, 2019 am 11:49 AM
Unzip

How to decompress tar.gz

The file with the suffix ·tar.gz is a kind of compressed file, which is common under Linux and macOS. Both Linux and macOS can directly decompress and use this compressed file.

WinRAR under windows can also be used, which is equivalent to the common RAR and ZIP formats.                                                                                                                                                                               (Recommended learning: phpstorm)

.tar.gz is generally an installation package of source code, which needs to be decompressed first, compiled and installed before it can be executed. All in all it is a compressed file.

Decompression: [*******]$ tar -zxvf FileName.tar.gz

Compression: [*******]$ tar -zcvf FileName.tar.gz DirName

is a tarball file. The so-called tarball file actually means that all the source code files of the software are first packaged with tar and then compressed with compression technology. Usually the most common It's compressed with gzip.

Because the functions of tar and gzip are used, the general file extension name of tarball files will be written as .tar.gz or abbreviated as .tgz.

Installation steps in Red Hat Linux system

Users can also download the compressed file from www.kernel.org or its mirror site. If this is the case, the user must first use the following command to decompress and release the document, where vnum is the version number:

1

2

cd /usr/src

gzip -cd linux一2.2.vnum.tar.gz | tar xfv 一

Copy after login

For some revisions, all the user needs to do may be to apply a patch. Make some upgrades to your current kernel source code.

"Patch" is used to make necessary modifications to a source code file.

The process of installing the patch is: download the patch file and execute the following command. The patch file is first decompressed and then modified through the patch command, as shown below:

1

2

cd /usr/src

gzip -cd patchvnum.gz | patch -p0

Copy after login

The above is the detailed content of How to decompress tar.gz. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to fix runtime error 339 on Windows 11/10 How to fix runtime error 339 on Windows 11/10 May 13, 2023 pm 11:22 PM

There can be several reasons why runtime error 339 occurs when running a program. Some of them may be that some ocx or dll files are missing, damaged or the dll or ocx is not registered. This would be an annoying experience for the smooth execution of the application. Here are some of the possible error messages you may see for Runtime Error 339 Error – Runtime Error 339: Component DUZOCX32.OCX is not registered correctly or the file is missing. Error – Runtime Error 339. Component MSMASK32.ocx or one of its dependencies is not registered correctly; the file is missing or invalid. Error – Runtime Error '339': Component 'FM20.DLL' or one of its dependencies was not correctly noted

How to decompress an iso file How to decompress an iso file Feb 19, 2024 pm 04:07 PM

An ISO file is a common disc image file format that is typically used to store the entire contents of a disc, including files and file systems. When we need to access the contents of the ISO file, we need to decompress it. This article will introduce several common methods to decompress ISO files. Decompression using a virtual optical drive This is one of the most common methods of decompressing ISO files. First, we need to install a virtual optical drive software, such as DAEMON Tools Lite, PowerISO, etc. Then, double-click the virtual optical drive software icon

How to use Go language to compress and decompress files? How to use Go language to compress and decompress files? Jun 09, 2023 pm 09:31 PM

With the continuous development of computer technology, file processing has become an essential part of computer users' daily work. As the amount of file storage continues to increase, compressing files has become a very necessary operation. In this process, using Go language for file compression and decompression has become a topic of great concern. The Go language itself provides a rich standard library, which includes related tool functions for processing file operations. It is precisely because of this that using Go language for file compression and decompression operations is compared to other

What should I do if I can't find the decompression option when I right-click on the rar file? What should I do if I can't find the decompression option when I right-click on the rar file? Mar 13, 2024 pm 07:07 PM

How to decompress rar files downloaded from the Internet? Under normal circumstances, you can just right-click and select Extract. However, some users right-click and find that they cannot find the decompression option. What is going on? In fact, it is caused by everyone not making relevant settings for the winrar software. You just need to make settings. The specific steps are as follows: 1. First, we open "winrar" on the computer. 2. Select "Options" in the toolbar and click "Settings". 3. Then select the "Integration" option above, and click "Context Menu Item" after entering. 4. At this time

How to decompress files with Xunlei for free Tutorial on decompressing files for free How to decompress files with Xunlei for free Tutorial on decompressing files for free Mar 12, 2024 pm 10:16 PM

Many friends should be very concerned about using it. When downloading some compressed packages, they want to know how to decompress some of the files for free. It’s okay to learn more about this. If you know how to decompress it for free, we won’t have to worry so much when downloading the compressed package in the future. We can decompress it directly on it, and for some functions It can also be used to make better choices, but some of the steps are relatively operational. In order to allow more users to have a better detailed understanding and understanding of various aspects, the editor This is going to explain to you some of the free decompression methods. Don’t miss it. Hurry up and give it a try with the editor. Don’t miss it.

Does win11 come with decompression software? Does win11 come with decompression software? Mar 16, 2023 pm 03:34 PM

Win11 comes with decompression software; however, this tool only supports rar and zip formats, and cannot decompress other formats. How to use the decompression software that comes with win11: 1. Select the compressed package that needs to be decompressed, right-click the mouse and select Extract All; 2. Click Browse to select the location to be saved; 3. Select the folder of the storage location and click "Select File folder"; 4. Check "Show extracted files when completed"; 5. Click the "Extract" button.

How to unzip all archives in a folder and its subfolders at once How to unzip all archives in a folder and its subfolders at once Apr 15, 2023 am 09:55 AM

Let's say you have around 100 archive files in rar or zip format spread across multiple directories. Of course, it is not an easy task to unzip all these files by right-clicking on each file and then clicking on the "Extract" option. Obviously, you're here to automate this process in some way. Well, we've got your back. In this article, we explain in detail how to easily unzip all archives in a folder and its subfolders at once. NOTE: Please make sure you have the 7-Zip software installed on your machine. If not, you can get it from here. Step 1: On the taskbar, click the Search icon. Step 2: In the search bar, enter Notepad and select Notepad app from the Best Matches section. Step 3: When Notepad opens

How to deal with Win10 display problems caused by damaged decompressed files How to deal with Win10 display problems caused by damaged decompressed files Dec 27, 2023 am 09:41 AM

When using a win10 computer, when using some compressed files, a message appears that the decompressed file is damaged, resulting in the compressed file being unable to be opened for use. We can try to repair the compressed package. If it cannot be repaired, we can only re-download the compressed package. What to do if the decompressed file is damaged after win10 displays: 1. Use compression software to open the file, right-click on the file, and we can select. 2. If the compressed package is damaged and cannot be repaired, we can only download it again. 3. If the downloaded compressed package is still damaged, it is the cause of the compressed package itself. 4. Our best solution is to change the download source for downloading.