zoukankan      html  css  js  c++  java
  • RHEL7中配置本地YUM软件源

     1、创建目录,挂载光盘
    [root@localhost ~]# mkdir /mnt/iso
    [root@localhost ~]# mount /dev/sr0  /mnt/iso
    mount: /dev/sr0 is write-protected, mounting read-only
     
    2、删除原来的仓库配置文件,新建配置文件
    [root@localhost ~]# cd /etc/yum.repos.d/
    [root@localhost yum.repos.d]# ls
    redhat.repo
     
    [root@localhost yum.repos.d]# rm  -f  redhat.repo
     
    [root@localhost yum.repos.d]# vi  base.repo
     
    [rhel7]
    name=rhel7
    enabled=1
    gpgcheck=1
     
    :x
     
    [root@localhost yum.repos.d]# yum clean all
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
                  : manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Cleaning repos: rhel7
    Cleaning up everything
    [root@localhost yum.repos.d]# yum makecache   
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
                  : manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    rhel7                                                    | 4.1 kB     00:00     
    (1/5): rhel7/group_gz                                      | 136 kB   00:00     
    (2/5): rhel7/filelists_db                                  | 3.3 MB   00:00     
    (3/5): rhel7/primary_db                                    | 3.9 MB   00:00     
    (4/5): rhel7/other_db                                      | 1.5 MB   00:00     
    (5/5): rhel7/productid                                     | 1.6 kB   00:00     
    Metadata Cache Created
     
     3、查看配置
    [root@localhost yum.repos.d]# yum repolist all
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
                  : manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    repo id                           repo name                       status
    rhel7                             rhel7                           enabled: 4,751
    repolist: 4,751
     
     
     
  • 相关阅读:
    angularJs自定义指令时的绑定
    AngularJs在单击提交后显示验证信息.
    页面中插入flash,并且给flash添加单击事件控制播放,以及获取相关参数.
    AngularJs的表单验证
    angularJs 过滤器
    关于在页面总嵌入iframe,ifram中发起请求,服务器端的session为空问题解决
    js判断手机是的操作系统
    easyui中带checkbox框的tree
    easyUi中的一段漂亮代码之将list转换成tree.
    Nginx多个配置文件共用location配置
  • 原文地址:https://www.cnblogs.com/liuxing0007/p/11720278.html
Copyright © 2011-2022 走看看