Chinaunix首页 | 论坛 | 博客
  • 博客访问: 157740
  • 博文数量: 47
  • 博客积分: 1062
  • 博客等级: 准尉
  • 技术积分: 521
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-23 09:47
文章分类
文章存档

2019年(1)

2014年(4)

2011年(42)

分类: LINUX

2011-08-26 15:54:31

挂载光盘:
mount /dev/cdrom /media/cdrom/
配置本地YUM:
vim /etc/yum.repos.d/CentOS-Media.repo 
===================================================================================
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-5.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c5-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c5-media [command]
 
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/cdrom/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
===================================================================================
测试:
yum clean all                清除缓存及旧的包
yum install -y rsync     测试是否能安装软件
阅读(1023) | 评论(0) | 转发(0) |
1

上一篇:没有了

下一篇:Debian 修改IP地址或DNS

给主人留下些什么吧!~~