Common Yum commands

Source: Internet
Author: User

Based on RPM package management, the yum Package Manager can automatically download and install RPM packages from a specified server. It can automatically handle dependencies and install all dependent software packages at a time, which is easy to use.

Common Yum commands:

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 packages in the cache directory
Yum clean headers clear headers in the cache directory
Yum clean oldheaders clear files in the cache directory old headers
Yum clean, yum clean all (= Yum clean packages; YUM clean oldheaders) clears the packages and old headers in the cache directory.

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.