Install software packages in Linux (rpm and yum)

Source: Internet
Author: User

The following describes how to install the software package in linux:

Rpm and yum Installation

First, I will introduce the rpm installation method and command

Rpm is a software package management method developed by RedHat. With rpm, we can easily install, query, uninstall, and upgrade software. However, the dependency between rpm packages is often cumbersome, especially when software is grouped by multiple rpm packages. Yum (all called Yellow dog Updater, Modified) is a Shell front-end Package Manager in Fedora, RedHat, and SUSE. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent software packages at a time, you do not need to download and install it repeatedly. (1) You can run the rpm command to check the installation, uninstall, and upgrade of the software package.

Install

Rpm-I (install) Installation

-V details

-H. The progress bar is displayed during installation.

Generally, when we install a software package, these three commands are used together-ivh

-- Nodeps cancel dependency

-- Replacefiles is used to overwrite and install conflicting files.

-- Reolacekgs replaces installed software packages

-- Prefix indicates the installation path of the software package.

Query

Query the software package by rpm-q

-A all

-Qa: Query all software packages

-Qip: query the packages that have not been installed + package name and Path

-Qi: Query installed software packages + Package Names

-L location

-Ql: query the installed software package location + package name

-Qlp queries which files + package names and paths are contained in the software package.

-Qf is used to query the software package of a file.

Uninstall

Rpm-e package name

Upgrade

Rpm-uvh can be upgraded and installed.

-Only software upgrades can be performed for fvl.

Verification

If no information is displayed during rpm-V verification, it indicates that the file is correct.

Digital Signature

Rpm-K is used to detect your digital signature + package name

Rpm -- import your public key file + Public Key File

The only inconvenience with rpm is the lack of a better solution to the dependency between packages.

(2) yum

Yum = Yellow dog Updater. Modified is mainly used to conveniently add, delete, and update RPM packages. It automatically solves the dependency problem of packages.

Yum

Yum list installed

Available

Repolist to view the number of repoids

Info

Install the package to check the dependency and Press y to automatically resolve the dependency, and the dependent software package will be automatically installed with-y to automatically install the dependent software package, instead of every step. This is the advantage of yum.

Remove uninstall software package

Package Group

Yum groplist

If the gropinstall Software Package group contains spaces, the system automatically installs all Dependencies by adding-y.

Delete a group

Gropinfo

Yum clean all clear cached files

If you want to update the file, we need to first install the createrpo-0.4.11-3.e15.noarch.rpm and then execute

Createrepo-g + group file name to update files

The above are two methods for installing the software package: rpm and yum. If anything is wrong, please contact me!

Related reading:

RPM

Create your own RPM package

Directory structure and configuration after RPM installation in Linux

Brief Introduction and demo of RPM and yum

Install yum and RPM in Linux (2)

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.