Home » Linux

从光盘进行yum安装解决依赖

By: Zhiqiang Ma On: Aug 16, 2008 Views: 23 No Comment Print Email
Tags: , , ,

把光盘作为yum源安装方法:
以下以CentOS 5为例,其它系统举一反三

1)修改/etc/yum.repos.d/CentOS-Base.repo
将[Base]等等中的baseurl前面加#注掉
然后在下面插入这样一行
baseurl=file:///media/CentOS_5.0_Final
file://表示本地文件系统
/media/CentOS_5.0_Final为光盘挂载后的目录
将文件里所有的baseurl做同样修改

2)将/etc/yum.repos.d/CentOS-Media.repo删掉
# mv /etc/yum.repos.d/CentOS-Media.repo ~/

3)导入检查软件包的签名
# rpm –import /media/CentOS_5.0_Final/RPM-GPG-KEY-CentOS-5

4)使用yum或pirut安装软件就可以了.

Read more:

Digg del.icio.us Stumble Techorati Facebook Newsvine Reddit Twitter
Mixx LinkedIn Google Bookmark Yahoo Bookmark MySpace LiveJournal Blogger RSS feed
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.