Installing packages

Installing packages using yum is really quite straightforward. To install a package, you specify its name with the install command and the package name, along with any dependencies that will be downloaded and installed. This example installs the samba package:

# yum install samba
Loaded plugins: refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba.i586 0:3.3.2-0.33.fc11 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved
============================================================================
 Package        Arch          Version                 Repository       Size
============================================================================
Installing:
 samba          i586          3.3.2-0.33.fc11         fedora           4.4 M

Transaction Summary
============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 4.4 M
Is this ok [y/N]:
Downloading Packages:
samba-3.3.2-0.33.fc11.i586.rpm                           | 4.4 MB     00:06
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : samba-3.3.2-0.33.fc11.i586                          1/1

Installed:
  samba.i586 0:3.3.2-0.33.fc11

Complete!

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.