Update list of Linux Yum installation package

Source: Internet
Author: User

Learn how to install yum in Linux. Learn how to compile and run yum in Linux. Linux Yum can improve the ease of use performance. Linux yum.

What is Linux yum?

Yum = yellow dog Updater. Modified is mainly used to conveniently Add/delete/update RPM packages. It can automatically solve the dependency problem of packages and facilitate management of a large number of system updates.

Linux Yum features

You can configure a simple configuration file (/etc/yum. conf) for multiple resource libraries (repository) at the same time to automatically solve the dependency problems encountered when adding or deleting an RPM package. This makes it easy to maintain consistency with the RPM database.

Install linux yum

Built-in centos (Yum-*. noarch. rpm) # rpm-IVH
Yum-*. noarch. RPM first needs to import the system's RPM-GPG-KEY before enabling yum for the first time: # rpm -- Import
/Usr/share/doc/centos-release-3 (4)/RPM-GPG-KEY-CentOS-3 (4) Yum directive Note: when used for the first time
When the yum or yum resource library is updated, yum will automatically download all the required headers and place them in the/var/Cache/Yum Directory, which may take a long time.

Linux Yum package update

Check the updatable RPM package
# Yum check-Update update all RPM packages
# Yum Update the specified RPM package, such as updating the kernel and kernel source
# Yum update kernel-source large-scale version upgrade. Unlike Yum update, the old obsolete package is also upgraded.
# Yum upgrade
Installation and deletion of RPM packages
Install RPM packages like xmms-mp3
# Yum install xmms-mp3 Delete RPM packages, including packages that depend on the package
# Yum remove licq Note: you will also be prompted to delete licq-gnome, licq-QT, licq-Text

Parameters related to Linux Yum temporary storage (/var/Cache/Yum /)

Clear temporary RPM package files
# Yum clean packages clear the temporary RPM header file
# Yum clearn headers clear the existing RPM header file
# Yum clean oldheaders clear the existing RPM header files and package files in the temporary storage
# Yum clearn or # Yum clearn all note: equivalent to Yum clean packages + Yum clean oldheaders

Linux Yum package list

List all RPM packages that can be installed or updated in the resource library
# Yum list specific rpm packages that can be installed or updated and installed in the resource library
# Yum list Mozilla
# Yum list Mozilla * Note: Match characters can be used in RPM package names, for example, to list all RPM packages starting with Mozilla
List all updates to the RPM package in the resource library
# Yum list updates list all installed RPM packages
# Yum List Installed list of RPM packages installed but not included in the resource library
# Yum list extras Note: Download the installed RPM package from other websites

RPM package information display (the info parameter is the same as the list)
Lists information about all RPM packages that can be installed or updated in the resource library.
# Yum info lists the specific information of the RPM packages that can be installed or updated and installed in the resource library.
# Yum info Mozilla
# Yum info Mozilla * Note: Match characters can be used in RPM package names, for example, to list all RPM packages starting with Mozilla
Lists information about all the RPM packages that can be updated in the resource library.
# Yum info updates lists information about all installed RPM packages
# Yum info installed lists the RPM packages installed but not included in the resource library
# Yum info extras Note: Download the installed RPM package information from other websites

Search for Linux Yum package

Search for RPM packages matching specific characters
# Yum search Mozilla Note: Search for the RPM package name and Package Description
Search for RPM packages with specific file names
# Yum provides realplay
Add Resource Library
For example, add rpm.livna.org as the resource library.
Install livna.org RPMs GPG key
# Rpm -- import http://rpm.livna.org/rpm-livna-gpg-keycheck GPG key
# Rpm-Qa GPG-pubkey * displays key information
# Rpm
-Qi gpg-pubkey-a109b1ec-3f6e28d5 (Note: If you want to delete the key, use # rpm-e
Gpg-pubkey-a109b1ec-3f6e28d5)

Http://blog.donews.com/ecco2005/archive/2006/12/01/1088447.aspx

Related Article

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.