1. 在修改前先备份该文件 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2. 修改更新源配置文件(CentOS6地址,其他版本类似) vim打开配置文件: vim /etc/yum.repos.d/CentOS-Base.repo 复制以下内容粘贴到配置文件中进行: # CentOS-Base.repo # # The mirror system uses the connecting IP
Total download size: 14 MIs this ok [y/d/N]: 命令里已经yum install -y了,但是还是需要选择Y,N没有自动执行,请问这个要怎么破. PS:我是在Dockerfile里设置,然后进入镜像手动测试,Dockerfile报错如下: Is this ok [y/d/N]: Exiting on user commandYour transaction was saved, rerun it with: yum load-transaction /t