Linux packaging compression and loading

Source: Internet
Author: User

First, packaging compression

(1) Tar: Package unpacking command

TAR-CXZJVF packaged files to package directory

-C: Package folder

-X: Unpacking folders

-Z: Compressed in gzip format with a default compression factor of 6 times times

-j: Compressing in bzip2 format

-V: Displays information about packaging and unpacking

-F: Immediately following an archive, the packaged file

Example of a packaged file: TAR-CVF My.tar./yukai/(Yukai as a folder)

Unpacking file Example: TAR-XVF My.tar

(2) GZIP,BZIP2: Extract command

Zip files: gzip My.tar

Unzip file: gzip-d my.tar.gz

-D: Unzip

(3) Packing and compressing: TAR-CZVF haha.tar.gz./yukai/

Unpacking and decompression: TAR-XZVF haha.tar.gz

  II. Safety Loading and unloading

(1) dpkg: Ann Loading and unloading

Installation: sudo dpkg-i file name

Uninstall: sudo dpkg-r package name

(2) Apt-get: Upgrade to dpkg command, online installation

Online Installation: sudo apt-get-install package name

Online Uninstall: sudo apt-get-remove package name

Linux packaging compression and loading

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.