安装yum本地源

1、cd /etc/yum.repos.d/

2、拷贝remote.repo到目录

[rhel77]  ##yum源区别名称,用来区分其他的yum源

name=rhel77 ##yum源描述  yum源名字

baseurl=http://10.3.104.43/rhel78updatespackages/  ##指定本地yum源的路径

enabled=1  ##是否使用此yum源(1为打开 0为关闭)

gpgcheck=0 ##检查软件(1是检查,0是不检查)

3、刷新缓存
yum clean all
yum repolist

评论

企鹅:4654081

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×