• mkdir /mnt/cd
• mount /dev/sr0 /mnt/cd
• cd /etc/yum.repos.d
• ls
• mkdir ~/repobak
• mv *.repo ~/repobak
• vi test.repo
• [centlocalrepo]
• name=local dvd for repo
• baseurl=file:///mnt/cd
• gpgchek=0
• yum repolist
一个关注IT技术分享,关注互联网的网站,爱分享网络资源,分享学到的知识,分享生活的乐趣。
• mkdir /mnt/cd
• mount /dev/sr0 /mnt/cd
• cd /etc/yum.repos.d
• ls
• mkdir ~/repobak
• mv *.repo ~/repobak
• vi test.repo
• [centlocalrepo]
• name=local dvd for repo
• baseurl=file:///mnt/cd
• gpgchek=0
• yum repolist
本文链接:http://m.zhangshiyu.com/post/37369.html
Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1