zoukankan      html  css  js  c++  java
  • yum-config-manager --add-repo=

    [root@server0 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


    [root@server0 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
    [root@server0 yum.repos.d]#

    添加gpgkey 不检查

    [root@server0 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
    [root@server0 yum.repos.d]#

  • 相关阅读:
    VUE的生命周期
    ID生成算法(二)
    ID生成算法(一)——雪花算法
    HTTP状态码和支持的方法
    水平居中/垂直居中/水平垂直居中总结
    判断数组类型的4种方法
    WebSocket浅谈
    vue中使用定时器时this指向
    银行转账业务梳理
    支付那些事儿
  • 原文地址:https://www.cnblogs.com/liweiming/p/10164307.html
Copyright © 2011-2022 走看看