
586
|
Chapter 5: Package Management
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
use multiple repositories. When they are downloaded to your system, the header
and package files are maintained in /var/cache/yum.
The configuration file, /etc/yum.conf, is where you customize yum. It consists of
two section types. The first section, [main], sets configuration defaults for yum
operation. This section is followed by [server] sections, where each server is
named according to the repository it specifies. For example, for Fedora Core, you
might have [base] for the base Fedora Core repository and [development] for the
development repository.
The server sections can also be stored, one to a file, in /etc/yum.repos.d. yum
comes with a default yum.conf file, which you can use as is or as a starting point
from which to add additional repositories.
The yum Command
The yum command is an automated system for updating rpm-based packages,
particularly on Fedora Core and Red Hat Enterprise Linux. Yum can automati-
cally install, upgrade, and remove packages. In addition to individual packages or
a list of packages, yum can operate on an entire group of packages at a time.
When you run yum, it first updates the cache (unless you tell it not to with the -C
option); then it proceeds to perform the requested operation.
The format of the yum command is:
yum ...