centos8创建局域网的私有yum源

yum源服务器 地址  192.168.89.100/24

root@yum-server:yum install httpd

root@yum-server:systemctl enable --now httpd

root@yum-server  :mkdir /var/www/html/centos/8 -pv

root@yum-server:mount /dev/sr0 /mnt/

root@yum-server:cp -a /mnt/* /var/www/html/centos/8

root@yum-server:dnf reposync   --repoid=extras  --download-metadata   -p  /var/www/html/centos

yum客户端配置

root@yum-client:vim /etc/yum.repos.d/test.repo

[BaseOS]

name=BaseOS

baseurl=http://192.168.89.100/centos/8/BaseOS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[AppStream]
name=Appstream
baseurl=http://192.168.89.100/centos/8/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[extras]
name=extras
baseurl=http://192.168.89.100/centos/extras/
root@yum-client:yum install -y epel-release
 

centos8创建局域网的私有yum源

上一篇:docker:ubuntu18.04 配置phalcon3.4环境


下一篇:Linux系统基本操作