Linux Host Configuration The machine can be accessed yum software source

First, create a file, then remove the old original file or file is not available, to ensure the uninterrupted operation of the new file


# mkdir  /etc/yum.repos.d/oldrepo  
# mv  /etc/yum.repos.d/*.repo  /etc/yum.repos.d/oldrepo/
#yum-config-manager  --add-repo  软件仓库的访问地址
#vim  /etc/yum.conf
gpgcheck = 0                    进入文件将原有的gpgcheck=1进行修改不作签名检查
#yum  clean  all  清一下缓存
#yum  repolist   检查仓库的列表

Guess you like

Origin blog.51cto.com/13594913/2415158
Recommended