Chapter 12. YUM (Yellowdog Updater Modified)
142
yum check-update
This command allows you to determine whether any updates are available for your installed
packages.
yum
returns a list of all package updates from all repositories if any are available.
yum remove
<package name/s>
Used to remove specified packages, along with any other packages dependent on the packages
being removed.
yum provides
<file name>
Used to determine which packages provide a specific file or feature.
yum search
<keyword>
This command is used to find any packages containing the specified keyword in the description,
summary, packager and package name fields of RPMs in all repositories.
yum localinstall
<absolute path to package name/s>
Used when using
yum
to install a package located locally in the machine.
12.3.
yum
Options
yum
options are typically stated before specific
yum
commands; i.e.
yum
<options> <command>
<package name/s>
. Most of these options can be set as default using the configuration file.
The following is a list of the most commonly-used
yum
options. For a complete list of available
yum
options, refer to
man yum
.
-y
Answer "yes" to every question in the transaction.
-t
Sets
yum
to be "tolerant" of errors with regard to packages specified in the transaction. For
example, if you run
yum update package1 package2
and
package2
is already installed,
yum
will continue to install
package1
.
--exclude=
<package name>
Excludes a specific package by name or glob in a specific transaction.
12.4. Configuring
yum
By default,
yum
is configured through
/etc/yum.conf
. The following is an example of a typical
/
etc/yum.conf
file:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
Содержание 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 ...