使用rhel5的DVD光盘作为本地yum源

    上篇文章中说的YUM服务的搭建和YUM客户端的建立。这一节我们继续看用DV光盘实习YUM安装。yum 安装的方法在红帽系统管理中应用十分方便,但是在使用yum安装之前是必须配置yum源的,该方法只能在单机上用,我们只能使用本地yum源,下面介绍使用rhel5.4的安装光盘做本地yum源的方法。他可以有效地解决RPM的包依赖关系可以大大的提高SA的工作效率。

 

 

1  把rhel5.iso挂载到/mnt下面挂载成功后即可在 /mnt下面看到文件。

2  修改repo文件.bao

 image

3 到此大功告成,下面我们进行测试:

image_thumb65

OK啦,下来我们装和RPM试试,测试一哈

[root@localhost ~]# yum install telnet-*
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Package 1:telnet-0.17-39.el5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.i386 1:0.17-39.el5 set to be updated
--> Processing Dependency: xinetd for package: telnet-server
--> Running transaction check
---> Package xinetd.i386 2:2.3.14-10.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
Package                          Arch                    Version                             Repository                Size
=============================================================================================================================
Installing:
telnet-server                    i386                    1:0.17-39.el5                       sujun                     35 k
Installing for dependencies:
xinetd                           i386                    2:2.3.14-10.el5                     sujun                    124 k

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

Total download size: 159 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): xinetd-2.3.14-10.el5.i386.rpm                                                                  | 124 kB     00:00    
(2/2): telnet-server-0.17-39.el5.i386.rpm                                                             |  35 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                        848 kB/s | 159 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : xinetd                                            [1/2]
  Installing     : telnet-server                                     [2/2]

Installed: telnet-server.i386 1:0.17-39.el5
Dependency Installed: xinetd.i386 2:2.3.14-10.el5
Complete!

看到啦吧。。成功完成

你可能感兴趣的:(职场,yum,dvd,休闲,光盘)