-* 镜像地址:
+* 官方仓库地址:https://repo.archlinuxcn.org
使用方法:在 `/etc/pacman.conf` 文件末尾添加以下两行:
-```
-[archlinuxcn]
-Server = https://{{ site.hostname }}/archlinuxcn/$arch
-```
-之后安装 `archlinuxcn-keyring` 包导入 GPG key。
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+之后通过一下命令安装 `archlinuxcn-keyring` 包导入 GPG key。
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-centos-vault.md b/help/_posts/1970-01-01-centos-vault.md
index cbecdb1..5084689 100644
--- a/help/_posts/1970-01-01-centos-vault.md
+++ b/help/_posts/1970-01-01-centos-vault.md
@@ -4,36 +4,63 @@ layout: help
mirrorid: centos-vault
---
-## centos-vault 镜像使用帮助
+# CentOS Vault 软件仓库镜像使用帮助
+
+
+
+
+
+
+
该文件夹提供较早版本的 CentOS,例如 CentOS 6;同时提供当前 CentOS 大版本的历史小版本的归档;
还提供 CentOS 各个版本的源代码和调试符号。
-建议先备份 `/etc/yum.repos.d/` 内的文件。
-
需要确定您所需要的小版本,如无特殊需要则使用该大版本的最后一个小版本,比如 6.10,5.11,我们将其标记为 `$minorver`,需要您在之后的命令中替换。
-然后编辑 `/etc/yum.repos.d/` 中的相应文件,在 `mirrorlist=` 开头行前面加 `#` 注释掉;并将 `baseurl=` 开头行取消注释(如果被注释的话)。
-对于 CentOS 8 之前的版本,请把该行内的域名及路径(例如`mirror.centos.org/centos/$releasever`)替换为 `{{ site.hostname }}/centos-vault/$minorver`。
-对于 CentOS 8 ,请注意域名及路径发生了更换,此时需要替换的字段为 `http://mirror.centos.org/$contentdir/$releasever` 。
-以上步骤可以被下方的命令完成
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
注意其中的`*`通配符,如果只需要替换一些文件中的源,请自行增删。
@@ -41,6 +68,19 @@ sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
最后,更新软件包缓存
-```
-sudo yum makecache
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-centos.md b/help/_posts/1970-01-01-centos.md
index a56ead9..752d069 100644
--- a/help/_posts/1970-01-01-centos.md
+++ b/help/_posts/1970-01-01-centos.md
@@ -4,33 +4,60 @@ layout: help
mirrorid: centos
---
-## CentOS 镜像使用帮助
+# CentOS 软件仓库镜像使用帮助
-**请注意,CentOS 8 (非 Stream 版)已提前进入 EOL 停止服务阶段,因此镜像已被官方移动。如果您正在寻找关于这些系统的镜像,请参考 centos-vault 的帮助。**
+
+
+
+
+
+
+
+**请注意,CentOS 8(非 Stream 版)已提前进入 EOL 停止服务阶段,因此镜像已被官方移动。如果您正在寻找关于这些系统的镜像,请参考 centos-vault 的帮助。**
该文件夹只提供 CentOS 7 与 8,架构仅为 `x86_64` ,如果需要较早版本的 CentOS,请参考 centos-vault 的帮助,若需要其他架构,请参考 centos-altarch 的帮助。
-建议先备份 `/etc/yum.repos.d/` 内的文件。
-然后编辑 `/etc/yum.repos.d/` 中的相应文件,在 `mirrorlist=` 开头行前面加 `#` 注释掉;并将 `baseurl=` 开头行取消注释(如果被注释的话)。
-对于 CentOS 7 ,请把该行内的域名(例如`mirror.centos.org`)替换为 `{{ site.hostname }}`。
-对于 CentOS 8 ,请把 `mirror.centos.org/$contentdir` 替换为 `{{ site.hostname }}/centos`。
-以上步骤可以被下方的命令一步完成
-
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
注意其中的`*`通配符,如果只需要替换一些文件中的源,请自行增删。
@@ -38,6 +65,19 @@ sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
最后,更新软件包缓存
-```
-sudo yum makecache
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-elrepo.md b/help/_posts/1970-01-01-elrepo.md
index b57eff6..d8a73ae 100644
--- a/help/_posts/1970-01-01-elrepo.md
+++ b/help/_posts/1970-01-01-elrepo.md
@@ -4,42 +4,117 @@ layout: help
mirrorid: elrepo
---
-## ELRepo 镜像使用帮助
+# ELRepo 软件仓库镜像使用帮助
+
+
+
+
+
+
+
首先按照[官网的安装说明](https://elrepo.org/tiki/tiki-index.php),配置 ELRepo:
```bash
-> rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
+rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
```
-接着,按照你的系统版本,如果是 RHEL-8 或者 CentOS-8 则运行:
+接着,按照你的系统版本,运行:
-```bash
-> yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
-```
-RHEL-7, SL-7 或者 CentOS-7:
-```bash
-> yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
-```
+
-RHEL-6, SL-6 或者 CentOS-6:
+{% raw %}
+
+{% endraw %}
-```bash
-> yum install https://www.elrepo.org/elrepo-release-6.el6.elrepo.noarch.rpm
-```
+
-建议先备份 `/etc/yum.repos.d/elrepo.repo` :
+
+
+
+
-```
-sudo cp /etc/yum.repos.d/elrepo.repo /etc/yum.repos.d/elrepo.repo.bak
-```
-然后编辑 /etc/yum.repos.d/elrepo.repo 文件,在 `mirrorlist=` 开头的行前面加 `#` 注释掉;并将 `elrepo.org/linux` 替换为 `{{ site.hostname }}/elrepo`。
+接下来是换源,建议先备份 `/etc/yum.repos.d/elrepo.repo` :
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+然后编辑 /etc/yum.repos.d/elrepo.repo 文件,在 `mirrorlist=` 开头的行前面加 `#` 注释掉;并将 `http://elrepo.org/linux` 替换为
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
最后,更新软件包缓存
-```
-sudo yum makecache
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-epel.md b/help/_posts/1970-01-01-epel.md
index f6786cd..190f8c2 100644
--- a/help/_posts/1970-01-01-epel.md
+++ b/help/_posts/1970-01-01-epel.md
@@ -1,45 +1,89 @@
---
-layout: help
category: help
+layout: help
mirrorid: epel
---
-## EPEL 镜像使用帮助
+# EPEL 软件仓库镜像使用帮助
-EPEL(Extra Packages for Enterprise Linux)是由Fedora Special Interest Group维护的Enterprise Linux(RHEL、CentOS)中经
+
+
+
+
+
+
+
+EPEL(Extra Packages for Enterprise Linux) 是由 Fedora Special Interest Group 维护的 Enterprise Linux(RHEL、CentOS)中经
常用到的包。
-下面以CentOS 7为例讲解如何使用本镜像站的epel镜像。CentOS 8同样可用该方法。
+下面以 CentOS 7 为例讲解如何使用本镜像站的 epel 镜像。CentOS 8 同样可用该方法。
-首先从CentOS Extras这个源([本镜像站](https://{{ site.hostname }}/help/centos)也有镜像)里安装epel-release:
+首先从 CentOS Extras 这个源里安装 epel-release:
-```
-yum install epel-release
-```
-
-修改`/etc/yum.repos.d/epel.repo`,将`mirrorlist`和`metalink`开头的行注释掉。
-接下来,取消注释这个文件里`baseurl`开头的行,并将其中的`http://download.fedoraproject.org/pub`替换成`https://{{ site.hostname }}`。
+{% raw %}
+
+{% endraw %}
-可以用如下命令自动替换:(来自 https://github.com/tuna/issues/issues/687)
+
-```
-sed -e 's!^metalink=!#metalink=!g' \
+
+
+
+
+
+
+用如下命令自动替换:(来自 [https://github.com/tuna/issues/issues/687](https://github.com/tuna/issues/issues/687))
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
修改结果如下:(仅供参考,不同版本可能不同)
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
运行 `yum update` 测试一下吧。
+
+
diff --git a/help/_posts/1970-01-01-fdroid.md b/help/_posts/1970-01-01-fdroid.md
index eba447d..978761c 100644
--- a/help/_posts/1970-01-01-fdroid.md
+++ b/help/_posts/1970-01-01-fdroid.md
@@ -4,14 +4,67 @@ layout: help
mirrorid: fdroid
---
-## F-Droid 镜像使用帮助
+# F-Droid 软件仓库镜像使用帮助
-用 F-Droid 客户端打开此链接:
+
+
+
+
+
+
+
+
+用 F-Droid 客户端打开此链接:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
-https://{{ site.hostname }}/fdroid/repo/?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB
或复制此链接后在客户端中添加存储库,可以将此镜像添加为用户镜像。
如果需要添加 Archive 库,可以使用如下链接:
-https://{{ site.hostname }}/fdroid/archive?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-fedora.md b/help/_posts/1970-01-01-fedora.md
index 3c48b8d..4738e5d 100644
--- a/help/_posts/1970-01-01-fedora.md
+++ b/help/_posts/1970-01-01-fedora.md
@@ -4,73 +4,175 @@ layout: help
mirrorid: fedora
---
-Fedora 镜像使用帮助
-===================
+# Fedora 软件仓库镜像使用帮助
+
+
+
+
+
+
+
Fedora 默认使用 [Metalink](https://zh.fedoracommunity.org/2018/04/05/fedora-secures-package-delivery.html) 给出推荐的镜像列表,保证用户使用的镜像仓库足够新,并且能够尽快拿到安全更新,从而提供更好的安全性。所以通常情况下使用默认配置即可,无需更改配置文件。
由于 Metalink 需要从国外的 Fedora 项目服务器上获取元信息,所以对于校园内网、无国外访问等特殊情况,metalink 并不适用,此时可以如下修改配置文件。
Fedora 的软件源配置文件可以有多个,其中:
-系统默认的 `fedora` 仓库配置文件为 `/etc/yum.repos.d/fedora.repo`,系统默认的 `updates` 仓库配置文件为 `/etc/yum.repos.d/fedora-updates.repo` 。将上述两个文件先做个备份,根据 Fedora 系统版本分别替换为下面内容,之后通过 `sudo dnf makecache` 命令更新本地缓存,即可使用 TUNA 的软件源镜像。
+系统默认的 `fedora` 仓库配置文件为 `/etc/yum.repos.d/fedora.repo`,系统默认的 `updates` 仓库配置文件为 `/etc/yum.repos.d/fedora-updates.repo` 。将上述两个文件先做个备份,根据 Fedora 系统版本分别替换为下面内容,之后通过 `sudo dnf makecache` 命令更新本地缓存,即可使用所选择的软件源镜像。
## Fedora 29 或更旧版本
-Fedora 29 及更旧版本已不再受官方支持,Fedora 官方已将 Fedora 29 及更旧版本的软件仓库从主镜像中移除,并转移至了 archive 镜像中。故Fedora 29 及更旧版本无法使用 TUNA 的镜像。请使用默认配置文件,以使 `yum` / `dnf` 自动获取可用的镜像源。
+Fedora 29 及更旧版本已不再受官方支持,Fedora 官方已将 Fedora 29 及更旧版本的软件仓库从主镜像中移除,并转移至了 archive 镜像中。故 Fedora 29 及更旧版本无法使用所选择的镜像。请使用默认配置文件,以使 `yum` / `dnf` 自动获取可用的镜像源。
## Fedora 30 或更新版本
+### 命令替换
+
+用以下命令替换 `/etc/yum.repos.d` 下的文件
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+
+### 手动替换
+
**`fedora` 仓库 (/etc/yum.repos.d/fedora.repo)**
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
**`updates` 仓库 (/etc/yum.repos.d/fedora-updates.repo)**
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
**`fedora-modular` 仓库 (/etc/yum.repos.d/fedora-modular.repo)**
-```
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
**`updates-modular` 仓库 (/etc/yum.repos.d/fedora-updates-modular.repo)**
-```
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-linuxmint.md b/help/_posts/1970-01-01-linuxmint.md
index f1dc19d..1ff803b 100644
--- a/help/_posts/1970-01-01-linuxmint.md
+++ b/help/_posts/1970-01-01-linuxmint.md
@@ -4,14 +4,65 @@ layout: help
mirrorid: linuxmint
---
-## Linux Mint 镜像使用帮助
+# Linux Mint 软件仓库镜像使用帮助
-Linux Mint 也采用 apt 作为包管理器,与 Ubuntu 和 Debian 类似,你需要编辑 `/etc/apt/sources.list` 和 `/etc/apt/sources.list.d/*` 中的路径。对于来自 Ubuntu 的部分源,可以参考 Ubuntu 镜像使用帮助进行修改。
+
-以 sonya 为例,需要修改 `/etc/apt/sources.list.d/mint.list` ,把 `packages.linuxmint.com` 替换为 `{{ site.hostname }}/linuxmint` :
-```text
-deb http://{{ site.hostname }}/linuxmint/ sonya main upstream import backport
-```
+
+
+
+
+Linux Mint 也采用 apt 作为包管理器,与 Ubuntu 和 Debian 类似,你需要编辑 `/etc/apt/sources.list` 和 `/etc/apt/sources.list.d/*` 中的路径。对于来自 Ubuntu 与 Debian 的部分源,可以参考 [Ubuntu 帮助](/help/ubuntu)与 [Debian 帮助](/help/debian)进行修改。
+
+需要修改 `/etc/apt/sources.list.d/official-package-repositories.list`(注意备份),把 `packages.linuxmint.com` 替换为镜像源
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
然后运行 `apt update` 即可。
+
+注:完成后请不要再使用 mintsources(自带的图形化软件源设置工具)进行任何操作,因为在操作后,无论是否有按“确定”,mintsources 均会复写 `/etc/apt/sources.list.d/official-package-repositories.list`。
+
diff --git a/help/_posts/1970-01-01-lxc-images.md b/help/_posts/1970-01-01-lxc-images.md
index f5f3065..0dc0938 100644
--- a/help/_posts/1970-01-01-lxc-images.md
+++ b/help/_posts/1970-01-01-lxc-images.md
@@ -4,22 +4,70 @@ layout: help
mirrorid: lxc-images
---
-## LXC Images 镜像帮助
+# LXC Images 软件仓库镜像使用帮助
+
+
+
+
+
+
+
LXC 1.0 以上版本增加了 `download` 模版,支持下载定义好的系统镜像。
-欲使用 TUNA 镜像进行下载加速,可以在 `lxc-create -t download` 的选项部分,
-增加 `--server {{ site.hostname }}/lxc-images` 即可,例如:
+欲使用镜像站进行下载加速,可以在 `lxc-create -t download` 的选项部分,
+增加 `--server` 即可,例如:
-```
-# lxc-create -t download -n my-container -- --server {{ site.hostname }}/lxc-images
-```
-**LXD/LXC 2.0及以上版本使用镜像加速的方法**:
-创建一个remote链接,指向镜像站即可,或替换掉默认的images链接。
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+**LXD/LXC 2.0 及以上版本使用镜像加速的方法**:
+
+创建一个 remote 链接,指向镜像站即可,或替换掉默认的 images 链接。
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
-```
-# lxc remote add tuna-images https://{{ site.hostname }}/lxc-images/ --protocol=simplestreams --public
-# lxc image list tuna-images:
-```
diff --git a/help/_posts/1970-01-01-mariadb.md b/help/_posts/1970-01-01-mariadb.md
index 829db25..8afb176 100644
--- a/help/_posts/1970-01-01-mariadb.md
+++ b/help/_posts/1970-01-01-mariadb.md
@@ -4,7 +4,30 @@ layout: help
mirrorid: mariadb
---
-## MariaDB 镜像使用帮助
+# MariaDB 软件仓库镜像使用帮助
+
+
+
+
+
+
+
由于 MariaDB 版本较多,建议在[官方页面](https://downloads.mariadb.org/mariadb/repositories)上生成配置文件内容。
@@ -19,9 +42,21 @@ https://apt.mariadb.org/mariadb/repo
换为
-```
-https://{{ site.hostname }}/mariadb/repo
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### RHEL/CentOS 等基于 yum 的系统
@@ -33,6 +68,19 @@ http://yum.mariadb.org
换为
-```
-https://{{ site.hostname }}/mariadb/yum
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-msys2.md b/help/_posts/1970-01-01-msys2.md
index 46c1552..42d4af4 100644
--- a/help/_posts/1970-01-01-msys2.md
+++ b/help/_posts/1970-01-01-msys2.md
@@ -4,25 +4,78 @@ layout: help
mirrorid: msys2
---
-MSYS2 镜像使用帮助
-==================
+# MSYS2 软件仓库镜像使用帮助
-收录架构
---------
+
+
+
+
+
+
+
+## 收录架构
* MINGW: i686, x86_64, ucrt64, clang64
* MSYS: i686, x86_64
-安装
---------------
+## 安装
-请访问该镜像目录下的 `distrib/` 目录([x86_64](https://{{ site.hostname }}/msys2/distrib/x86_64) 、[i686](https://{{ site.hostname }}/msys2/distrib/i686/)),找到名为 `msys2-<架构>-<日期>.exe` 的文件(如 `msys2-x86_64-20141113.exe`),下载安装即可。
+请访问镜像目录下的 `distrib/` 目录
-pacman 的配置
--------------
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+找到名为 `msys2-<架构>-<日期>.exe` 的文件(如 `msys2-x86_64-20141113.exe`),下载安装即可。
+
+## pacman 的配置
直接运行
-```bash
-sed -i "s#mirror.msys2.org/#{{ site.hostname }}/msys2/#g" /etc/pacman.d/mirrorlist*
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-repo-ck.md b/help/_posts/1970-01-01-repo-ck.md
index 63cd745..8d13035 100644
--- a/help/_posts/1970-01-01-repo-ck.md
+++ b/help/_posts/1970-01-01-repo-ck.md
@@ -4,27 +4,63 @@ layout: help
mirrorid: repo-ck
---
-## Archlinux repo-ck 镜像使用帮助
+# Repo-ck 软件仓库镜像使用帮助
+
+
+
+
+
+
+
[repo-ck](http://repo-ck.com/) 是
[Arch](https://archlinux.org/) 的非官方仓库,内有包含 ck
补丁、BFS
-调度器等,通用或为特定CPU架构优化过的内核,以及内核相关的软件包,是居家旅行,优化折腾的必备良药。更多内容,参考
+调度器等,通用或为特定 CPU 架构优化过的内核,以及内核相关的软件包,是居家旅行,优化折腾的必备良药。更多内容,参考
[ArchWiki](https://wiki.archlinux.org/index.php/repo-ck)。
### 食用方法
在 `/etc/pacman.conf` 里添加
-```
-[repo-ck]
-Server = https://{{ site.hostname }}/repo-ck/$arch
-```
-再增加 GPG 信任:
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+再增加 GPG 信任:
+
+```bash
pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C
```
之后 `pacman -Sy` 即可。
+
diff --git a/help/_posts/1970-01-01-rpmfusion.md b/help/_posts/1970-01-01-rpmfusion.md
index 9a1aca2..65461c8 100644
--- a/help/_posts/1970-01-01-rpmfusion.md
+++ b/help/_posts/1970-01-01-rpmfusion.md
@@ -4,32 +4,132 @@ layout: help
mirrorid: rpmfusion
---
-## RPMFusion 镜像使用帮助
+# RPMFusion 软件仓库镜像使用帮助
+
+
+
+
+
+
+
### 安装基础包
-首先安装提供基础配置文件和 GPG 密钥的 `rpmfusion-*.rpm`。Fedora 用户可使用如下命令:
+首先安装提供基础配置文件和 GPG 密钥的 `rpmfusion-*.rpm`。
-```
-sudo yum install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
-```
+#### Fedora 用户
-或者如下直接用 TUNA 镜像中的 rpm 包:
-```
-sudo yum install --nogpgcheck https://{{ site.hostname }}/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://{{ site.hostname }}/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
-```
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+或者如下直接用镜像中的 rpm 包:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+#### CentOS/RHEL 用户
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
注意:没有将当前用户设为管理员的用户,需要将 `sudo CMD` 替换为 `su -c 'CMD'`,并输入 root 密码。
-### 修改链接指向 TUNA 镜像
+### 修改链接指向镜像站
-安装成功后,修改 `/etc/yum.repos.d/` 目录下以 `rpmfusion` 开头,以 `.repo` 结尾的文件。具体而言,需要将文件中的 `baseurl=` 开头的行等号后面链接中的 `http://download1.rpmfusion.org/` 替换为 `https://{{ site.hostname }}/rpmfusion/`,替换后的文件类似如下:
+安装成功后,修改 `/etc/yum.repos.d/` 目录下以 `rpmfusion` 开头,以 `.repo` 结尾的文件。具体而言,需要将文件中的 `baseurl=` 开头的行等号后面链接中的 `http://download1.rpmfusion.org/` 替换为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+替换后的文件类似如下:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### 更多
-RHEL/CentOS 用户请参考 [RPMFusion 官方指南][rpmfusion]。
+RHEL/CentOS 用户请参考 [RPMFusion 官方指南](http://rpmfusion.org/Configuration)。
-[rpmfusion]: http://rpmfusion.org/Configuration
diff --git a/help/_posts/1970-01-01-stackage.md b/help/_posts/1970-01-01-stackage.md
index 8bc83e9..aff4b01 100644
--- a/help/_posts/1970-01-01-stackage.md
+++ b/help/_posts/1970-01-01-stackage.md
@@ -4,52 +4,124 @@ layout: help
mirrorid: stackage
---
-## stackage 镜像使用帮助
+# Stackage 软件仓库镜像使用帮助
-本镜像推荐与 TUNA 的 [Hackage 镜像](https://{{ site.hostname }}/help/hackage/)配合使用。
+
+
+
+
+
+
+
+本镜像推荐与[Hackage 镜像](/help/hackage)配合使用。
### stack >= v2.5.1
-修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
+修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
-```yaml
-setup-info-locations: ["http://{{ site.hostname }}/stackage/stack-setup.yaml"]
+
+
+{% raw %}
+
+{% endraw %}
-此外,还需要手动下载 到 `~/.stack/pantry/global-hints-cache.yaml`(在 Windows 下是 `%APPDATA%\stack\pantry\global-hints-cache.yaml`)。注意文件名不同。这是由于 `stack` 暂时不支持配置该文件的上游地址。该文件需要在每当第一次用到新版本的 GHC 时更新。
+
+
+
+
+
+
+
+
+此外,还需要手动下载 global-hints.yaml(参考 [GitHub RAW 帮助](/help/github-raw) 中 stackage global-hints-cache.yaml 一节)到 `~/.stack/pantry/global-hints-cache.yaml`(在 Windows 下是 `%APPDATA%\stack\pantry\global-hints-cache.yaml`)。注意文件名不同。这是由于 `stack` 暂时不支持配置该文件的上游地址。该文件需要在每当第一次用到新版本的 GHC 时更新。
### stack >= v2.3.1
-修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
+修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
-```yaml
-setup-info-locations: ["http://{{ site.hostname }}/stackage/stack-setup.yaml"]
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### stack >= v2.1.1
-修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
+修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
-```yaml
-setup-info: "http://{{ site.hostname }}/stackage/stack-setup.yaml"
+
+
+{% raw %}
+
+{% endraw %}
-### stack < v2.1.1
+
-修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
+
+
+
+
-```yaml
-setup-info: "http://{{ site.hostname }}/stackage/stack-setup.yaml"
+
+### stack 小于 v2.1.1
+
+修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-ubuntu-ports.md b/help/_posts/1970-01-01-ubuntu-ports.md
index c81d8be..ea3e722 100644
--- a/help/_posts/1970-01-01-ubuntu-ports.md
+++ b/help/_posts/1970-01-01-ubuntu-ports.md
@@ -38,6 +38,7 @@ Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的