Yum installation and cleaning

Source: Internet
Author: User
Yum installation and cleaning Yum (all called YellowdogUpdater, Modified) is a Shell front-end package manager in Fedora. Based on RPM Package management, you can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all... yum installation and cleaning Yum (all called Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora. Based on RPM Package management, you can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent software packages at a time, you do not need to download and install it repeatedly. In our usual CentOS software installation, the yum command is faster in finding the rpm in the installation disk. some common commands collected are as follows: 1. command for listing any software that can be updated: yum check-update 2. install Any update software command: yum update 3. only install the specified software command: yum install *** 4. update only the specified software command: yum update *** 5. list any security? Software list command: yum list is often used to install and delete software with YUM. yum is also competent for this task, as long as the software is installed with rpm. The installation command is: yum install xxx. yum queries the database to check whether this software package exists. If yes, check its dependency conflict. If no dependency conflict exists, download and install it; if yes, you will be prompted to check whether you want to install dependencies or delete conflicting packages at the same time. The delete command is yum remove xxx, which is the same as the installation. yum also queries the database and provides a prompt to solve the dependency. 1. run the YUM install *** command to install the software package. run the YUM remove *** command to delete a software package using yum to query software information. we often encounter this situation. to install a software, we only know that it is related to a certain aspect, but he cannot know his name exactly. In this case, the yum query function takes effect. You can use commands such as yum search keyword to search. for example, if you want to install an Instant Messenger, but you do not know which one is available, you can use commands such as yum search messenger to search, yum searches for any available rpm descriptions and lists any rpm packages related to messeger in the descriptions. in this case, we may get gaim, kopete, and so on, and select from them. Sometimes we install a package without knowing its purpose. we can use the yum info packagename command to obtain information. 1. run the YUM search package command: yum search *** 2. list any installable software package commands: yum list 3. command for listing any updatable software packages: yum list updates 4. list any installed software package commands: yum list installed 5. list any installed but not in Yum Repository? Que na ?? /Div> command: yum list extras 6. command for listing the specified software package: yum list *** 7. command: YUM info *** 8. command for listing information of any software package: yum info 9. command for listing any updatable software package information: yum info updates 10. list any installed? Command: yum info installed 11. list any installed? But not in Yum Repository? Que na ?? Bank? /Div> command: yum info extras 12. list the document commands provided by the software package: yum provides clears the YUM cache. yum stores the downloaded software package and header in the cache, but does not automatically delete it. If we think they occupy disk space, we can use the yum clean command to clear it. more accurately, we use yum clean headers to clear the header and yum clean packages to clear the downloaded rpm package, yum clean all is a brain. 1. command: yum clean packages 2. run the yum clean headers command in the/var/cache/yum directory to clear the headers. clear the old headers command in the cache Directory (/var/cache/yum): yum clean oldheaders 4. clear the software packages in the cache Directory (/var/cache/yum) and the old headers command: yum clean, yum clean all (= yum clean packages; yum clean oldheaders ).
 
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.