5.测试使用yum来安装软件包
[root@linux-a yum.repos.d]# yum install samba
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
CS                        |=========================| 1.1 kB    00:00
base                      |=========================| 1.1 kB    00:00
VT                        |=========================| 1.1 kB    00:00
Cluster                   |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            |=========================| 3.9 kB    00:00
################################################## 32/32
primary.xml.gz            |=========================| 727 kB    00:00
################################################## 2113/2113
primary.xml.gz            |=========================| 5.8 kB    00:00
################################################## 31/31
primary.xml.gz            |=========================| 5.6 kB    00:00
################################################## 32/32
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for samba to pack into transaction set.
samba-3.0.23c-2.i386.rpm  |=========================| 108 kB    00:00
---> Package samba.i386 0:3.0.23c-2 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
samba                   i386       3.0.23c-2        base               16 M
Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 16 M
Is this ok [y/N]:
  大功告成,本地yum repository创建成功。