Package Management--yum In-depth detailed

Source: Internet
Author: User
1, yum configuration file (/etc/yum.conf), repo file (/ETC/YUM.REPOS.D) detailed

Http://www.centos.org/docs/5/html/5.1/Deployment_Guide/c1-yum.html


2, yum special parameters

--INSTALLROOT=ROOT Specifies the root directory when installing software
--enablerepo=repoidglob temporarily enable a download source
--disablerepo=repoidglob temporarily deactivate a download source
--exclude=package Exclude a Package
--noplugins temporarily deactivate all plugins
--disableplugin=plugin temporarily deactivate the specified plugin


3, Case 1: Disable a source

Why should the source be banned.

"Note: If you are considering using a Third-party software library, you should seriously consider how to prevent" updates "from these repositories from inadvertently taking over the core part of CentOS. One of these methods defaults to deactivating them, enabling them if necessary, "http://wiki.centos.org/zh/AdditionalResources/Repositories?action=show&redirect =zh%2frepositories

Edit/etc/yum.repos.d/example.repo
Enabled=0

Or

Yum--disablerepo=some-repository Install Some-package
Yum--enablerepo=some-disabled-repository Install Some-package


YUM Remove Repo (Repository) –yum Disable repo (Repository), http://www.if-not-true-then-false.com/2010/ yum-remove-repo-repository-yum-disable-repo-repository/


4, CentOS use of the software library

Http://wiki.centos.org/zh/AdditionalResources/Repositories?action=show&redirect=zh%2FRepositories

Well-known Third-party software libraries: Rpmforge, Elrepo, Atrpms, Epel, and Rpmfusion



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.