redhat 8.5制作FTP源

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值