Common yum commands in Centos

Source: Internet
Author: User
Update and upgrade: yumupdate updates all yumupdatepackage updates packageyumupdatedhcpyumcheck-update to check updatable programs

 

Update and upgrade: yum update all update yum update package update specify package yum update dhcp yum check-update check updatable programs to find and display yum info Display the installation package information yum info dhcp yum list show all packages that have been installed and can be installed yum list Display the installation status of the specified package yum search Find the software package deletion program yum remove or erase package to delete the package. note: yum stores the downloaded software package and header in the cache, but does not automatically delete the package. If we think they occupy disk space, we can clear them using the yum clean command. yum clean headers clear header yum clean packages clear downloaded rpm package yum clean all clear header and rpm package. yum advanced management application Tip 1: Speed up your yum. using yum extension plug-in yum-fastestmirror, I personally think this plug-in is very effective, the speed is really a significant improvement skill 2: Software Group installation sometimes we have installed the system, there is a kind of software not installed, for example, we can use software packages to install development kits. # Yum grouplist to list all software packages. for example, we want to install and develop the related packages # yum groupinstall "Development Libraries" # yum groupinstall "Development Tools". for example, we want to install Chinese support # yum groupinstall "Chinese Support" # yum deplist package1 # view the package1 dependency of the program. you can use man to view and upgrade all command parameters: # yum install kernel-headers kernel-devel

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.