• Linux--本地yum库


    Linux配置本地yum云:

    第一步:把cd 挂载到目录树

      mount /dev/cdrom /mnt/media

    第二步:增加/etc/yum.repo.d/local.repo

      touch /etc/yum.repo.d/local.repo

      vim /etc/yum.repo.d/local.repo

      

    [local]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    baseurl=file:///mnt/media/
    failovermethod=priority
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    [HighAvailability]
    name=HighAvailability
    baseurl=file:///mnt/media/HighAvailability/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [LoadBalancer]
    name=HighAvailability
    baseurl=file:///mnt/media/LoadBalancer/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [Server]
    name=HighAvailability
    baseurl=file:///mnt/media/Server/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [ResilientStorage]
    name=HighAvailability
    baseurl=file:///mnt/media/ResilientStorage/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    [ScalableFileSystem]
    name=ScalableFileSystem
    baseurl=file:///mnt/media/ScalableFileSystem/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    

      

  • 相关阅读:
    13_函数的基本使用简介
    12_goto语句的使用
    11_for语句的使用
    10_switch语句的使用
    09_if条件语句的使用
    08_类型别名(类型声明)
    day-32网络编程
    day-31网络编程
    day-30网络编程
    day-29元类、异常处理
  • 原文地址:https://www.cnblogs.com/JiangLe/p/5015218.html
Copyright © 2020-2023  润新知