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]#

  • 相关阅读:
    【读书笔记】房龙-人类的故事
    【读书笔记】曼昆-经济学原理:宏观经济学分册
    【读书笔记】曼昆-经济学原理:微观经济学分册
    ES6数组去重
    switch语句
    if语句的优化
    程序的三大结构
    NaN
    js中常见的数据类型
    变量的命名规则
  • 原文地址:https://www.cnblogs.com/liweiming/p/10164307.html
Copyright © 2011-2022 走看看