epel做本地源

挂载iso文件命令mount -t iso9660 -o loop xxx.iso /mnt/path

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

8、如果要制作成iso则输入命令

mkisofs -r -o /root/centos6-epel.iso /root/epel/

posted on   狄成  阅读(856)  评论(0编辑  收藏  举报

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示