CentOS配置本地yum源
1.建立本地目录
cd /media mkdir cdrom
2.挂载CentOS光盘
mount /dev/cdrom /media/cdrom
3.配置yum源文件
vi CentOS-Media.repo,配置以下内容:
[c6-media] name=CentOS-$releasever - Media baseurl=file:///media/CentOS/ file:///media/cdrom/ file:///media/cdrecorder/ gpgcheck=0#改为0,不做gpgcheck enabled=1#改为1启用 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
4.刷新yum缓存
yum clean all
抱歉,暂停评论。