Skip to content

Commit

Permalink
fedora: port changes
Browse files Browse the repository at this point in the history
mirrorz-org/mirrorz-help@0b1405b

Note that -debug and -source are not included in manual replacement part.
  • Loading branch information
taoky committed Nov 4, 2024
1 parent 7adffb2 commit ca2f43d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 36 deletions.
4 changes: 2 additions & 2 deletions fedora/cover.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 收录范围

Fedora 29 及更旧版本已不再受官方支持,Fedora 官方已将 Fedora 29 及更旧版本的软件仓库从主镜像中移除,并转移至了 archive 镜像中。
Fedora 38 及更旧版本已不再受官方支持,Fedora 官方已将 Fedora 38 及更旧版本的软件仓库从主镜像中移除,并转移至了 archive 镜像中。

故 Fedora 29 及更旧版本无法使用所选择的镜像。请使用默认配置文件,以使 `yum` / `dnf` 自动获取可用的镜像源。
故 Fedora 38 及更旧版本无法使用所选择的镜像。请使用默认配置文件,以使 `yum` / `dnf` 自动获取可用的镜像源。
45 changes: 11 additions & 34 deletions fedora/usage.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ Fedora 的软件源配置文件可以有多个,其中:
-e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl={{endpoint}}|g' \
-i.bak \
/etc/yum.repos.d/fedora.repo \
/etc/yum.repos.d/fedora-modular.repo \
/etc/yum.repos.d/fedora-updates.repo \
/etc/yum.repos.d/fedora-updates-modular.repo
/etc/yum.repos.d/fedora-updates.repo
</tmpl>

### 手动替换
Expand All @@ -32,9 +30,13 @@ Fedora 的软件源配置文件可以有多个,其中:
<tmpl z-lang="ini">
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl={{endpoint}}/releases/$releasever/Everything/$basearch/os/
metadata_expire=28d
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
countme=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
Expand All @@ -45,37 +47,12 @@ skip_if_unavailable=False
<tmpl z-lang="ini">
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl={{endpoint}}/updates/$releasever/Everything/$basearch/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
</tmpl>

**`fedora-modular` 仓库 (/etc/yum.repos.d/fedora-modular.repo)**

<tmpl z-lang="ini">
[fedora-modular]
name=Fedora Modular $releasever - $basearch
failovermethod=priority
baseurl={{endpoint}}/releases/$releasever/Modular/$basearch/os/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
</tmpl>

**`updates-modular` 仓库 (/etc/yum.repos.d/fedora-updates-modular.repo)**

<tmpl z-lang="ini">
[updates-modular]
name=Fedora Modular $releasever - $basearch - Updates
failovermethod=priority
baseurl={{endpoint}}/updates/$releasever/Modular/$basearch/
enabled=1
countme=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
Expand Down

0 comments on commit ca2f43d

Please sign in to comment.