redhat配置本地yum源

1. 在光驱中加载你的安装光盘或者iso镜像

2. mkdir /mnt/cdrom

3. mount /dev/cdrom /mnt/cdrom

4. mkdir /home/rhel6

5. cp -Rf /mnt/cdrom/* /home/rhel6/

6. vim /etc/yum.repos.d/local.repo

添加如下内容:

[local]

name=local

baseurl=file:///home/rhel6/

enabled=1

gpgcheck=0

posted @ 2014-10-31 09:12  emmac  阅读(220)  评论(0编辑  收藏  举报