Linux different versions of package installation

Source: Internet
Author: User

Linux generally has two kinds of packages, one is called source package, the other is called binary package.

The source package is a non-compiled package that can be run on any platform and customizable after compilation. Generally ends with. SR c.rpm.

A binary package is a compiled package that is only available on a certain platform. Suffixes are generally not. src, only. RPM ends.


Linux under the mainstream installation method:

One is the rpm(Red Hat package Manager) installation, which requires a dependency relationship to be resolved.

One is the dpkg(Debianpackage), which also needs to address dependencies.

There are also yum installations that automatically install dependent packages.


where rpm is suitable for use in CentOS or Redhat systems,

dpkg is suitable for use in Ubuntu and Debian.


RPM can install, delete, upgrade, and manage software released in RPM packages, or query which files are included in the RPM package

Rpm-q A (query) query (all)

Rpm-u Update #大写U

Rpm-e means Uninstall

Rpm-i installing the specified package file

RPM-V Display Instruction Execution process

Rpm-c displaying the file's configuration file

Rpm-f query for dependent packages with specified files


More commonly used are the following situations:

Installing RPM-IVH package.rpm

Update RPM-UVH new-package.rpm

Uninstalling Rpm-e old-package.rpm


The use of dpkg and Yum will be more specific in the future.



Linux different versions of package installation

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.