Fedora 源使用帮助

地址

https://mirrors.shuosc.org/fedora/

说明

Fedora 软件源

收录架构

x86_64, i386

收录版本

所有仍在支持的版本和最新测试版本

使用说明

将以下保存为 fedora-ustc.repo

  [fedora] 
  name=Fedora $releasever - $basearch - ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/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-$releasever-$basearch

  [fedora-debuginfo] 
  name=Fedora $releasever - $basearch - Debug - ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/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-$releasever-$basearch

  [fedora-source] 
  name=Fedora $releasever - Source - ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/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-$releasever-$basearch

将以下保存为 fedora-updates-ustc.repo

  [updates]
  name=Fedora $releasever - $basearch - Updates - ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/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-$releasever-$basearch

  [updates-debuginfo] 
  name=Fedora $releasever - $basearch - Updates - Debug -ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/fedora/updates/$releasever/$basearch/debug/ 
  #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch 
  enabled=0 
  gpgcheck=1 
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch

  [updates-source] 
  name=Fedora $releasever - Updates Source - ustc
  failovermethod=priority 
  baseurl=https://mirrors.shuosc.org/fedora/updates/$releasever/SRPMS/ 
  #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch 
  enabled=0 
  gpgcheck=1 
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch

先备份 /etc/yum.repos.d/fedora.repo/etc/yum.repos.d/fedora-updates.repo

fedora-ustc.repofedora-updates-ustc.repo 放入 /etc/yum.repos.d/ 中。

运行 sudo dnf makecache 生成缓存。

相关链接

Copyright © 上海大学开源镜像站 all right reserved,powered by Gitbook该文件修订时间: 2017-11-30 20:29:26

results matching ""

    No results matching ""