签到成功

知道了

CNDBA社区CNDBA社区

redhat 8.5制作FTP源

2021-12-30 18:49 1190 0 原创 Linux
作者: hbhe0316

1.在ftp server上挂载redhat 8.5的ISO镜像

http://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文件

http://www.cndba.cn/hbhe0316/article/103892
http://www.cndba.cn/hbhe0316/article/103892
http://www.cndba.cn/hbhe0316/article/103892
http://www.cndba.cn/hbhe0316/article/103892http://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.测试是否配置正确http://www.cndba.cn/hbhe0316/article/103892http://www.cndba.cn/hbhe0316/article/103892

http://www.cndba.cn/hbhe0316/article/103892
http://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

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1154868次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ