1.在ftp server上挂载redhat 8.5的ISO镜像https://www.cndba.cn/hbhe0316/article/103892https://www.cndba.cn/hbhe0316/article/103892https://www.cndba.cn/hbhe0316/article/103892https://www.cndba.cn/hbhe0316/article/103892
https://www.cndba.cn/hbhe0316/article/103892
[root@ftpserver ~]# mount /dev/cdrom /mnt/
[root@ftpserver mnt]# mkdir /var/ftp/pub/rhel85
[root@ftpserver mnt]# cp -pr /mnt/AppStream/ /var/ftp/pub/rhel85/
[root@ftpserver mnt]# cp -pr /mnt/BaseOS/ /var/ftp/pub/rhel85/
2.在client端配置yum的repo文件
https://www.cndba.cn/hbhe0316/article/103892
[root@node01 ~]# cat /etc/yum.repos.d/rhel85.repo
[AppStream]
name=base
baseurl=ftp://192.168.56.199/pub/rhel85/AppStream
enabled=1
gpgcheck=0
[base]
name=base
baseurl=ftp://192.168.56.199/pub/rhel85/BaseOS
enabled=1
gpgcheck=0
3.测试是否配置正确
https://www.cndba.cn/hbhe0316/article/103892
https://www.cndba.cn/hbhe0316/article/103892
https://www.cndba.cn/hbhe0316/article/103892
https://www.cndba.cn/hbhe0316/article/103892
[root@node01 ~]# yum clean all && yum makecache
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
0 files removed
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
base 20 MB/s | 7.2 MB 00:00
base 19 MB/s | 2.4 MB 00:00
Last metadata expiration check: 0:00:01 ago on Thu 30 Dec 2021 06:48:30 PM CST.
Metadata cache created.
版权声明:本文为博主原创文章,未经博主允许不得转载。
LINUX