centos制作本地yum源

1.把centos iso里的Packages、RPM*、repodata拷到/mnt/centos7(mkdir)

2.vi /etc/yum.repos.d/centos7.repo

   [centos7]

   name=centos7

   baseurl=file:///mnt/centos7/

   gpgcheck=0

   enabled=1

3.yum cleanall

   yum update

4.yum install httpd

   systemctl start httpd

5.mv /mnt/centos7 /var/www/html/

6.vi /etc/yum.repos.d/centos7.repo

   baseurl=http://ip/centos7/

7.yum clean all

   yum update

完成

posted on 2020-10-27 17:45  roger888  阅读(148)  评论(0编辑  收藏  举报

导航