Use of Yum Warehouse

Source: Internet
Author: User

The purpose of Yum is to solve the problem of rpm dependency, so as to facilitate users to install and upgrade the software.

Support for Yum is provided by default in RHEL5.

Yum's basic workflow:

Server side: All the RPM packages are stored on the server, then the dependencies of each RPM file are analyzed by command, and the data is recorded as files on the server. (HTTP, FTP)

Client: The installation software is, through the Yum Server record dependency relationship file, download dependencies need all relevant software, automatically download and install.

Yum warehouse in simple terms, is the location of the RPM package and metadata file

Various information about the metadata file:

Primary.xml.gz

List of all RPM packages, dependent

List of files generated for each RPM package installation

Filelists.xml.gz

All file lists for all RPM packages in the warehouse during the period

Other.xml.gz

Additional information, RPM package modification log

Repomd.xml

The timestamp and checksum of the above three software are recorded

Grouping information for comps-rhel5-server-core.xml:rpm packages

Yum Warehouse configuration requires a Yum source, we point the metadata file (repodata) to the directory as the Yum warehouse.

CD as Yum Source:

When you use a CD as a Yum source, you only need to mount the disc to a local directory

# Mount-r/dev/cdrom/media/cdrom

To create a local yum warehouse:

1, Createrepo Warehouse path (Createrepo also need to use package installation)

# CREATEREPO/YUM/VT

(provided that the packages in the VT directory in the Yum source are copied to the/yum directory)

Example: # cp/media/cdrom/vt/*.rpm/yum/vt/

2. Define repo file for yum, specify path of Yum Warehouse

3, view repo list and its brief information

How to define a repo file for Yum

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.