1、建立挂载目录
mkdir /mnt/cdrom
2、mount光盘文件
mount -o loop /dev/cdrom /mnt/cdrom
(cdrom为光驱,请自行确认)
3、编辑repo
a、mkdir /etc/yum.repos.d/temp
(建立temp备份目录)
b、移除文件并备份至temp目录
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/temp/
c、复制CentOS-Base.repo至原来目录下
cp /etc/yum.repos.d/temp/CentOS-Base.repo /etc/yum.repos.d/
d、修改CentOS-Base.repo
vi etc/yum.repos.d/CentOS-Base.repo
注释掉CentOS-Base.repo中所有以 baseurl 或者 mirrorlist开始的行
在每一项中增加下面这行
baseurl=file:///mnt/cdrom
保存退出。
e、重启yum-updatesd服务
service yum-updatesd restart
3、使用
shell敲入命令
system-config-packages
分享到:
相关推荐
CentOS5.3挂载NTFS CentOS5.3挂载NTFS
CentOS5.3系统CentOS5.3系统
此文件由wdlinux收集,整理了centos5.3至5.8DVD版32_64位系统种子码
Centos5.3 下安装Oracle 11g
LINUX操作系统_CentOS5.3_超详细的安装图文教程.doc
centos5.3 配置DNS详解centos5.3 配置DNS详解centos5.3 配置DNS详解centos5.3 配置DNS详解
CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程
阿里云服务器centos+apache+php5.3+mysql+Zend Guard Loader+memcached+ftp环境搭建笔记
This Course will provide the basic tools, skills and practice to configure, secure and maintain Linux servers.
CentOS 5.3下vsftp创建新用户
Centos5.3安装lm_sensors_cpu温度监控 Centos5.3安装lm_sensors_cpu温度监控
CentOS5.3下JDK1.5的最完整安装过程。
Centos5.3安装oracle10g过程 详细
CentOS5.3_05_mysql安装
CentOS5.3 操作系统应用打包,主要总结定制操作系统相关步骤
资料用截图显示出centos5.3的安装步骤
Centos5.3下搭建OpenERP平台
CentOS 5.3安装Postfix+Extmail邮件服务器.pdf
CentOS5.3下安装oracle10G超详细