The common use of YUM commands in the CentOS system

Source: Internet
Author: User

1. Introduction to Yum installation software in the CentOS system:

Yum (Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat as well as in 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.

Yum provides commands to find, install, and delete one, a group, or even all of the packages, and the commands are concise and well-remembered.

  Yum [options] [command] [package ...]

  Options : optional, option includes-H (Help),-y (when the installation process prompts you to select all "Yes"),-Q (does not show the installation process)

command: the operation to be performed.

   The object for the package operation.

2.yum Common Command operations:

1. List all updatable software inventory commands: Yum check-update

2. Update all software commands: Yum update

3. Install only the specified software commands: Yum install <package_name>-can add-y parameters;

4. Update only the specified software commands: Yum update <package_name>

5. List all installed software inventory commands: Yum list

6. Remove Package Command: Yum remove <package_name>

7. Find Package Command: Yum Search <keyword>--can use regular match

8. Clear the Cache command:

Yum Clean Packages: Clear the cache directory for packages

Yum Clean headers: Clear headers in cache directory

Yum Clean oldheaders: Clears the old headers from the cache directory

Yum Clean, yum clear all (= Yum packages; yum oldheaders): Clears the cache directory of the package and the old headers

3. More useful yum sources in China

NetEase (163) Yum Source is one of the best yum sources in the country, both speed and software version, are very good.

http://mirrors.163.com/

Zhong ke yum Source, installation method view: Https://lug.ustc.edu.cn/wiki/mirrors/help/centos

Sohu Yum Source Installation method view: http://mirrors.sohu.com/help/centos.html

* * Above is a Yum source configured as a network.

    

  

  

  

Common use of YUM commands in CentOS systems

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.