redhat 7 配置yum本地源

http://www.unixarena.com/2015/04/how-to-create-the-yum-repository-on-rhel-7.html

 
1. 在虚拟机上挂上cd
2. mount /dev/cdrom /mnt
3. cd /etc/yum.repo.d
4. vi local.repo
[local_cd]
gpgcheck=0
enabled=1
baseurl=file:///mnt
name=local_repo
5. 检查是否yum本地源配置正确 yum install vim
 
学好配置yum 本地源很重要, 在很多地方会用到!!!
posted @ 2017-02-17 16:09  jaystarba  阅读(217)  评论(0编辑  收藏  举报