1. the link for yum on the Internet requires a repodata directory, which is the place where the software attributes generated after analysis of RPM software depend on each other. 2. configuration file:/etc/yum. repos. d/CentOS-Base.repo, can also be created under this directory. the repo suffix is enough... 1. the link for yum on the Internet requires a repodata directory, which is the place where the software attributes generated after analysis of RPM software depend on each other. 2. configuration file:/etc/yum. repos. d/CentOS-Base.repo, you can also create a file with the. repo suffix under this directory on the line [base]: represents the name of the container! The scratch mark must exist, and the name in it can be obtained at will. However, there cannot be two identical container names. otherwise, yum will not know where to find the container-related software list file. Name: it just describes the significance of this container. it is of low importance! Mirrorlist =: list the ING platforms that can be used by the container. if you do not want to use the ING platform, you can annotate it in this line. baseurl =: this is the most important, because the actual URL of the container is followed! The mirrorlist is a map platform captured by the yum program. baseurl is a fixed container URL! The URL we just found is here! Enable = 1: enables the container to be started. Enable = 0 if you do not want to start it! Gpgcheck = 1: Do you still remember the RPM digital signatures? This specifies whether to check the digital signatures in the RPM file! 0 indicates no detection. Gpgkey =: the position of the public key of the digital signature! Use the default value www.2cto.com 3. general settings: [root @ www ~] # Vi/etc/yum. repos. d/CentOS-Base.repo [base] name = CentOS-$ releasever-Basebaseurl = http://ftp.twaren.net/Linux/CentOS/5/ OS /i386/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 4. check whether the container configuration takes effect: yum repolist all
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