mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 15:57:46 +08:00
parent
2a83a2b6b0
commit
baa0cfdcfd
|
@ -12,10 +12,10 @@
|
|||
* | Mr. Will <mr.will.com@outlook.com>
|
||||
* | Terrasse <terrasse@qq.com>
|
||||
* | Lontten <lontten@163.com>
|
||||
* | happy game <happygame1024@gmail.com>
|
||||
* | happy game <happygame1024@gmail.com>
|
||||
* |
|
||||
* Created On : <2023-08-28>
|
||||
* Last Modified : <2024-10-04>
|
||||
* Last Modified : <2024-10-09>
|
||||
*
|
||||
* chsrc: Change Source —— 全平台通用命令行换源工具
|
||||
* ------------------------------------------------------------*/
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
* -------------------------------------------------------------
|
||||
* File Authors : Heng Guo <2085471348@qq.com>
|
||||
* Contributors : Aoran Zeng <ccmywish@qq.com>
|
||||
* | happy game <happygame1024@gmail.com>
|
||||
* Created On : <2023-09-26>
|
||||
* Last Modified : <2024-10-09> <happygame1024@gmail.com>
|
||||
* Last Modified : <2024-10-09>
|
||||
*
|
||||
* 名称为 Fedora Linux
|
||||
* ------------------------------------------------------------*/
|
||||
|
@ -29,8 +30,8 @@ def_sources_n(os_fedora);
|
|||
|
||||
/**
|
||||
* @note fedora 38 及以下版本暂不支持
|
||||
* 参考:
|
||||
* 1. https://mirrors.ustc.edu.cn/help/fedora.html
|
||||
*
|
||||
* @consult https://mirrors.ustc.edu.cn/help/fedora.html
|
||||
*/
|
||||
void
|
||||
os_fedora_setsrc (char *option)
|
||||
|
@ -54,10 +55,9 @@ os_fedora_setsrc (char *option)
|
|||
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
chsrc_log2 ("已替换文件 /etc/yum.repos.d/fedora.repo");
|
||||
chsrc_log2 ("已替换文件 /etc/yum.repos.d/fedora-updates.repo");
|
||||
|
||||
chsrc_note2 ("chsrc 已为您更换baseurl, 但fedora默认会优先使用metalink来匹配最快的源, 如您在获取metadata时速度较慢可自行将其注释");
|
||||
chsrc_note2 ("已为您更换baseurl, 但fedora默认会优先使用metalink来匹配最快的源, 如您在获取metadata时速度较慢可自行将其注释:");
|
||||
chsrc_log2 ("(1) /etc/yum.repos.d/fedora.repo");
|
||||
chsrc_log2 ("(2) /etc/yum.repos.d/fedora-updates.repo");
|
||||
|
||||
chsrc_run ("dnf makecache", RunOpt_No_Last_New_Line);
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
|
|
Loading…
Reference in New Issue
Block a user