Linux commands (vi)--Package management (install application)

Source: Internet
Author: User
Tags bz2

Similar to the Windows installation of various applications, it is possible to install a variety of applications, often referred to as software packages, under Linux. At present, the common package format in Linux system mainly include: RPM package, tar package, bz2 package, GZ package, Deb package, SH end file, src source code package, bin file, the following describes several commonly used software packages.

One, RPM package

In the mainstream Linux system, most software installation, upgrade, removal and maintenance work is done using the RPM package management program.

RPM Package Format:name-version.type.rpm software name - version number . Package Type . RPM

1. installation :rpm-ivh <rpm package name >

2. Uninstall :rpm-e <rpm package name >

3. upgrade :RPM-UVH <rpm package name >

4. query :rpm [ parameter ] <rpm package name >

Common parameters:rpm-qa all rpm packages installed in the query system

Rpm-q <rpm Package name > Query Specifies whether the package is installed

RPM-QP <rpm Package file name > Query package for information about the package, before installation

Rpm-qi <rpm Package name > Query System description information for installed packages

RPM-QL <rpm Package name > Query System The files contained in the installed package

RPM-QF <rpm Package name > Query System The package that the specified file belongs to

Rpm-qa | grep PHP Retrieval system has installed a package about PHP

5. Verification :rpm-v [ parameter ]

Second, the TAR package

Tar package suffix:. Tar Generic, non-compressed file package;. tar.gz Compressed Packages

1. Establish TAR Package: Packages multiple files or directories into a single file.

Tar cvf <tar package name > < file or directory name >   tar package name suffix . Tar

Tar zcvf <tar package name > < file or directory name > tar package name suffix . tar.gz

2. Enquiry contents in TAR package

tar tf <tar package name >   tar package name suffix . Tar

tar ztf <tar package name > tar The package name suffix is . tar.gz

3. Release TAR Package

Tar xvf <tar package name > tar package name suffix . Tar

tar zxvf <tar package name > tar The package name suffix is . tar.gz

Three, bz2 bag

Bzip2 is a more compressed program, andthefile ending with ". tar.bz2" is a bzip2 compressed file.

Four, GZ package

Gzip is a compression program thatends with ". tar.gz" files that are gzip -compressed.

V. SRC Source code package

1. Release the tar package before installing

2. View Install and Readme Files to understand the installation and compilation process

3. Prepare for compilation: Execute ./configure command +make command to compile

4. Install the software: Execute Make Install Command

5. Clear temporary files: Execute Make Clean Command

Linux commands (vi)--Package management (install application)

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.