Linux Yum's Yum Warehouse

Source: Internet
Author: User

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

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.