1 挂载镜像光盘
mount /dev/sr0 /mnt
2 复制 Packages,repodata
cp -R /mnt/{Packages,repodata} /home/fedora/yum_local
3以root登录,添加配置文yum_local.repo件到/etc/yum.repos.d下
vim /etc/yum.repos/yum_local.repo
添加如下语句到该文件中:
[yum_local]
name=Fedora
baseurl=file:///home/fedora/yum_local
enable=1
gpgcheck=0
保存并退出,本地源就配置好了
阅读(1192) | 评论(0) | 转发(0) |