Linux Package Management

Source: Internet
Author: User

RPM Package

Naming format: File name-Version number-revision number. Product type. Hardware platform. rpm

RPM command format: RPM [Options] Package file name

Common options:

-I installs a new package.

-U upgrades existing packages. If it does not exist, the package is not installed.

-e Uninstalls the installed packages.

-V Displays the detailed installation process.

-H Displays the installation progress bar with "# #".

-Q queries the database of installed packages.

Common usage Examples:

Installation: RPM-IVH Software file Package name

Uninstall: RPM-EVH Software file Package name

Note: The dependencies between RPM packages are often cumbersome, especially when the software is made up of multiple RPM packages, and the corresponding dependency packages need to be installed before the installation can proceed.

Reference Example:

1. Check the installation of the VSFTPD software package.

Rpm-qa|grep vsftpd

If the display result contains "vsftpd-2.2.2-6.e16.i686", the system already has the VCFTPD package installed.

2, if the system does not install VSFTPD software package, you can enter the installation CD Pachages directory, enter the following command to install:

RPM-IVH vsftpd-2.2.2-6.e16.i686.rpm

3, VSFTPD package verification.

Rpm-v vsftpd

Yum Management software Package

Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat and SuSE. Based on RPM package management, the ability to automatically download the RPM package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without the tedious download and installation.

The syntax format for the Yum command is abbreviated:

Yum [Options] Package name

Common options:

Install installs the specified packages, and installs dependent underlying packages to automatically resolve dependencies.

Update updates the installed packages on the system and updates all packages in the entire system without specifying the package name.

Check-update Check if the package is updated.

Remove deletes the specified package and deletes other packages that depend on the specified package.

Info Query Package Description and summary information.

Deplist queries the packages that have dependencies on the specified package, including dependencies on the specified package, and the underlying support package that specifies the dependencies of the package.

Groupinstall Installing the specified software group

Groupupdate Update the specified software group

grouplist Query software group.

Groupremove deletes the specified software group.

Configuration of Yum

The Yum command uses the/etc/yum.conf configuration file settings,

Linux Package Management

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.