Home > Linux > document > 正文

Fedora设置科技大学yum(dnf)源,替代系统自带源

收录架构

  • i686
  • x86_64

收录版本

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

使用说明

将以下保存为 fedora-ustc.repo

fedora-ustc.repo

(引用科技大学连接)

[fedora]  name=Fedora $releasever - $basearch - ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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]  name=Fedora $releasever - $basearch - Debug - ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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]  name=Fedora $releasever - Source - ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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-updates-ustc.repo

fedora-updates-ustc.repo
(引用科技大学连接)
[updates] name=Fedora $releasever - $basearch - Updates - ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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    [updates-debuginfo]  name=Fedora $releasever - $basearch - Updates - Debug -ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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-$basearch    [updates-source]  name=Fedora $releasever - Updates Source - ustc failovermethod=priority  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/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-$basearch

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

将 fedora-ustc.repo和 fedora-updates-ustc.repo放入/etc/yum.repos.d/中

运行:

sudo yum makecache (新版本fedora系统开始支持dnf替代yum命令)

更新缓存即可。

上一篇:Fedora 23网卡设置固定IP
下一篇:DKIM和DMARC之Linux邮件服务器优化
国内影响已扩散,利用“NSA武器库”中漏洞的Wannacry蠕虫勒索软件袭击全球(含修复方案)

国内影响已扩散,利用“NSA武器库”中漏洞的Wannacry蠕虫勒索软件袭击全球(含修复方案)

思科Talos团队深度解析“WannaCry”勒索软件

思科Talos团队深度解析“WannaCry”勒索软件

首发 | Wannacry勒索软件母体主程序逆向分析(含临时解决方案自动化工具)

首发 | Wannacry勒索软件母体主程序逆向分析(含临时解决方案自动化工具)

WannaCry蠕虫详细分析

WannaCry蠕虫详细分析

linux postfix check amavisd service

linux postfix check amavisd service

postfix check virus error

postfix check virus error

linux postfix 安装Spamassassin和clamav

linux postfix 安装Spamassassin和clamav

发表评论

您必须 [ 登录 ] 才能发表留言!

沙发空闲中,快来抢!