Home>Article> How to decompress tar.gz

How to decompress tar.gz

(*-*)浩
(*-*)浩 Original
2019-12-21 11:49:29 18242browse

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:

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

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:

cd /usr/src gzip -cd patchvnum.gz | patch -p0

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:
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