Yum commands in general

Source: Internet
Author: User
Tags gpg install perl

Yum is a background program for managing RPM packages, written in Python, and can be easily resolved with RPM dependencies. After the Yum server is established, the Yum client can obtain the package via HTTP, FTP, and manage it directly, update all RPM packages with convenient commands, even including kernel updates. It can also be understood as the APT management tool under the red flag environment.

Previously wrote a copy of [original] using Yum to update Red Flag Linux, but the command mentioned in it is not very complete, and then tidy up a bit.

I. Enumerating package files

List all RPM packages that can be installed or updated in the repository

# Yum List

Lists the specific RPM packages that can be installed or updated and installed in the repository

# Yum List Perl//List of packages named Perl

# Yum List perl*//list the packages at the beginning of Perl

List all RPM packages that can be updated in the repository

# Yum List Updates

List all RPM packages that have been installed

# Yum List installed

List RPM packages that have been installed but are not included in the repository

# Yum List Extras

Note: Extras is the name of the resource list defined in REPOS.D

Ii. enumeration of resource information

List all the RPM packages that can be installed or updated in the repository

# Yum Info

Lists the specific information in the repository that can be installed or updated and the RPM packages that have been installed

# Yum Info perl//List Perl package information

# Yum Info perl*//List all packages at the beginning of Perl information

List information about all RPM packages that can be updated in the repository

# Yum Info Updates

List all the RPM packages that have been installed

# Yum Info installed

Lists information about the RPM packages that have been installed but are not included in the repository

# Yum Info Extras

Third, search

Search for RPM packages that match specific characters

# Yum Search Perl/searching in Package name, package description, etc.

Search for RPM packages with a specific file name

# YUM provides realplay

Iv. Management Pack

Installing RPM Packages

# yum Install Perl//Installation Perl package

# yum Install perl*//install Perl at the beginning of the package

Remove RPM packages, including packages that are dependent on the package

# yum Remove perl*//will remove all perl-* packages

Five, update

Check for updatable RPM packages

# yum Check-update

Update all RPM Packages

# Yum Update

Update specified RPM packages, such as update kernel and kernel source

# Yum Update kernel Kernel-source

A large-scale version upgrade, unlike Yum Update, even the old obsolete package is upgraded

# Yum Upgrade

Six, empty the cache

Clear the Staging RPM package file

# Yum Clean Packages

Purge the RPM header files in the staging

# Yum Clearn headers

Clear the old RPM header files in the staging

# Yum Clean oldheaders

Purge old RPM header files and package files in staging

# Yum Clearn

Or

# Yum Clearn All

Vii. Other

Install livna.org RPMs GPG key

# RPM--import Http://rpm.livna.org/RPM-LIVNA-GPG-KEY

Check GPG Key

# Rpm-qa gpg-pubkey*

Display key Information

# Rpm-qi Gpg-pubkey-a109b1ec-3f6e28d5

Delete key

# RPM-E Gpg-pubkey-a109b1ec-3f6e28d5

Yum commands in general

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.