Yum full parameters

Source: Internet
Author: User
Tags string find
Some common commands are summarized as follows: 1. install yuminstall all install yuminstallpackage1 install the specified installation package1yumgroupinsallgroup1 installer group group12 update and upgrade yumupdate all update yumupdatepack...

Some common commands are summarized as follows:
1 installation
Install yum install all
Yum install package1 install the specified installation package1
Yum groupinsall group1 installer group group1
2. update and upgrade
Yum update all updates
Yum update package1 update specified package1 package1
Yum check-update check updatable programs
Yum upgrade package1 upgrade specified package1 package1
Yum groupupdate group1 upgrade program group group1
3 search and display
Yum info package1: package1
Yum list displays all installed and installable packages
Yum list package1 displays package1 installation of the specified package
Yum groupinfo group1 display group1 information of the program group yum search string find the installation package based on the keyword string
4. delete a program
Yum remove | erase package1 delete package1
Yum groupremove group1 delete group1
Yum deplist package1 check package1 dependencies
5. clear cache
Yum clean packages clear software packages in the cache Directory
Yum clean headers clear headers in the cache Directory
Yum clean oldheaders clear old headers in the cache Directory
Yum clean, yum clean all (= yum clean packages; yum clean oldheaders) clear the packages and old headers in the cache Directory
For example, to install a game program group, first perform the following operations:
#: Yum grouplist
It can be found that the installable game package name is "Games and Entertainment", so that you can install it:
#: Yum groupinstall "Games and Entertainment"
All game packages are automatically installed. Here, the names of Games and Entertainment must be selected in double quotation marks, because the names of Games and Entertainment are ended when spaces are encountered in linux, therefore, you must tell the system to install the package named "Games and Entertainment" instead of "Games ".
You can also modify the configuration file/etc/yum. conf to select the installation source. It can be seen that the configuration program of yum is easy for many parties. For more detailed options and commands, you only need to follow the command prompt line below: man yum

Author "programmer"

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.