Chapter 12.
141
YUM (Yellowdog Updater Modified)
Yellowdog Update, Modified
(YUM) is a package manager that was developed by Duke University
to improve the installation of RPMs.
yum
searches numerous repositories for packages and their
dependencies so they may be installed together in an effort to alleviate dependency issues. Red Hat
Enterprise Linux 5.2 uses
yum
to fetch packages and install RPMs.
up2date
is now deprecated in favor of
yum
(Yellowdog Updater Modified). The entire stack of tools
which installs and updates software in Red Hat Enterprise Linux 5.2 is now based on
yum
. This
includes everything, from the initial installation via
Anaconda
to host software management tools like
pirut
.
yum
also allows system administrators to configure a local (i.e. available over a local network)
repository to supplement packages provided by Red Hat. This is useful for user groups that use
applications and packages that are not officially supported by Red Hat.
Aside from being able to supplement available packages for local users, using a local
yum
repository
also saves bandwidth for the entire network. Further, clients that use local
yum
repositories do not
need to be registered individually to install or update the latest packages from Red Hat Network.
12.1. Setting Up a
yum
Repository
To set up a repository, follow these steps:
Procedure 12.1. Setting Up a
yum
Repository
1. Install the
createrepo
package.
2. Copy all the packages into one directory (for example,
/mnt/local_repo
).
3. Run
createrepo
on that directory (for example,
createrepo /mnt/local_repo
). This will
create the necessary metadata for your
yum
repository.
12.2.
yum
Commands
yum
commands are typically run as
yum
<command> <package name/s>
. By default,
yum
will
automatically attempt to check all configured repositories to resolve all package dependencies during
an installation/upgrade.
The following is a list of the most commonly-used
yum
commands. For a complete list of available
yum
commands, refer to
man yum
.
yum install
<package name/s>
Used to install the latest version of a package or group of packages. If no package matches the
specified package name(s), they are assumed to be a shell glob, and any matches are then
installed.
yum update
<package name/s>
Used to update the specified packages to the latest available version. If no package name/s are
specified, then
yum
will attempt to update all installed packages.
If the
--obsoletes
option is used (i.e.
yum --obsoletes
<package name/s>
,
yum
will
process obsolete packages. As such, packages that are obsoleted accross updates will be
removed and replaced accordingly.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...