加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

yum-config-manager --add-repo=

发布时间:2020-12-15 23:07:12 所属栏目:安全 来源:网络整理
导读:[[email?protected] yum.repos.d]# yum-config-manager --add-repo=ftp://192.168.31.121/centos7u4 Loaded plugins: langpacks,product-id adding repo from: ftp://192.168.31.121/centos7u4 [192.168.31.121_centos7u4] name=added from: ftp://192.168.3

[[email?protected] yum.repos.d]# yum-config-manager --add-repo=ftp://192.168.31.121/centos7u4
Loaded plugins: langpacks,product-id
adding repo from: ftp://192.168.31.121/centos7u4

[192.168.31.121_centos7u4]
name=added from: ftp://192.168.31.121/centos7u4
baseurl=ftp://192.168.31.121/centos7u4
enabled=1


[[email?protected] yum.repos.d]# yum repolist
Loaded plugins: langpacks,product-id,search-disabled-repos,subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
192.168.31.121_centos7u4 | 3.6 kB 00:00:00
(1/2): 192.168.31.121_centos7u4/group_gz | 156 kB 00:00:00
(2/2): 192.168.31.121_centos7u4/primary_db | 3.1 MB 00:00:00
repo id repo name status
192.168.31.121_centos7u4 added from: ftp://192.168.31.121/centos7u4 3,894
repolist: 3,894
[[email?protected] yum.repos.d]#

?

添加gpgkey 不检查

?

[[email?protected] yum.repos.d]# cat 192.168.31.121_centos7u4.repo

[192.168.31.121_centos7u4]
name=added from: ftp://192.168.31.121/centos7u4
baseurl=ftp://192.168.31.121/centos7u4
enabled=1
gpgcheck=0
[[email?protected] yum.repos.d]#

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读