initCommon(); $template->displayHeader(); ?>

4. Managing Software with yum

Use the yum utility to modify the software on your system in three ways:

To use yum, specify a function and one or more packages or package groups. Each section below gives some examples.

During operation, yum first determines the best set of actions to produce the required result, and displays the transaction for you to approve. The yum utility may prompt you to approve the installation, update, or removal of additional packages, in order to resolve software dependencies.

This is an example of the transaction for installing tsclient:

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 tsclient                i386       0.132-6          base              247 k
Installing for dependencies:
 rdesktop                i386       1.4.0-2          base              107 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 355 k
Is this ok [y/N]:

Example 1. Format of yum Transaction Reports

Review the list of changes, and then press y to accept and begin the process. If you press N or Enter , yum does not download or change any packages.

[Note]Package Versions

The yum utility only displays and uses the newest version of each package, unless you specify an older version.

[Tip]Downloads are Cached

The yum utility keeps downloaded data files and packages for reuse. You may copy packages from the repository cache directories under /var/cache/yum/, and use them elsewhere if you wish. If you remove a package from the cache, you do not affect the copy of the software installed on your system.

4.1. Installing New Software with yum

To install the package tsclient, enter the command:

su -c 'yum install tsclient'

Enter the password for the root account when prompted.

To install the package group MySQL Database, enter the command:

su -c 'yum groupinstall "MySQL Database"'

Enter the password for the root account when prompted.

[Important]New Services Require Activation

When you install a service, Fedora does not activate or start it. To configure a new service to run on bootup, choose Desktop->System Settings->Server Settings->Services, or use the chkconfig and service command-line utilities.

4.2. Updating Software with yum

To update the tsclient package to the latest version, type:

su -c 'yum update tsclient'

Enter the password for the root account when prompted.

[Important]New Software Versions Require Reloading

If a piece of software is in use when you update it, the old version remains active until the software is restarted. Kernel updates take effect when you reboot the system.

To update all of the packages in the package group MySQL Database, enter the command:

su -c 'yum groupupdate "MySQL Database"'

Enter the password for the root account when prompted.

[Note]Updating the Entire System

To update all of the packages on your Fedora system, use the commands described in Section 6, “Updating Your System with yum”.

4.3. Removing Software with yum

To remove software, yum examines your system for both the specified software, and any software which claims it as a dependency.

To remove the tsclient package from your system, use the command:

su -c 'yum remove tsclient'

Enter the password for the root account when prompted.

To remove all of the packages in the package group MySQL Database, enter the command:

su -c 'yum groupremove "MySQL Database"'

Enter the password for the root account when prompted.

displayFooter('$Date: 2005/07/28 00:53:40 $'); ?>