The following are the contents of the man 5 yum.conf
Repositoryid This identity must be unique
Name of the Warehouse
BaseURL point to Warehouse (address + directory)
The URL can be HTTP./ftp://file://
Note: There must be no spaces around the equals sign
The file in the specified warehouse can also have the following parameters:
mirrorlist specifies a file at the far end, and the content of this file is the URL. This way, you can simply maintain the download path. If you want to use Mirrorlist,yum, you must support plug-in features
Enable whether the warehouse is enabled, enabled by default (1)
Gpgcheck whether to verify the validity of the package obtained from the warehouse 1 for verification
Repo_gpgcheck verifies that metadata is valid metadata is the package list 1 for validation
Gpgkey=url specifying credentials for verifying package legitimacy GPG file
Enablegroups whether the package group is used by default is 1 allowed
What if the URL in failovermothed baseurl fails? The default use of polling, in fact, is random. Use priority is sequential use. Cost default value of 1000 sets the priority of the warehouse
A warehouse file for the default device
How to create a file that points to a warehouse
The main is 3 parameters
Repositoryid This is essentially a name that describes BaseURL as a repository link, but this link is a link to repodata. Repodata is a mandatory file for the Yum repository, which contains information about the warehouse
Pointing to the current warehouse
These are the warehouses that are pointed to in the Centos-base.repo file
Create a Yum repository
Createrepo This package is used to generate the Repodata file, with the Repodata file to have the Yum repository
The options for Createrepo are:
-u Specifies all packages baseurl don't know what to do with the case.
-o Specifies the output directory
-x specifies which packages are not included in the Repodata
-i specifies which packages repodata contain
Install the Repodata package first
Created a repodata file
Then/tmp/b is a yum source.
Then create a Local_test.repo
See, the new Yum source has emerged.
Linux Yum's Yum Warehouse