Книга: Fedora™ Unleashed, 2008 edition

Using yum to Manage Package Inventory

Using yum to Manage Package Inventory

Another useful feature of yum is its capability to list several sets of packages. There are a few options that you can list, including packages that are currently installed, packages that are available to be installed, and packages that have updates available.

The command is as follows:

$ yum list <available> <updates> <installed> <extras>

available — This lists the available packages in the configured repositories.

updates — This lists the available updates for currently installed packages.

installed — This lists the packages currently installed on the system.

extras — This lists the installed packages that are not present in any of the configured repositories.

So if I want to find out which packages I have installed on my system, I use the command yum list installed to return a detailed summary of packages installed and their version numbers. You can take this one step further and query for individual pack ages. You might want to find out which version of OpenOffice.org you have installed and which version is available for installation. For this, you use yum list openoffice.org — the results of which would show you which version was installed and which version was available for updating.

yum can also search the headers and summaries for each RPM file so that you can find specific information about packages that would not usually be available in just the package name itself. For example, using yum search kdebindings would bring up entries matching kdebindings. The results of this command are shown here:

$ yum search kdebindings
Loading "refresh-updatesd" plugin
kdebindings-devel.i386 : Development files for kdebindings
kdebindings-dcopperl.i386 : DCOP Bindings for Perl
kdebindings-devel.i386 : Development files for kdebindings
kdebindings.i386 : KDE bindings to non-C++ languages
kdebindings-dcopperl.i386 : DCOP Bindings for Perl
kdebindings.i386 : KDE bindings to non-C++ languages

Оглавление книги


Генерация: 1.291. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз