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