zoukankan      html  css  js  c++  java
  • [转]Fedora 添加国内源(sohu, 163)

    第一种方案

    在国内163和搜狐提供很好的源,现在我们把它们俩添加到我们的源库。
    1. 添加搜狐的源 
    进入网站http://mirrors.sohu.com/,在左边找到fedora目录,点击该行右边的help, 然后

    下载fedora-sohu.repo和fedora-updates-sohu.repo, 放入/etc/yum.repos.d/

    运行yum makecache生成缓存

    2.  添加163的源

    http://mirrors.163.com/.help/fedora.html

    进入网站 http://mirrors.163.com/,在左边找到fedora目录,点击改行右边的使用帮助,然后

    下载fedora-163.repo和fedora-updates-163.repo, 放入/etc/yum.repos.d/

    运行yum makecache生成缓存

    现在你可以运行命令 ls /etc/yum.repos.d 看看该目录下是不是多了两个源了呢, Fedora13下添加163和搜狐的源 - Carya - 境天,另一片天

    第二种方案

    # vi /etc/yum.repos.d/fedora-cn.repo 
    =============================================================================
    [fedora-mirrors.sohu.com]
    name=Fedora $releasever - $basearch - sohu.com
    failovermethod=priority
    baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/os/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
    enabled=1
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-debuginfo-mirrors.sohu.com]
    name=Fedora $releasever - $basearch - Debug - sohu.com
    failovermethod=priority
    baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/debug/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-source-mirrors.sohu.com]
    name=Fedora $releasever - Source - sohu.com
    failovermethod=priority
    baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/source/SRPMS/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-mirrors.163.com]
    name=Fedora $releasever - $basearch - 163.com
    failovermethod=priority
    baseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/$basearch/os/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
    enabled=1
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-debuginfo-mirrors.163.com]
    name=Fedora $releasever - $basearch - Debug - 163.com
    failovermethod=priority
    baseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/$basearch/debug/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-source-mirrors.163.com]
    name=Fedora $releasever - Source - 163.com
    failovermethod=priority
    baseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/source/SRPMS/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    =============================================================================

    # vi /etc/yum.repos.d/fedora-update-cn.repo 
    =============================================================================
    [updates-mirrors.sohu.com]
    name=Fedora $releasever - $basearch - Updates - sohu.com
    failovermethod=priority
    baseurl=http://mirrors.sohu.com/fedora/updates/$releasever/$basearch/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

  • 相关阅读:
    动态规划-数字三角形V1
    二分-Aggressive cows
    Unity中的UGUI之UGUI的渲染顺序--01
    关于C#中委托的学习笔记
    Unity中的协程用法以及注意事项
    Unity中的单例方法2
    Unity中关于射线的运用——第03节 射线的实际运用
    Unity中关于射线的运用——第02节 圆形射线
    Unity中关于射线的运用——第01节 线段射线
    算法之折半查找
  • 原文地址:https://www.cnblogs.com/mxm2005/p/4742476.html
Copyright © 2011-2022 走看看