Yum is a background program for managing the RPM package, written in Python, and can be a very handy solution to the RPM dependencies. After establishing the Yum server, the Yum client can obtain the software package via HTTP and FTP, and use the convenient command to manage and update all the RPM packages and even the kernel updates.
I. Listing PACKAGE Documents
List all RPM packages that can be installed or updated in the repository
# Yum List
List specific available RPM packages in the repository that can be installed or updated and installed
# Yum List Perl//List of packages named Perl
# Yum List perl*//listing Perl at the beginning of the package
List all the RPM packages in the repository that can be updated
# Yum List Updates
List all the RPM packages that have been installed
# Yum List installed
List the RPM packages that have been installed but not included in the repository
# Yum List Extras
Note: Extras is the resource list name defined in REPOS.D
Ii. enumeration of resource information
Lists 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 installed RPM packages
# Yum Info perl//Listing Perl package information
# Yum Info perl*//List all packages at the beginning of Perl
List all the RPM packages in the repository that can be updated
# Yum Info Updates
List all the RPM packages that have been installed
# Yum Info installed
List information about the RPM packages that have been installed but 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 an RPM package that contains a specific filename
# YUM provides realplay
Iv. Management Pack
Install the RPM package
# yum Install Perl//install Perl package
# yum Install perl*//install Perl at the beginning of the package
Delete the RPM package, including the package that is dependent on the package
# yum Remove perl*//will delete perl-* all packages
V. Update
Check for updatable RPM packages
# yum Check-update
Update all RPM Packages
# Yum Update
Update the specified RPM package, such as update kernel and kernel source
# Yum Update kernel Kernel-source
Large-scale version upgrades, unlike Yum Update, even old obsolete packages are upgraded
# Yum Upgrade
Six, empty the cache
Clear staging of the RPM package file
# Yum Clean Packages
Clear staging of the RPM header file
# Yum Clearn headers
Clear the old RPM header files in the staging
# Yum Clean oldheaders
Clears the old RPM header files and package files in the 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*
Show key Information
# Rpm-qi Gpg-pubkey-a109b1ec-3f6e28d5
Delete key
# RPM-E Gpg-pubkey-a109b1ec-3f6e28d5