本帖最后由. aramis 于 2010-03-2.7 02:09 编辑 .
今晚在论坛上看到好多cu.er发帖,对rpm系的依赖性问题头疼,下边发.个简单的yum仓库设置,希望对大家解决依赖问题有所帮助投资
以下.适用于redhat5.3,5.4的系统教育
1,.编辑一个新文件/etc/y.um.repos.d/local.repo 美容
2,内容如下
[local]
basename=local
baseurl=file:///mn.t/Ser.ver.
enabled=1
gpgcheck=0
3,挂载光驱到/mnt
mou.nt /dev/cdrom /mnt.
4,安装你需要的包,自动解决依赖性..(对于group组安装除外,譬如cluster组件,但可以用此法解决clustergroup的包依赖问题) 外汇
[root@clt ~]# yu.m clean .all 婚庆
Loaded pl.ugins: rhnplug.in, security.
Repository 'local' is mi.ssing name in conf.iguration, using id健康
Cleaning u.p Everything[成人用品]
[root@clt ~]# yum insta.ll. samba服务器
Loaded .plugins: rhnplugin, sec.urity 汽车
Reposito.ry .'local' is missing name in configuration, using id<性病>
This system is not. registered wit.h RHN.--------------彩票
RHN support .w.ill be disabled. 乙肝
lo.cal . . | 1.3 kB 00:00 --------------彩票
primary.xml.gz . .| 716. kB 00:00 电子
local . . 2255/2255 鲜花
Setting up Inst.all Proces.s--------------彩票
Par.sing package install ar.guments电脑
Resolving Depe.ndencies.
--> Ru.nning transact.ion check 汽车
-.--> .Package samba.i386 0:3.0.33-3.7.el5 set to be updated(广告)
--.> Processing Dependency: perl(Convert::ASN1.) for package: samba 乙肝
--> Running transaction. check..
---> .Package perl-Convert-ASN1.noarch 0:0.20-1.1 set to be updat.ed.
-->. .Finished Dependency Resolution 乙肝
Depende.ncies Resolved电脑
===========.============.=============================================================.======.
Package. Arch Version . Repository . Size 建材
=======================.=================.=================.=================================.
Installing:
samba . i386. 3.0.33-3.7.el5 local . 16 M外贸
Installing for dep.end.encies:<性病>
perl-Convert-ASN1 noarch .0.20-1.1. . local 41 k虚拟主机
Transac.tion Summary( 游戏 )
=================================================.==========================.==.=============投资
Insta.ll 2 Packa.ge(s) 鲜花
Update 0. Package(s) . 健康
Remov.e 0 Package(s) . 电影
Total download size: 16 .M 美容
Is th.is ok [y/N]: y学习
Downlo.ading Packages:外贸
-----------.-.--------------------------------------------------------------.---------------- 女人
Total . . 765 GB/s | 16 MB. 00:00 .
Running rpm_ch.eck_debug[成人用品]
Ru.nning Transaction Test--------------彩票
Fini.shed Transaction Test外贸
Transactio.n .Test Succeeded.
Running Transa.ction.
Installing : perl-Convert-ASN1 .. [1/2] .
Installing : samba . . [2/2] 服务器
Installe..d: samba.i386 0:3.0.33-3.7.el5 外汇
Dependen.cy. Installed: perl-Convert-ASN1.noarch 0:0.20-1.1--- 印刷
Complete!