epel做本地源

1、yum install yum-utils

2、yum install createrepo

3、reposync -r epel -p /root/

4、createrepo -v /root/epel/

5、新建repo文件

[root@localhost ~]# cat /etc/yum.repos.d/epel.repo
[epel]
name=epel
baseurl=file:///root/epel
enabled=1
gpgcheck=0
[root@localhost ~]#

6、yum clean all

7、yum makecache

猜你喜欢

转载自www.cnblogs.com/tiantianhappy/p/12161630.html