配置yum源
- 进入
/etc/yum.repos.d/ - 编辑
vi rhel-debuginfo.repo - 修改baseurl
-
保存,然后
mount查看光驱位置
把光驱挂载到/mnt下
mount /dev/hdc /mnt注意:光驱位置以自己电脑的为主,不一定是
/dev/hdc - 测试是否成功
yum clean all
yum repolist - 现在就可以使用
yum install xxx去下载想要的东西了
/etc/yum.repos.d/
vi rhel-debuginfo.repo 保存,然后mount查看光驱位置
把光驱挂载到/mnt下
mount /dev/hdc /mnt
注意:光驱位置以自己电脑的为主,不一定是/dev/hdc
yum clean all
yum repolist
yum install xxx去下载想要的东西了相关文章: