Fedora 阿里云源

镜像下载、域名解析、时间同步请点击 阿里巴巴开源镜像站

简介

Fedora 是一个 Linux 发行版,是一款由全球社区爱好者构建的面向日常应用的快速、稳定、强大的操作系统。它允许任何人自由地使用、修改和重发布,目标是创建一套新颖、多功能并且自由的操作系统。

配置方法

1. 备份

mv /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.backup
mv /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.backup

2. 下载新的 fedora.repo 和 fedora-updates.repo 到 /etc/yum.repos.d/

fedora

wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo

或者

curl -o /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo

fedora updates

wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo

或者

curl -o /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo

3. 运行sudo yum makecache生成缓存

运行sudo yum makecache生成缓存会报错:
请执行如下命令即可解决。

sed -i 's/releases\/$releasever/releases\/32/g' /etc/yum.repos.d/fedora.repo
sed -i 's/updates\/$releasever/updates\/32/g' /etc/yum.repos.d/fedora-updates.repo

再次执行yum makecache即可。

file

posted @   萌褚  阅读(94)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效
点击右上角即可分享
微信分享提示