• [转]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

  • 相关阅读:
    Excel操作 Microsoft.Office.Interop.Excel.dll的使用
    C#通过Microsoft.Office.Interop.Word操作Word
    Swift编码总结2
    Swift编码总结1
    Python第一阶段06
    Python第一阶段05
    Python第一阶段04
    Python第一阶段03
    Python第一阶段02
    Python第一阶段01
  • 原文地址:https://www.cnblogs.com/mxm2005/p/4742476.html
Copyright © 2020-2023  润新知