help: remove docs replaced by helpz

This commit is contained in:
TechCiel 2023-10-31 02:51:48 +08:00
parent fe8aeb50f4
commit 0c7dd83932
No known key found for this signature in database
GPG Key ID: 490DF4BCC4E195BB
85 changed files with 0 additions and 9570 deletions

View File

@ -1,172 +0,0 @@
---
category: help
layout: help
mirrorid: Adoptium
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Adoptium 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Windows/macOS 用户
通过以下链接打开下载页面,选择所需的版本,下载独立安装包。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### Debian/Ubuntu 用户
首先请安装依赖:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}apt-get update && {{sudo}}apt-get install -y wget apt-transport-https
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
然后信任 GPG 公钥:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | {{sudo}}tee /etc/apt/keyrings/adoptium.asc
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-shell" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
随后执行以下命令来添加 apt 存储库:
{% raw %}
<script id="template-3" type="x-tmpl-markup">
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] {{http_protocol}}{{mirror}}/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | {{sudo}}tee /etc/apt/sources.list.d/adoptium.list
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
再执行
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}apt-get update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-shell" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
之后可以使用 `apt-get install temurin-<version>-jdk` 安装软件包,例如 `temurin-17-jdk``temurin-8-jdk`
### CentOS/RHEL/Fedora 用户
执行以下命令来添加 rpm 存储库:
{% raw %}
<script id="template-5" type="x-tmpl-markup">
[Adoptium]
name=Adoptium
baseurl={{http_protocol}}{{mirror}}/rpm/centos$releasever-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-ini" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>
再执行
{% raw %}
<script id="template-6" type="x-tmpl-markup">
{{sudo}}yum makecache
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-6" class="language-bash" data-template="#template-6" data-select="#http-select,#sudo-select">
</code>
</pre>
之后可以使用 `yum install temurin-<version>-jdk` 安装软件包,例如 `temurin-17-jdk``temurin-8-jdk`

View File

@ -1,104 +0,0 @@
---
category: help
layout: help
mirrorid: archlinux
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Arch Linux 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Arch Linux 是通用 x86-64 GNU/Linux 发行版。Arch 采用滚动升级模式,尽全力提供最新的稳定版软件。初始安装的 Arch 只是一个基本系统,随后用户可以根据自己的喜好安装需要的软件并配置成符合自己理想的系统。
Pacman 以 `mirrorlist` 中 Server 的顺序作为优先级,因此添加镜像需要在文件的最顶端添加;您可以同时注释掉其它所有镜像。
有关 Arch Linux 使用镜像的详细说明请见[官方文档](https://wiki.archlinux.org/title/mirrors)
编辑 `/etc/pacman.d/mirrorlist`,在文件的最顶端添加:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
Server = {{http_protocol}}{{mirror}}/$repo/os/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
更新软件包缓存:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}pacman -Syyu
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
两次 `y` 能避免从**损坏的**镜像切换到**正常的**镜像时出现的问题。
如果您从一个较新的镜像切换到较旧的镜像,以下命令可以降级部分包,以避免系统的部分更新。
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}pacman -Syyuu
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-shell" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
## Arch Linux Rollback Machine 使用帮助
因为 Arch Linux 的软件仓库和 iso 列表是不维护旧版本的,在少数情况下可能会需要安装旧版本的软件或系统,
因此镜像站维护了一个 [Arch Linux Rollback Machine](https://{{ site.arch_archive }}/)来满足这种情况。
Arch Linux Rollback Machine 的使用方法请参照 [wiki](https://wiki.archlinux.org/index.php/Arch_Linux_Archive)。
**需要注意的是,本镜像站的 Rollback Machine 的目录结构与 wiki 中的目录结构并不相同,配置时请自行替代。**

View File

@ -1,91 +0,0 @@
---
category: help
layout: help
mirrorid: archlinuxarm
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Arch Linux ARM 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### 软件源
编辑 `/etc/pacman.d/mirrorlist`,在文件的最顶端添加以下配置;您可以同时注释掉其它所有镜像。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
Server = {{http_protocol}}{{mirror}}/$arch/$repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
更新软件包缓存:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}pacman -Syy
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### 系统镜像
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
请访问 [https://archlinuxarm.org/platforms](https://archlinuxarm.org/platforms),阅读硬件平台对应的安装指引并下载对应的系统镜像。

View File

@ -1,77 +0,0 @@
---
category: help
layout: help
mirrorid: archlinuxcn
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Arch Linux CN 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Arch Linux 中文社区仓库 是由 Arch Linux
中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。
完整的包信息列表(包名称/架构/维护者/状态)请[点击这里](https://github.com/archlinuxcn/repo)查看。
*  官方仓库地址https://repo.archlinuxcn.org
使用方法:在 `/etc/pacman.conf` 文件末尾添加以下两行:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[archlinuxcn]
Server = {{http_protocol}}{{mirror}}/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
之后通过一下命令安装 `archlinuxcn-keyring` 包导入 GPG key。
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}pacman -Sy archlinuxcn-keyring
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: binutils-gdb.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# GDB Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 Binutils 等项目的代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,88 +0,0 @@
---
category: help
layout: help
mirrorid: centos-vault
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# CentOS Vault 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
该文件夹提供较早版本的 CentOS例如 CentOS 6同时提供当前 CentOS 大版本的历史小版本的归档;
还提供 CentOS 各个版本的源代码和调试符号。
需要确定您所需要的小版本,如无特殊需要则使用该大版本的最后一个小版本,比如 6.105.11,我们将其标记为 `$minorver`,需要您在之后的命令中替换。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# CentOS 8 之前
minorver=6.10
{{sudo}}sed -e "s|^mirrorlist=|#mirrorlist=|g" \
-e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl={{http_protocol}}{{mirror}}/$minorver|g" \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo
# CentOS 8 之后
minorver=8.5.2111
{{sudo}}sed -e "s|^mirrorlist=|#mirrorlist=|g" \
-e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl={{http_protocol}}{{mirror}}/$minorver|g" \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
注意其中的`*`通配符,如果只需要替换一些文件中的源,请自行增删。
注意,如果需要启用其中一些 repo需要将其中的 `enabled=0` 改为 `enabled=1`
最后,更新软件包缓存
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}yum makecache
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,85 +0,0 @@
---
category: help
layout: help
mirrorid: centos
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# CentOS 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
**请注意CentOS 8非 Stream 版)已提前进入 EOL 停止服务阶段,因此镜像已被官方移动。如果您正在寻找关于这些系统的镜像,请参考 centos-vault 的帮助。**
该文件夹只提供 CentOS 7 与 8架构仅为 `x86_64` ,如果需要较早版本的 CentOS请参考 centos-vault 的帮助,若需要其他架构,请参考 centos-altarch 的帮助。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# 对于 CentOS 7
{{sudo}}sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://mirror.centos.org/centos|baseurl={{http_protocol}}{{mirror}}|g' \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo
# 对于 CentOS 8
{{sudo}}sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://mirror.centos.org/$contentdir|baseurl={{http_protocol}}{{mirror}}|g' \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
注意其中的`*`通配符,如果只需要替换一些文件中的源,请自行增删。
注意,如果需要启用其中一些 repo需要将其中的 `enabled=0` 改为 `enabled=1`
最后,更新软件包缓存
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}yum makecache
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,97 +0,0 @@
---
category: help
layout: help
mirrorid: chef
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Chef 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Chef 是一套自动化运维工具。
### Debian/Ubuntu 用户
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/chef.list`
<form class="form-inline">
<div class="form-group">
<label>Ubuntu/Debian 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="focal" selected>Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-release_name="xenial">Ubuntu 16.04 LTS</option>
<option data-release_name="trusty">Ubuntu 14.04 LTS</option>
<option data-release_name="bullseye">Debian 11 (bullseye)</option>
<option data-release_name="buster">Debian 10 (buster)</option>
<option data-release_name="stretch">Debian 9 (stretch)</option>
<option data-release_name="jessie">Debian 8 (jessie)</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/apt/stable {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/chef.repo`,内容为:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
[chef-stable]
name=chef-stable
baseurl={{http_protocol}}{{mirror}}/yum/stable/stable-el$releasever-x86_64/
enabled=1
gpgcheck=1
gpgkey=https://packages.chef.io/chef.asc
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-ini" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,85 +0,0 @@
---
category: help
layout: help
mirrorid: crates.io-index.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Rust crates.io 索引镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
编辑 `$CARGO_HOME/config` 文件,添加以下内容:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "{{http_protocol}}{{mirror}}"
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-toml" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
注:`$CARGO_HOME`:在 Windows 系统默认为:`%USERPROFILE%\.cargo`,在类 Unix 系统默认为:`$HOME/.cargo`
在 Linux 环境可以使用下面的命令完成:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
mkdir -vp ${CARGO_HOME:-$HOME/.cargo}
cat << EOF | tee -a ${CARGO_HOME:-$HOME/.cargo}/config
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "{{http_protocol}}{{mirror}}"
EOF
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
在可能的情况下推荐使用 [Rust crates.io 稀疏索引镜像](/help/crates.io-index)

View File

@ -1,136 +0,0 @@
---
category: help
layout: help
mirrorid: debian
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Debian 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
一般情况下,将 `/etc/apt/sources.list` 文件中 Debian 默认的源地址 `http://deb.debian.org/` 替换为镜像地址即可。
Debian Buster 以上版本默认支持 HTTPS 源。如果遇到无法拉取 HTTPS 源的情况,请先使用 HTTP 源并安装:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}apt install apt-transport-https ca-certificates
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
<form class="form-inline">
<div class="form-group">
<label>Debian 版本:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-release_name="bookworm" data-security="-security" data-is_sid="" data-has_backports="" data-has_nfw=" non-free-firmware" selected>Debian 12 (bookworm)</option>
<option data-release_name="bullseye" data-security="-security" data-is_sid="" data-has_backports="" data-has_nfw="">Debian 11 (bullseye)</option>
<option data-release_name="sid" data-security="-security" data-is_sid="# " data-has_backports="# " data-has_nfw=" non-free-firmware">sid</option>
<option data-release_name="testing" data-security="-security" data-is_sid="" data-has_backports="" data-has_nfw=" non-free-firmware">testing</option>
<option data-release_name="buster" data-security="/updates" data-is_sid="" data-has_backports="" data-has_nfw="">Debian 10 (buster)</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-1-1" class="form-control content-select" data-target="#content-1">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>使用官方安全更新软件源:</label>
<select id="select-1-2" class="form-control content-select" data-target="#content-1">
<option data-security_mirror="# " data-security_official="" selected></option>
<option data-security_mirror="" data-security_official="# "></option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb {{http_protocol}}{{mirror}}/ {{release_name}} main contrib non-free{{has_nfw}}
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}} main contrib non-free{{has_nfw}}
{{is_sid}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-updates main contrib non-free{{has_nfw}}
{{is_sid}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-updates main contrib non-free{{has_nfw}}
{{is_sid}}{{has_backports}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-backports main contrib non-free{{has_nfw}}
{{is_sid}}{{has_backports}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-backports main contrib non-free{{has_nfw}}
{{security_mirror}}{{is_sid}}deb {{http_protocol}}{{mirror}}-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
{{security_mirror}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
{{security_official}}{{is_sid}}deb {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
{{security_official}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0,#select-1-1,#select-1-2">
</code>
</pre>
不过,一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟。参考 https://www.debian.org/security/faq.en.html#mirror
> The purpose of security.debian.org is to make security updates available as quickly and easily as possible.
>
> Encouraging the use of unofficial mirrors would add extra complexity that is usually not needed and that can cause frustration if these mirrors are not kept up to date.
### Connection reset by peer
在 apt 2.1.9 及以后的版本中apt 的 HTTP Pipelining 特性与 Nginx 服务器疑似存在一定的不兼容问题,可能导致高带宽从镜像站下载大量软件包
(例如系统升级)时出现偶发的 Connection reset by peer 错误
(详见 [Debian bug #973581](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973581))。
目前,用户可以通过关闭 HTTP Pipelining 特性解决此问题。
如果需要关闭,可以在使用 `apt` 命令时加上 `-o Acquire::http::Pipeline-Depth=0` 参数,
或使用以下命令将相关设置加入 apt 系统配置中:
```bash
echo "Acquire::http::Pipeline-Depth \"0\";" > /etc/apt/apt.conf.d/99nopipelining
```

View File

@ -1,306 +0,0 @@
---
category: help
layout: help
mirrorid: docker-ce
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Docker CE 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7,#content-8,#content-9,#content-10">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7,#content-8,#content-9,#content-10">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
**注意:本镜像只提供 Debian/Ubuntu/Fedora/CentOS/RHEL 的 docker 软件包,非 dockerhub**
### 自动安装
Docker 提供了一个自动配置与安装的脚本,支持 Debian、RHEL、SUSE 系列及衍生系统的安装。
以下内容假定
- 您为 root 用户,或有 sudo 权限,或知道 root 密码;
- 您系统上有 curl 或 wget
{% raw %}
<script id="template-0" type="x-tmpl-markup">
export DOWNLOAD_URL="{{http_protocol}}{{mirror}}"
# 如您使用 curl
curl -fsSL https://get.docker.com/ | {{sudoE}}sh
# 如您使用 wget
wget -O- https://get.docker.com/ | {{sudoE}}sh
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### Debian/Ubuntu/Raspbian 用户
以下内容根据 [官方文档](https://docs.docker.com/engine/install/debian/) 修改而来。
如果你过去安装过 docker先删掉
{% raw %}
<script id="template-1" type="x-tmpl-markup">
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do {{sudo}}apt-get remove $pkg; done
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
首先安装依赖:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install ca-certificates curl gnupg
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
信任 Docker 的 GPG 公钥并添加仓库:
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-3-0" class="form-control content-select" data-target="#content-3">
<option data-deb_release="debian" selected>Debian</option>
<option data-deb_release="ubuntu">Ubuntu</option>
<option data-deb_release="raspbian">Raspbian</option>
</select>
</div>
</form>
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{sudo}}install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/{{deb_release}}/gpg | {{sudo}}gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{http_protocol}}{{mirror}}/linux/{{deb_release}} \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
{{sudo}}tee /etc/apt/sources.list.d/docker.list > /dev/null
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-bash" data-template="#template-3" data-select="#http-select,#sudo-select,#select-3-0">
</code>
</pre>
最后安装
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-bash" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
### Fedora
以下内容根据 [官方文档](https://docs.docker.com/engine/install/fedora/) 修改而来。
如果你之前安装过 docker请先删掉
{% raw %}
<script id="template-5" type="x-tmpl-markup">
{{sudo}}dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-bash" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>
安装依赖,下载 repo 文件,并把软件仓库地址替换为镜像站:
{% raw %}
<script id="template-6" type="x-tmpl-markup">
{{sudo}}dnf -y install dnf-plugins-core
{{sudo}}dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
{{sudo}}sed -i 's+https://download.docker.com+{{http_protocol}}{{mirror}}+' /etc/yum.repos.d/docker-ce.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-6" class="language-bash" data-template="#template-6" data-select="#http-select,#sudo-select">
</code>
</pre>
最后安装:
{% raw %}
<script id="template-7" type="x-tmpl-markup">
{{sudo}}dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-7" class="language-bash" data-template="#template-7" data-select="#http-select,#sudo-select">
</code>
</pre>
### CentOS/RHEL
以下内容根据 [官方文档](https://docs.docker.com/engine/install/centos/) 修改而来。
如果你之前安装过 docker请先删掉
{% raw %}
<script id="template-8" type="x-tmpl-markup">
{{sudo}}yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-8" class="language-bash" data-template="#template-8" data-select="#http-select,#sudo-select">
</code>
</pre>
安装依赖,下载 repo 文件,并把软件仓库地址替换为镜像站:
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-9-0" class="form-control content-select" data-target="#content-9">
<option data-yum_release="centos" selected>CentOS</option>
<option data-yum_release="rhel">RHEL</option>
</select>
</div>
</form>
{% raw %}
<script id="template-9" type="x-tmpl-markup">
{{sudo}} yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/{{yum_release}}/docker-ce.repo
{{sudo}}sed -i 's+https://download.docker.com+{{http_protocol}}{{mirror}}+' /etc/yum.repos.d/docker-ce.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-9" class="language-bash" data-template="#template-9" data-select="#http-select,#sudo-select,#select-9-0">
</code>
</pre>
最后安装:
{% raw %}
<script id="template-10" type="x-tmpl-markup">
{{sudo}}yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-10" class="language-bash" data-template="#template-10" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,122 +0,0 @@
---
category: help
layout: help
mirrorid: elrepo
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# ELRepo 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
首先按照[官网的安装说明](https://elrepo.org/tiki/tiki-index.php),配置 ELRepo
```bash
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
```
接着,按照你的系统版本,运行:
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="el7" data-version="7" selected>RHEL-7, SL-7, CentOS-7</option>
<option data-release_name="el8" data-version="8">RHEL-8, SL-8, CentOS-8</option>
<option data-release_name="el6" data-version="6">RHEL-6, SL-6, CentOS-6</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
yum install https://www.elrepo.org/elrepo-release-{{version}}.{{release_name}}.elrepo.noarch.rpm
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
接下来是换源,建议先备份 `/etc/yum.repos.d/elrepo.repo`
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}cp /etc/yum.repos.d/elrepo.repo /etc/yum.repos.d/elrepo.repo.bak
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
然后编辑 /etc/yum.repos.d/elrepo.repo 文件,在 `mirrorlist=` 开头的行前面加 `#` 注释掉;并将 `http://elrepo.org/linux` 替换为
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
最后,更新软件包缓存
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{sudo}}yum makecache
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,124 +0,0 @@
---
category: help
layout: help
mirrorid: epel
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# EPEL 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
EPEL(Extra Packages for Enterprise Linux) 是由 Fedora Special Interest Group 维护的 Enterprise LinuxRHEL、CentOS中经
常用到的包。
下面以 CentOS 7 为例讲解如何使用本镜像站的 epel 镜像。CentOS 8 或 CentOS Stream 同样可用该方法。
首先从 CentOS Extras 这个源里安装 epel-release
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}yum install epel-release
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
用如下命令自动替换:(来自 [https://github.com/tuna/issues/issues/687](https://github.com/tuna/issues/issues/687)
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}sed -e 's!^metalink=!#metalink=!g' \
-e 's!^#baseurl=!baseurl=!g' \
-e 's!https\?://download\.fedoraproject\.org/pub/epel!{{http_protocol}}{{mirror}}!g' \
-e 's!https\?://download\.example/pub/epel!{{http_protocol}}{{mirror}}!g' \
-i /etc/yum.repos.d/epel*.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
修改结果如下:(仅供参考,不同版本可能不同)
{% raw %}
<script id="template-2" type="x-tmpl-markup">
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl={{http_protocol}}{{mirror}}/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl={{http_protocol}}{{mirror}}/7/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl={{http_protocol}}{{mirror}}/7/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-ini" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
运行 `yum update` 测试一下吧。

View File

@ -1,72 +0,0 @@
---
category: help
layout: help
mirrorid: fdroid
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# F-Droid 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
用 F-Droid 客户端打开此链接:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/repo/?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
或复制此链接后在客户端中添加存储库,可以将此镜像添加为用户镜像。
如果需要添加 Archive 库,可以使用如下链接:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/archive?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,180 +0,0 @@
---
category: help
layout: help
mirrorid: fedora
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Fedora 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
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` 命令更新本地缓存,即可使用所选择的软件源镜像。
## Fedora 29 或更旧版本
Fedora 29 及更旧版本已不再受官方支持Fedora 官方已将 Fedora 29 及更旧版本的软件仓库从主镜像中移除,并转移至了 archive 镜像中。故 Fedora 29 及更旧版本无法使用所选择的镜像。请使用默认配置文件,以使 `yum` / `dnf` 自动获取可用的镜像源。
## Fedora 30 或更新版本
### 命令替换
用以下命令替换 `/etc/yum.repos.d` 下的文件
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}sed -e 's|^metalink=|#metalink=|g' \
-e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl={{http_protocol}}{{mirror}}|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
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### 手动替换
**`fedora` 仓库 (/etc/yum.repos.d/fedora.repo)**
{% raw %}
<script id="template-1" type="x-tmpl-markup">
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl={{http_protocol}}{{mirror}}/releases/$releasever/Everything/$basearch/os/
metadata_expire=28d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-ini" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
**`updates` 仓库 (/etc/yum.repos.d/fedora-updates.repo)**
{% raw %}
<script id="template-2" type="x-tmpl-markup">
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl={{http_protocol}}{{mirror}}/updates/$releasever/Everything/$basearch/
enabled=1
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-ini" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
**`fedora-modular` 仓库 (/etc/yum.repos.d/fedora-modular.repo)**
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[fedora-modular]
name=Fedora Modular $releasever - $basearch
failovermethod=priority
baseurl={{http_protocol}}{{mirror}}/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
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
**`updates-modular` 仓库 (/etc/yum.repos.d/fedora-updates-modular.repo)**
{% raw %}
<script id="template-4" type="x-tmpl-markup">
[updates-modular]
name=Fedora Modular $releasever - $basearch - Updates
failovermethod=priority
baseurl={{http_protocol}}{{mirror}}/updates/$releasever/Modular/$basearch/
enabled=1
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-ini" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,76 +0,0 @@
---
category: help
layout: help
mirrorid: flutter-sdk.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Flutter SDK 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Flutter SDK 默认从 Github 获取更新,如您访问 Github 速度慢,可以在 Flutter 目录下运行命令:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
将上游设置为镜像站。
或者通过下面的命令,直接从 Master 构建渠道检出 Flutter 的 SDK
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git clone -b master {{http_protocol}}{{mirror}}
./flutter-sdk/bin/flutter --version
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
您也可以替换上述代码中 `git clone -b` 之后的 `master``beta` 获取 Beta 渠道的构建、替换为 `dev` 获取 Dev 渠道的构建。
Flutter 镜像使用方法参见 [Flutter 镜像安装帮助](/help/flutter)。

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: gcc.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# GCC Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 GCC 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,153 +0,0 @@
---
category: help
layout: help
mirrorid: gitlab-ce
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# GitLab CE 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
**注意gitlab-ce 镜像仅支持 x86-64 架构**
### Debian/Ubuntu 用户
首先信任 GitLab 的 GPG 公钥:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-ce.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-os_name="debian" data-release_name="bookworm" selected>Debian 12</option>
<option data-os_name="debian" data-release_name="bullseye">Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
</code>
</pre>
安装 gitlab-ce:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install gitlab-ce
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/gitlab-ce.repo`,内容为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[gitlab-ce]
name=Gitlab CE Repository
baseurl={{http_protocol}}{{mirror}}/yum/el$releasever/
gpgcheck=0
enabled=1
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
再执行
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum install gitlab-ce
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-bash" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,155 +0,0 @@
---
category: help
layout: help
mirrorid: gitlab-runner
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# GitLab Runner 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
**注意gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构**
### Debian/Ubuntu 用户
首先信任 GitLab 的 GPG 公钥:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-runner.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-os_name="debian" data-release_name="bullseye" selected>Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
</code>
</pre>
安装 gitlab-runner:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install gitlab-runner
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### CentOS/RHEL
新建 `/etc/yum.repos.d/gitlab-runner.repo`,内容为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[gitlab-runner]
name=gitlab-runner
baseurl={{http_protocol}}{{mirror}}/yum/el$releasever-$basearch/
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
再执行
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum install gitlab-runner
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-bash" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: glibc.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# GNU C Library (glibc) Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 GNU C Library 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: linux-firmware.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Linux Firmware Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 Linux Firmware 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: linux-next.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Linux Next Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 Linux Next 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: linux-stable.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Linux Stable Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 Linux Stable 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,113 +0,0 @@
---
category: help
layout: help
mirrorid: linux.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Linux Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
如需克隆 Linux 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站
### 增量下载
如果需要其它 linux 分支的代码(如树莓派内核代码),可以在 clone 本项目基础上增量下载分支的代码,从而加速下载
以树莓派为例,具体操作为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
git remote add rasp https://github.com/raspberrypi/linux.git
git fetch rasp
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-bash" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,71 +0,0 @@
---
category: help
layout: help
mirrorid: linuxmint
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Linux Mint 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
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` 替换为镜像源
<form class="form-inline">
<div class="form-group">
<label>Linux Mint 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="victoria" selected>21.2</option>
<option data-release_name="vera">21.1</option>
<option data-release_name="vanessa">21</option>
<option data-release_name="una">20.3</option>
<option data-release_name="uma">20.2</option>
<option data-release_name="ulyssa">20.1</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/ {{release_name}} main upstream import backport
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
然后运行 `apt update` 即可。
注:完成后请不要再使用 mintsources自带的图形化软件源设置工具进行任何操作因为在操作后无论是否有按“确定”mintsources 均会复写 `/etc/apt/sources.list.d/official-package-repositories.list`

View File

@ -1,75 +0,0 @@
---
category: help
layout: help
mirrorid: lxc-images
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# LXC Images 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
LXC 1.0 以上版本增加了 `download` 模版,支持下载定义好的系统镜像。
欲使用镜像站进行下载加速,可以在 `lxc-create -t download` 的选项部分,
增加 `--server` 即可,例如:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
lxc-create -t download -n my-container -- --server {{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
**LXD/LXC 2.0 及以上版本使用镜像加速的方法**:
创建一个 remote 链接,指向镜像站即可,或替换掉默认的 images 链接。
{% raw %}
<script id="template-1" type="x-tmpl-markup">
lxc remote add mirror-images {{http_protocol}}{{mirror}}/ --protocol=simplestreams --public
lxc image list mirror-images:
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,88 +0,0 @@
---
category: help
layout: help
mirrorid: mariadb
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# MariaDB 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
由于 MariaDB 版本较多,建议在[官方页面](https://downloads.mariadb.org/mariadb/repositories)上生成配置文件内容。
### Debian/Ubuntu 等基于 apt 的系统
新建 `/etc/apt/sources.list.d/MariaDB.list`,填入工具生成的配置内容,并将其中的地址部分,例如:
```
https://apt.mariadb.org/mariadb/repo
```
换为
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### RHEL/CentOS 等基于 yum 的系统
新建 `/etc/yum.repos.d/MariaDB.repo`,填入工具生成的配置内容,并将`baseurl=`后的地址部分,例如:
```
http://yum.mariadb.org
```
换为
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/yum
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,178 +0,0 @@
---
category: help
layout: help
mirrorid: mongodb
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# MongoDB 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
MongoDB 镜像自 MongoDB [官方仓库](https://repo.mongodb.org/),目前有 RHEL/CentOS, Ubuntu, Debian 的镜像,支持 amd64, i386, arm64 架构。
更详细的内容,可以参考 [官方文档](https://docs.mongodb.org/master/administration/install-on-linux/)
### Debian/Ubuntu 用户
首先信任 MongoDB 的 GPG 公钥:
<form class="form-inline">
<div class="form-group">
<label>MongoDB 版本号:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-version="6.0" selected>6.0</option>
<option data-version="5.0">5.0</option>
<option data-version="4.4">4.4</option>
<option data-version="4.2">4.2</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
wget -qO - https://www.mongodb.org/static/pgp/server-{{version}}.asc | {{sudo}}apt-key add -
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mongodb.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-os_name="debian" data-release_name="bullseye" data-component_name="main" selected>Debian 11</option>
<option data-os_name="debian" data-release_name="buster" data-component_name="main">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch" data-component_name="main">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie" data-component_name="main">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="jammy" data-component_name="multiverse">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal" data-component_name="multiverse">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic" data-component_name="multiverse">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial" data-component_name="multiverse">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>MongoDB 版本号:</label>
<select id="select-1-1" class="form-control content-select" data-target="#content-1">
<option data-version="6.0" selected>6.0</option>
<option data-version="5.0">5.0</option>
<option data-version="4.4">4.4</option>
<option data-version="4.2">4.2</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/apt/{{os_name}} {{release_name}}/mongodb-org/{{version}} {{component_name}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0,#select-1-1">
</code>
</pre>
安装 `mongodb-org` 即可
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install -y mongodb-org
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-shell" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/mongodb.repo`,内容为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[mongodb-org]
name=MongoDB Repository
baseurl={{http_protocol}}{{mirror}}/yum/el$releasever/
gpgcheck=0
enabled=1
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
刷新缓存并安装 `mongodb-org` 即可。
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum install mongodb-org
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-shell" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,83 +0,0 @@
---
category: help
layout: help
mirrorid: msys2
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# MSYS2 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
## 收录架构
* MINGW: i686, x86_64, ucrt64, clang64
* MSYS: i686, x86_64
## 安装
请访问镜像目录下的 `distrib/` 目录
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# x86_64
{{http_protocol}}{{mirror}}/distrib/x86_64/
# i686
{{http_protocol}}{{mirror}}/distrib/i686/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
找到名为 `msys2-<架构>-<日期>.exe` 的文件(如 `msys2-x86_64-20141113.exe`),下载安装即可。
## pacman 的配置
直接运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
sed -i "s#https\?://mirror.msys2.org/#{{http_protocol}}{{mirror}}/#g" /etc/pacman.d/mirrorlist*
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,146 +0,0 @@
---
category: help
layout: help
mirrorid: mysql
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# MySQL 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Debian/Ubuntu 用户
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mysql-community.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-os_name="debian" data-release_name="bullseye" selected>Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>MySQL 版本号:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-version="8.0" selected>8.0</option>
<option data-version="5.7">5.7</option>
<option data-version="5.6">5.6</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/apt/{{os_name}} {{release_name}} mysql-{{version}} mysql-tools
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1">
</code>
</pre>
参考文档https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/mysql-community.repo`,内容如下:
注:`mysql-8.0`, `mysql-connectors``mysql-tools` 在 RHEL 7/8 上还提供了 `aarch64` 版本。
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-release_name="el7" selected>CentOS/RHEL 7</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>MySQL 版本号:</label>
<select id="select-1-1" class="form-control content-select" data-target="#content-1">
<option data-version="8.0" selected>8.0</option>
<option data-version="5.7">5.7</option>
<option data-version="5.6">5.6</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl={{http_protocol}}{{mirror}}/yum/mysql-connectors-community-{{release_name}}-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
[mysql-tools-community]
name=MySQL Tools Community
baseurl={{http_protocol}}{{mirror}}/yum/mysql-tools-community-{{release_name}}-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
[mysql-{{version}}-community]
name=MySQL {{version}} Community Server
baseurl={{http_protocol}}{{mirror}}/yum/mysql-{{version}}-community-{{release_name}}-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-ini" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0,#select-1-1">
</code>
</pre>
参考文档https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

View File

@ -1,147 +0,0 @@
---
category: help
layout: help
mirrorid: proxmox
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Proxmox 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Debian 软件源
参考 [Debian 帮助](/help/debian) 修改 `/etc/apt/sources.list`
### 软件源
新建 `/etc/apt/sources.list.d/pve-no-subscription.list`(如果选择的不是 pve需要使用另一个文件名内容为
<form class="form-inline">
<div class="form-group">
<label>Debian 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="bookworm" selected>Debian 12</option>
<option data-release_name="bullseye">Debian 11</option>
<option data-release_name="buster">Debian 10</option>
<option data-release_name="stretch">Debian 9</option>
<option data-release_name="jessie">Debian 8</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>服务:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-service="pve" selected>Proxmox Virtual Environment (PVE)</option>
<option data-service="pbs">Proxmox Backup Server (PBS)</option>
<option data-service="pbs-client">Proxmox Backup Client (PBS-CLIENT)</option>
<option data-service="pmg">Proxmox Mail Gateway (PMG)</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/debian/{{service}} {{release_name}} {{service}}-no-subscription
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1">
</code>
</pre>
注意快速配置中的文件名需要根据需求而修改。
### ISO 安装文件下载
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/iso/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### CT Templates
如果你需要加速 Proxmox 网页端下载 CT Templates可以替换 CT Templates 的源。
具体方法:将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 `http://download.proxmox.com`
替换为
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
可以使用如下命令修改:
{% raw %}
<script id="template-3" type="x-tmpl-markup">
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|{{http_protocol}}{{mirror}}|g' /usr/share/perl5/PVE/APLInfo.pm
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-bash" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。

View File

@ -1,99 +0,0 @@
---
category: help
layout: help
mirrorid: qemu.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# QEMU Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
## 实验性脚本(仅 TUNA 提供)
如需克隆 QEMU 代码及其子模块,使用以下脚本
```
curl https://mirrors.tuna.tsinghua.edu.cn/git/qemu/qemu.sh | bash
```
## 手动克隆
如仅需克隆 QEMU 代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站

View File

@ -1,139 +0,0 @@
---
category: help
layout: help
mirrorid: raspbian
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Raspbian 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Raspbian 简介
Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi® “树莓派”的操作系统,
其基于 Debian 开发,针对 Raspberry Pi 硬件优化。
Raspbian 并非由树莓派的开发与维护机构 The Raspberry Pi Foundation
“树莓派基金会”官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
Raspbian 系统由于从诞生开始就基于(为了 armhf也必须基于当时还是
testing 版本的 7.0/wheezy所以 Raspbian 不倾向于使用 stable/testing
表示版本。
### 使用说明
首先通过 `uname -m` 确定你使用的系统的架构。
编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
#### armv7l
<form class="form-inline">
<div class="form-group">
<label>选择你的 Raspbian 对应的 Debian 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="bullseye" selected>Debian 11 (bullseye)</option>
<option data-release_name="buster">Debian 10 (buster)</option>
<option data-release_name="stretch">Debian 9 (stretch)</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用 multi-arch aarch64</label>
<select id="select-0-2" class="form-control content-select" data-target="#content-0">
<option data-enable_aarch64="# " selected></option>
<option data-enable_aarch64=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/raspbian/ {{release_name}} main non-free contrib rpi
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/raspbian/ {{release_name}} main non-free contrib rpi
{{enable_aarch64}}deb [arch=arm64] {{http_protocol}}{{mirror}}/multiarch/ {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1,#select-0-2">
</code>
</pre>
注意:网址末尾的`raspbian`重复两次是必须的。因为 Raspbian 的仓库中除了 APT 软件源还包含其他代码。APT 软件源不在仓库的根目录,而在`raspbian/`子目录下。
#### aarch64
aarch64 用户可直接参考 [Debian 帮助](/help/debian)
#### raspberry 镜像
对于两个架构,编辑 `/etc/apt/sources.list.d/raspi.list` 文件,这需要查看 [Raspberrypi 帮助](/help/raspberrypi)。
### 相关链接
#### Raspbian 链接
*  Raspbian 主页:[https://www.raspbian.org](https://www.raspbian.org)
* 文档:[https://www.raspbian.org/RaspbianDocumentation](https://www.raspbian.org/RaspbianDocumentation)
* Bug 反馈:[https://www.raspbian.org/RaspbianBugs](https://www.raspbian.org/RaspbianBugs)
*  镜像列表: [https://www.raspbian.org/RaspbianMirrors](https://www.raspbian.org/RaspbianMirrors)
#### 树莓派链接
* 树莓派基金会主页:[https://www.raspberrypi.org/](https://www.raspberrypi.org/)
* 树莓派基金会论坛 Raspberry Pi OS 版块:[https://raspberrypi.org/forums/viewforum.php?f=66](https://raspberrypi.org/forums/viewforum.php?f=66)
### 关于本文档
本文档内容的原始版本由 Raspberry Pi
中文社区“树莓爱好者论坛”提供。按照 [知识共享署名 - 非商业性使用
3.0
中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/) 授权清华大学镜像站使用。
TUNA 提供的修改版本同样使用 [知识共享署名 - 非商业性使用
3.0
中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/)。

View File

@ -1,68 +0,0 @@
---
category: help
layout: help
mirrorid: repo-ck
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Repo-ck 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[repo-ck](http://repo-ck.com/) 是
[Arch](https://archlinux.org/) 的非官方仓库,内有包含 ck
补丁、BFS
调度器等,通用或为特定 CPU 架构优化过的内核,以及内核相关的软件包,是居家旅行,优化折腾的必备良药。更多内容,参考
[ArchWiki](https://wiki.archlinux.org/index.php/repo-ck)。
### 食用方法
`/etc/pacman.conf` 里添加
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[repo-ck]
Server = {{http_protocol}}{{mirror}}/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
再增加 GPG 信任:
```bash
pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C
```
之后 `pacman -Sy` 即可。

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: ros
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# ROS 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
新建 `/etc/apt/sources.list.d/ros-latest.list`,内容为:
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="focal" selected>Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-release_name="xenial">Ubuntu 16.04 LTS</option>
<option data-release_name="trusty">Ubuntu 14.04 LTS</option>
<option data-release_name="buster">Debian 10</option>
<option data-release_name="stretch">Debian 9</option>
<option data-release_name="jessie">Debian 8</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/ubuntu/ {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
然后再输入如下命令,信任 ROS 的 GPG Key并更新索引
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
{{sudo}}apt update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### rosdep
参考 [ROS Distro 帮助](/help/rosdistro)

View File

@ -1,90 +0,0 @@
---
category: help
layout: help
mirrorid: ros2
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# ROS2 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
输入如下命令,下载 ROS 的 GPG Key
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}apt install curl gnupg2
{{sudo}}curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-release_name="jammy" selected>Ubuntu 22.04 LTS</option>
<option data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-release_name="bookworm">Debian 12 (bookworm)</option>
<option data-release_name="bullseye">Debian 11 (bullseye)</option>
<option data-release_name="buster">Debian 10 (buster)</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] {{http_protocol}}{{mirror}}/ubuntu {{release_name}} main" | {{sudo}}tee /etc/apt/sources.list.d/ros2.list > /dev/null
{{sudo}}apt update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
</code>
</pre>
Reference: https://docs.ros.org/en/iron/Installation/Ubuntu-Install-Debians.html
### rosdep
参考 [ROS Distro 帮助](/help/rosdistro)

View File

@ -1,171 +0,0 @@
---
category: help
layout: help
mirrorid: rpmfusion
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# RPMFusion 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### 安装基础包
首先安装提供基础配置文件和 GPG 密钥的 `rpmfusion-*.rpm`
#### Fedora 用户
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{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
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
或者如下直接用镜像中的 rpm 包:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}yum install --nogpgcheck {{http_protocol}}{{mirror}}/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm {{http_protocol}}{{mirror}}/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
#### CentOS/RHEL 用户
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-2-0" class="form-control content-select" data-target="#content-2">
<option data-version="7" selected>CentOS/RHEL 7</option>
<option data-version="6">CentOS/RHEL 6</option>
<option data-version="8">CentOS/RHEL 8</option>
<option data-version="9">CentOS/RHEL 9</option>
</select>
</div>
</form>
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}yum localinstall --nogpgcheck {{http_protocol}}{{mirror}}/free/el/rpmfusion-free-release-{{version}}.noarch.rpm {{http_protocol}}{{mirror}}/nonfree/el/rpmfusion-nonfree-release-{{version}}.noarch.rpm
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0">
</code>
</pre>
注意:没有将当前用户设为管理员的用户,需要将 `sudo CMD` 替换为 `su -c 'CMD'`,并输入 root 密码。
### 修改链接指向镜像站
安装成功后,修改 `/etc/yum.repos.d/` 目录下以 `rpmfusion` 开头,以 `.repo` 结尾的文件。具体而言,需要将文件中的 `baseurl=` 开头的行等号后面链接中的 `http://download1.rpmfusion.org/` 替换为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-plaintext" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
替换后的文件类似如下:
{% raw %}
<script id="template-4" type="x-tmpl-markup">
[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
baseurl={{http_protocol}}{{mirror}}/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
baseurl={{http_protocol}}{{mirror}}/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-ini" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
### 更多
RHEL/CentOS 用户请参考 [RPMFusion 官方指南](http://rpmfusion.org/Configuration)。

View File

@ -1,116 +0,0 @@
---
category: help
layout: help
mirrorid: rudder
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Rudder 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Debian/Ubuntu 用户
选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/rudder.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="buster" selected>Debian 10</option>
<option data-release_name="stretch">Debian 9</option>
<option data-release_name="jessie">Debian 8</option>
<option data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-release_name="xenial">Ubuntu 16.04 LTS</option>
<option data-release_name="trusty">Ubuntu 14.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>Rudder 版本号:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-version="6.0" selected>6.0</option>
<option data-version="5.0">5.0</option>
<option data-version="4.3">4.3</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/apt/{{version}} {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1">
</code>
</pre>
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/rudder.repo`,内容为:
<form class="form-inline">
<div class="form-group">
<label>Rudder 版本号:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-version="6.0" selected>6.0</option>
<option data-version="5.0">5.0</option>
<option data-version="4.3">4.3</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
[Rudder_{{version}}]
name=Rudder {{version}}
baseurl={{http_protocol}}{{mirror}}/rpm/rudder{{version}}-RHEL_$releasever/
enabled=1
gpgcheck=1
gpgkey=https://repository.rudder.io/rpm/rudder_rpm_key.pub
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-ini" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
</code>
</pre>

View File

@ -1,129 +0,0 @@
---
category: help
layout: help
mirrorid: stackage
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Stackage 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
本镜像推荐与[Hackage 镜像](/help/hackage)配合使用。
### stack >= v2.5.1
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`, 加上:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
setup-info-locations: ["{{http_protocol}}{{mirror}}/stack-setup.yaml"]
urls:
latest-snapshot: {{http_protocol}}{{mirror}}/snapshots.json
snapshot-location-base: {{http_protocol}}{{mirror}}/stackage-snapshots/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-yaml" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
此外,还需要手动下载 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`, 加上:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
setup-info-locations: ["{{http_protocol}}{{mirror}}/stack-setup.yaml"]
urls:
latest-snapshot: {{http_protocol}}{{mirror}}/snapshots.json
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-yaml" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### stack >= v2.1.1
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`, 加上:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
setup-info: "{{http_protocol}}{{mirror}}/stack-setup.yaml"
urls:
latest-snapshot: {{http_protocol}}{{mirror}}/snapshots.json
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-yaml" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### stack 小于 v2.1.1
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`, 加上:
{% raw %}
<script id="template-3" type="x-tmpl-markup">
setup-info: "{{http_protocol}}{{mirror}}/stack-setup.yaml"
urls:
latest-snapshot: {{http_protocol}}{{mirror}}/snapshots.json
lts-build-plans: {{http_protocol}}{{mirror}}/lts-haskell/
nightly-build-plans: {{http_protocol}}{{mirror}}/stackage-nightly/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-yaml" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,114 +0,0 @@
---
category: help
layout: help
mirrorid: ubuntu-ports
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Ubuntu Ports 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用选择的软件源镜像。
<form class="form-inline">
<div class="form-group">
<label>Ubuntu 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="jammy" selected>22.04 LTS</option>
<option data-release_name="lunar">23.04</option>
<option data-release_name="kinetic">22.10</option>
<option data-release_name="focal">20.04 LTS</option>
<option data-release_name="bionic">18.04 LTS</option>
<option data-release_name="xenial">16.04 LTS</option>
<option data-release_name="trusty">14.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>使用官方安全更新软件源:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-security_mirror="# " data-security_official="" selected></option>
<option data-security_mirror="" data-security_official="# "></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用 proposed</label>
<select id="select-0-2" class="form-control content-select" data-target="#content-0">
<option data-enable_proposed="# " selected></option>
<option data-enable_proposed=""></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-0-3" class="form-control content-select" data-target="#content-0">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb {{http_protocol}}{{mirror}}/ {{release_name}} main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}} main restricted universe multiverse
deb {{http_protocol}}{{mirror}}/ {{release_name}}-updates main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-updates main restricted universe multiverse
deb {{http_protocol}}{{mirror}}/ {{release_name}}-backports main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-backports main restricted universe multiverse
{{security_mirror}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-security main restricted universe multiverse
{{security_mirror}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-security main restricted universe multiverse
{{security_official}}deb http://ports.ubuntu.com/ubuntu-ports/ {{release_name}}-security main restricted universe multiverse
{{security_official}}{{enable_source}}deb-src http://ports.ubuntu.com/ubuntu-ports/ {{release_name}}-security main restricted universe multiverse
# 预发布软件源,不建议启用
{{enable_proposed}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-proposed main restricted universe multiverse
{{enable_proposed}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-proposed main restricted universe multiverse
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1,#select-0-2,#select-0-3">
</code>
</pre>
因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。

View File

@ -1,116 +0,0 @@
---
category: help
layout: help
mirrorid: ubuntu
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Ubuntu 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为 ports.ubuntu.com请使用 [ubuntu-ports 镜像](/help/ubuntu-ports)。
Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用选择的软件源镜像。
<form class="form-inline">
<div class="form-group">
<label>Ubuntu 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="jammy" selected>22.04 LTS</option>
<option data-release_name="lunar">23.04</option>
<option data-release_name="kinetic">22.10</option>
<option data-release_name="focal">20.04 LTS</option>
<option data-release_name="bionic">18.04 LTS</option>
<option data-release_name="xenial">16.04 LTS</option>
<option data-release_name="trusty">14.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>使用官方安全更新软件源:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-security_mirror="# " data-security_official="" selected></option>
<option data-security_mirror="" data-security_official="# "></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用 proposed</label>
<select id="select-0-2" class="form-control content-select" data-target="#content-0">
<option data-enable_proposed="# " selected></option>
<option data-enable_proposed=""></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-0-3" class="form-control content-select" data-target="#content-0">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb {{http_protocol}}{{mirror}}/ {{release_name}} main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}} main restricted universe multiverse
deb {{http_protocol}}{{mirror}}/ {{release_name}}-updates main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-updates main restricted universe multiverse
deb {{http_protocol}}{{mirror}}/ {{release_name}}-backports main restricted universe multiverse
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-backports main restricted universe multiverse
{{security_mirror}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-security main restricted universe multiverse
{{security_mirror}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-security main restricted universe multiverse
{{security_official}}deb http://security.ubuntu.com/ubuntu/ {{release_name}}-security main restricted universe multiverse
{{security_official}}{{enable_source}}deb-src http://security.ubuntu.com/ubuntu/ {{release_name}}-security main restricted universe multiverse
# 预发布软件源,不建议启用
{{enable_proposed}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-proposed main restricted universe multiverse
{{enable_proposed}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-proposed main restricted universe multiverse
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1,#select-0-2,#select-0-3">
</code>
</pre>
因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。

View File

@ -1,75 +0,0 @@
---
category: help
layout: help
mirrorid: voidlinux
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Void Linux 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
使用如下命令替换为本镜像:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
mkdir -p /etc/xbps.d
cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
sed -i 's|https://repo-default.voidlinux.org|{{http_protocol}}{{mirror}}|g' /etc/xbps.d/*-repository-*.conf
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若报错可尝试
{% raw %}
<script id="template-1" type="x-tmpl-markup">
sed -i 's|https://alpha.de.repo.voidlinux.org|{{http_protocol}}{{mirror}}|g' /etc/xbps.d/*-repository-*.conf
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
之后可用 `xbps-query -L` 检查是否正确替换。
参考[官方教程](https://docs.voidlinux.org/xbps/repositories/mirrors/changing.html)。

View File

@ -1,250 +0,0 @@
---
category: help
layout: help
mirrorid: virtualbox
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# VirtualBox 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7,#content-8">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7,#content-8">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Oracle Virtualbox](https://www.virtualbox.org/) VirtualBox 是一款开源虚拟机软件。由德国 Innotek 公司开发Sun Microsystems 公司出品。使用 Qt 编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。采用 GPL 协议开源。
## Microsoft Windows
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# Windows 最新版
{{http_protocol}}{{mirror}}/virtualbox-Win-latest.exe
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
## Macintosh OS X
{% raw %}
<script id="template-1" type="x-tmpl-markup">
# OS X 最新版
{{http_protocol}}{{mirror}}/virtualbox-osx-latest.dmg
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
# Linux
## 通过编译好的二进制包安装
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
访问该镜像下最新的目录(例如`5.0.24`),找到名为 发行版名称~发行代号~架构 的文件。
`virtualbox-5.0_5.0.24-108355~Ubuntu~xenial_i386.deb` 下载安装即可。
目前支持的系统有:
* Ubuntu
* Debian
* Fedora
* openSUSE
* SUSE Linux Enterprise Server
* Oracle Linux / Red Hat Enterprise Linux / CentOS
如果您所使用的发行版不在上述列表之内,请下载通用的`run`文件(例如`VirtualBox-5.0.24-108355-Linux_x86.run`),然后使用 `chmod +x` 给予执行权限后,直接安装即可。
### 通过包管理器安装
#### Debian / Ubuntu 用户
首先信任 Virtualbox 的 GPG 公钥:
对于 Debian 8 和 Ubuntu 16.04 及以上:
{% raw %}
<script id="template-3" type="x-tmpl-markup">
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | {{sudo}}apt-key add -
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
其他版本
{% raw %}
<script id="template-4" type="x-tmpl-markup">
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | {{sudo}}apt-key add -
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-shell" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
再选择你的 Debian/Ubuntu 版本,将文本框中内容写进`/etc/apt/sources.list.d/virtualbox.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-5-0" class="form-control content-select" data-target="#content-5">
<option data-release_name="bullseye" selected>Debian 11 (bullseye)</option>
<option data-release_name="buster">Debian 10 (buster)</option>
<option data-release_name="stretch">Debian 9 (stretch)</option>
<option data-release_name="jessie">Debian 8 (jessie)</option>
<option data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-release_name="xenial">Ubuntu 16.04 LTS</option>
<option data-release_name="trusty">Ubuntu 14.04 LTS</option>
</select>
</div>
</form>
{% raw %}
<script id="template-5" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/apt/ {{release_name}} contrib
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-bash" data-template="#template-5" data-select="#http-select,#sudo-select,#select-5-0">
</code>
</pre>
安装 VirtualBox:
{% raw %}
<script id="template-6" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install virtualbox
# 此时会列出具体可用版本,选择所需版本安装
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-6" class="language-bash" data-template="#template-6" data-select="#http-select,#sudo-select">
</code>
</pre>
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/virtualbox.repo`,内容为
{% raw %}
<script id="template-7" type="x-tmpl-markup">
[virtualbox]
name=Virtualbox Repository
baseurl={{http_protocol}}{{mirror}}/rpm/el$releasever/
gpgcheck=0
enabled=1
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-7" class="language-ini" data-template="#template-7" data-select="#http-select,#sudo-select">
</code>
</pre>
刷新缓存并安装 `virtualbox` 即可。
{% raw %}
<script id="template-8" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum search VirtualBox
# 此时会列出具体可用版本,选择所需版本安装即可
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-8" class="language-bash" data-template="#template-8" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,99 +0,0 @@
---
category: help
layout: help
mirrorid: rubygems
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Ruby Gems 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
## gem
使用以下命令替换 gems 默认源
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# 添加镜像源并移除默认源
gem sources --add {{http_protocol}}{{mirror}}/ --remove https://rubygems.org/
# 列出已有源
gem sources -l
# 应该只有镜像源一个
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
或者,编辑 `~/.gemrc`,将
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
加到 `sources` 字段。
## bundler
使用以下命令替换 bundler 默认源
{% raw %}
<script id="template-2" type="x-tmpl-markup">
bundle config mirror.https://rubygems.org {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
官方文档http://bundler.io/v1.16/man/bundle-config.1.html#MIRRORS-OF-GEM-SOURCES

View File

@ -1,88 +0,0 @@
---
category: help
layout: help
mirrorid: bioconductor
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Bioconductor 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Bioconductor 为高通量基因组数据的分析和可视化提供开源工具。Bioconductor 多数软件包采用 R 统计编程语言开发。Bioconductor 每年释出两个版本,并有活跃的用户社区。
使用方法:[Bioconductor](https://www.bioconductor.org) 镜像源配置文件之一是 `.Rprofile`linux 下位于 `~/.Rprofile`, Windows 下位于 `~\library\base\R\Rprofile`)。
在文末添加如下语句或在 R/RStudio 终端下键入:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
options(BioC_mirror="{{http_protocol}}{{mirror}}")
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-r" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
即可使用该 Bioconductor 镜像源安装 Bioconductor 软件包。命令如下:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("$package_name")
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-r" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### 离线使用
如果您只能访问内网镜像站,在完成下列步骤后,依然可以正常使用 Bioconductor 镜像。
1. 确保 BiocManager 的版本不低于 `1.30.12`
2. 使用一台可以访问公网的设备,访问 [https://bioconductor.org/config.yaml](https://bioconductor.org/config.yaml) 下载 `config.yaml`,并将该文件拷贝到 BiocManager 所在的内网设备上。然后,在 `~/.Rprofile` 添加如下配置:
```r
options(
BIOCONDUCTOR_CONFIG_FILE = "file:///path/to/config.yaml" # config.yaml 所在的路径
)
```

View File

@ -1,169 +0,0 @@
---
category: help
layout: help
mirrorid: CRAN
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# CRAN 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### 长期使用
[CRAN](https://cran.r-project.org/) (The Comprehensive R Archive Network) 镜像源配置文件之一是 `.Rprofile` (linux 下位于 `~/.Rprofile` )。
在文末添加如下语句:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
options("repos" = c(CRAN="{{http_protocol}}{{mirror}}/"))
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-r" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
打开 R 即可使用该 CRAN 镜像源安装 R 软件包。
### 临时使用
在安装时指定 repo。
{% raw %}
<script id="template-1" type="x-tmpl-markup">
install.packages("lattice", repos="{{http_protocol}}{{mirror}}/")
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-r" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
## Debian/Ubuntu 下添加 CRAN 镜像安装 R
参考如下链接中 README 里的步骤
{% raw %}
<script id="template-2" type="x-tmpl-markup">
# Debian 帮助
{{http_protocol}}{{mirror}}/bin/linux/debian/
# Ubuntu 帮助
{{http_protocol}}{{mirror}}/bin/linux/ubuntu/fullREADME.html
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
编辑 `/etc/apt/sources.list.d/r-mirror.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-3-0" class="form-control content-select" data-target="#content-3">
<option data-os_name="debian" data-release_name="bullseye" selected>Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>CRAN 版本号:</label>
<select id="select-3-1" class="form-control content-select" data-target="#content-3">
<option data-version="cran40" selected>cran40</option>
<option data-version="cran35">cran35</option>
<option data-version="cran34">cran34</option>
</select>
</div>
</form>
{% raw %}
<script id="template-3" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/bin/linux/{{os_name}} {{release_name}}-{{version}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-properties" data-template="#template-3" data-select="#http-select,#sudo-select,#select-3-0,#select-3-1">
</code>
</pre>
然后运行
{% raw %}
<script id="template-4" type="x-tmpl-markup">
# Debian 用户添加该公钥
{{sudo}}apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
# Ubuntu 用户添加该公钥
{{sudo}}apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
{{sudo}}apt-get update
{{sudo}}apt-get install r-base-dev
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-bash" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,119 +0,0 @@
---
category: help
layout: help
mirrorid: anthon
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Anthon 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
AOSC OS 是一个由[安同开源社区](https://aosc.io) 开发的半滚动 Linux 发行版,支持多种处理器架构。
### 自动替换
AOSC OS 内置 `apt-gen-list` 工具来切换社区提供的可用镜像源。
列出可用镜像源,执行:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}apt-gen-list list-mirrors
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
要启用某一镜像源,执行:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}apt-gen-list add-mirror <mirror>
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
其中 `{mirror}` 替换为所列出的简称。
要仅启用某一源,执行:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-gen-list set-mirror <mirror>
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
其中 `<mirror>` 替换为所列出的简称。
关于 `apt-gen-list` 的语义和详细用法,请执行 `apt-gen-list help` 查看帮助。
### 手动修改
修改 `/etc/apt/sources.list`,内容为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/debs stable main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-properties" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,168 +0,0 @@
---
category: help
layout: help
mirrorid: grafana
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Grafana 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Debian / Ubuntu 用户
首先信任 https://apt.grafana.com/ 的 GPG 公钥:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
确保你的 apt 支持 HTTPS:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}apt-get install -y apt-transport-https
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
选择你希望安装的 Grafana 版本(与你的 Debian/Ubuntu 系统版本无关),文本框中内容写进 `/etc/apt/sources.list.d/grafana.list`
<form class="form-inline">
<div class="form-group">
<label>Grafana 版本:</label>
<select id="select-2-0" class="form-control content-select" data-target="#content-2">
<option data-version="stable" selected>Stable</option>
<option data-version="beta">Beta</option>
</select>
</div>
</form>
{% raw %}
<script id="template-2" type="x-tmpl-markup">
deb [signed-by=/usr/share/keyrings/grafana.key] {{http_protocol}}{{mirror}}/apt/ {{version}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-properties" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0">
</code>
</pre>
安装 Grafana
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install grafana
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
### Centos / Redhat 用户
新建 `/etc/yum.repos.d/grafana.repo`,内容为
{% raw %}
<script id="template-4" type="x-tmpl-markup">
[grafana]
name=grafana
baseurl={{http_protocol}}{{mirror}}/yum/rpm
repo_gpgcheck=0
enabled=1
gpgcheck=0
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-ini" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
如果要避免安装 beta 版本,需要新增一行
```ini
exclude=*beta*
```
再执行
{% raw %}
<script id="template-5" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum install grafana
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-shell" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,91 +0,0 @@
---
category: help
layout: help
mirrorid: rustup
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Rustup 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Rustup](https://rustup.rs/) 是 Rust 官方的跨平台 Rust 安装工具。
镜像站只会保留一段时间的 nightly如果在安装时出现错误请用 `RUSTUP_DIST_SERVER= rustup ...` 来使用官方源。
使用 rustup 安装 rust 时,若要启用镜像源,执行:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# for bash
RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install stable # for stable
# for fish
env RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install stable # for stable
# for bash
RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install nightly # for nightly
# for fish
env RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install nightly # for nightly
# for bash
RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install nightly-YYYY-mm-dd
# for fish
env RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}} rustup install nightly-YYYY-mm-dd
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若要长期启用镜像源,执行:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
# for bash
echo 'export RUSTUP_UPDATE_ROOT={{http_protocol}}{{mirror}}/rustup' >> ~/.bash_profile
echo 'export RUSTUP_DIST_SERVER={{http_protocol}}{{mirror}}' >> ~/.bash_profile
# for fish
echo 'set -x RUSTUP_UPDATE_ROOT {{http_protocol}}{{mirror}}/rustup' >> ~/.config/fish/config.fish
echo 'set -x RUSTUP_DIST_SERVER {{http_protocol}}{{mirror}}' >> ~/.config/fish/config.fish
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
rustup 在判断是否需要更新时依赖于 toml 的 sha256由于 toml 内容中相关链接被替换为镜像源,第一次切换到镜像源时各个 channel 会被认为需要更新。

View File

@ -1,97 +0,0 @@
---
category: help
layout: help
mirrorid: nix
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Nix 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Nix](https://nixos.org/nix) 是一个支持 Linux 和 macOS 的独特的“函数式包管理器”,具有原子更新、依赖隔离、构建尽可能可复现等特点。
[Nixpkgs](https://nixos.org/nixpkgs) 是 Nix 包管理器对应的软件发行版,使用 Nix 函数式语言编写,除软件包外提供用于软件定制、构建、开发环境配置的工具。
[NixOS](https://nixos.org) 是一个基于 Nix 和 Nixpkgs 的 GNU/Linux 发行版。在 Nixpkgs 中的软件之上 NixOS 使用 Nix 语言提供了声明式的系统配置,实现系统完整可复现、版本快速切换等功能。
### Nix
细节内容,请参见 Nix 文档中的 [Installing a Binary Distribution](https://nixos.org/nix/manual/#ch-installing-binary) 一节。
- 单用户安装
{% raw %}
<script id="template-0" type="x-tmpl-markup">
sh <(curl {{http_protocol}}{{mirror}}/latest/install)
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
- 多用户安装:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
sh <(curl {{http_protocol}}{{mirror}}/latest/install) --daemon
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
如果需要,可以在文件列表中手动挑选需要的版本
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,79 +0,0 @@
---
category: help
layout: help
mirrorid: dart-pub
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Dart Pub 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Pub](https://pub.dartlang.org/) 是 Dart 官方的包管理器。跨平台的前端应开发
框架 [Flutter](https://flutter.dev/) 也基于 Dart 并且可以使用大部分 Pub 中的
库。
如果希望通过 pub 镜像安装软件,只需要设置 [PUB_HOSTED_URL](https://www.dartlang.org/tools/pub/environment-variables)
以 bash 为例,临时使用镜像来安装依赖:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
export PUB_HOSTED_URL="{{http_protocol}}{{mirror}}"
# pub: pub get
# flutter: flutter packages get
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
若希望长期使用镜像:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
echo 'export PUB_HOSTED_URL="{{http_protocol}}{{mirror}}"' >> ~/.bashrc
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
Flutter 镜像使用方法参见 [Flutter 镜像安装帮助](/help/flutter)。

View File

@ -1,86 +0,0 @@
---
category: help
layout: help
mirrorid: arch4edu
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Arch4edu 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Arch4edu 是面向高校用户推出的非官方软件仓库,
支持 Arch Linux 和 Arch Linux ARM
主要包含高校用户常用的科研、教学及开发软件。
### 使用方法
* 导入 GPG key
```
pacman-key --recv-keys 7931B6D628C8D3BA
pacman-key --finger 7931B6D628C8D3BA
pacman-key --lsign-key 7931B6D628C8D3BA
```
* 在 `/etc/pacman.conf` 文件末尾添加以下内容:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[arch4edu]
Server = {{http_protocol}}{{mirror}}/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
* [**不推荐**] 不导入 GPG key并直接在 `/etc/pacman.conf` 文件末尾添加以下内容:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
[arch4edu]
SigLevel = Never
Server = {{http_protocol}}{{mirror}}/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-ini" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,69 +0,0 @@
---
category: help
layout: help
mirrorid: qubesos
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Qubes OS 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Qubes OS](https://www.qubes-os.org/) 是一个面向安全的操作系统。
它使用一种叫做*隔离保证安全* (security by compartmentalization) 的理念,采用虚拟化技术隔离各个应用来保证安全。
### 使用方法
#### R4.1 及以上
`/etc/dnf/dnf.conf` 中添加 `fastestmirror=True`
#### R4.0 及以下
每次使用 `qubes-dom0-update --setopt=fastestmirror=True` 更新
或者不想使用上述命令,您可以使用如下方法
对于 `/etc/yum.repos.d` 下的 `qubes-*.repo`:
1. 用`#`注释掉所有的 `metalink`
2. 将 `baseurl` 中的 `https://yum.qubes-os.org/` 替换为
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/repo/yum/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
并取消这些 `baseurl` 的注释

View File

@ -1,96 +0,0 @@
---
category: help
layout: help
mirrorid: solus
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Solus 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Solus 是一个界面美观,对新手友好的 Linux 发行版,使用 `eopkg` 作为包管理器。
* 项目地址https://getsol.us
### 使用方法
执行以下命令
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}eopkg add-repo Mirror {{http_protocol}}{{mirror}}/packages/shannon/eopkg-index.xml.xz
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
此后,之行以下命令以启用 Mirror 源,禁用官方源
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}eopkg enable-repo Mirror
{{sudo}}eopkg disable-repo Solus
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或者用 Mirror 源直接覆盖官方源
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}eopkg add-repo Solus {{http_protocol}}{{mirror}}/packages/shannon/eopkg-index.xml.xz
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
关于 `eopkg` 命令的详细用法,请执行 `eopkg help` 查看帮助。

View File

@ -1,121 +0,0 @@
---
category: help
layout: help
mirrorid: kicad
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# KiCad 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[KiCad](http://kicad.org/) 一个跨平台的开源电子设计自动化套件。
### KiCad 镜像目录使用说明
#### KiCad 镜像目录说明
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
目录 | 说明 | 备注
-----------|----------|---------
appimage/ |appimage 安装包|chmod +x \*.AppImage && ./*.AppImage
archive/ |压缩文件 | 旧文件
docs/ |发行版的文档手册 | 包含 HTML、PDF、EPUB
doxygen/ |KiCad 开发配置 | 详细开发手册
doxygen-python/ |KiCad Python 开发配置 | 详细开发手册
libraries/ |封装库和集成库 | 发行版本的封装库和集成库
osx/ | KiCad OSX 版本目录 | 包含稳定版、夜间版和测试版
windows/ | KiCad Windows 版本目录 | 包含稳定版、夜间版和测试版
cleanup.sh | 清理脚本 |无
favicon.ico |图标 |无
list.js |JS 脚本 |无
#### Windows 下载安装
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/windows/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
目录 | 说明 | 备注
-----------|----------|---------
nightly/ | 夜间构建版本 | 无
stable/ | 发行版本 | 看版本号选择合适的下载
testing/ | 测试版本 | 选择对应分支下载测试
#### OS X 下载安装
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/osx/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
目录 | 说明 | 备注
-----------|----------|---------
nightly/ | 夜间构建版本 | 无
stable/ | 发行版本 | 看版本号选择合适的下载
testing/ | 测试版本 | 选择对应分支下载测试

View File

@ -1,77 +0,0 @@
---
category: help
layout: help
mirrorid: tlpretest
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# TeXLive Pretest 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
tlpretest 是 TeX Live 在官方镜像之外发布的测试版本,详情可见 [官方介绍](https://www.tug.org/texlive/pretest.html)。
在 TeX Live 官方版更新冻结期间(通常为每年 2 到 4 月),用户可以通过 tlpretest 提前获得新版本的 TeX Live 及其包含的宏包更新。
在命令行中执行:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
tlmgr option repository {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
即可永久更改镜像源。
如果只需要临时切换,可以用如下命令:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
tlmgr update --all --repository {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
其中的 `update --all` 指令可根据需要修改。

View File

@ -1,99 +0,0 @@
---
category: help
layout: help
mirrorid: llvm-project.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# LLVM Project Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
本镜像镜像了如下仓库:
```
https://github.com/llvm/llvm-project.git
```
如需克隆代码,使用
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
由于仓库体积均较大,执行`git clone`可能需要较长时间,并且没有进度提示,请耐心等候。
若要将 mirror 加入已有代码库,可在已有仓库中运行
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git remote add mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
或运行
{% raw %}
<script id="template-2" type="x-tmpl-markup">
git remote set-url origin {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
将默认上游设置为镜像站
注:如需要各个子项目的发布版本代码,请至 [GitHub Release 镜像](/help/github-release) 中 llvm-project 一节。

View File

@ -1,75 +0,0 @@
---
category: help
layout: help
mirrorid: ceph
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Ceph 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Ceph](https://ceph.io/) 是一个开源软件存储平台,在单个分布式计算机集群上实现对象存储。
请参考[Ceph 官方安装教程](https://docs.ceph.com/en/latest/install/get-packages/),只需要把文档中出现的 `download.ceph.com` 替换为以下链接即可。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
以 Debian Buster 为例,举例如下:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
wget -q -O- 'https://download.ceph.com/keys/release.asc' | {{sudo}}apt-key add -
{{sudo}}apt-add-repository 'deb {{http_protocol}}{{mirror}}/debian-octopus/ buster main'
{{sudo}}apt update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,193 +0,0 @@
---
category: help
layout: help
mirrorid: opensuse
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# openSUSE 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
openSUSE 项目是一个由 Novell 赞助的社区项目。该项目旨在推进 Linux 的广泛应用,提供自由、易于入手和美观实用的 openSUSE Linux 发行版。openSUSE 使用 `zypper` 作为包管理器。
openSUSE 默认使用 [MirrorBrain](https://zh.opensuse.org/MirrorBrain) 技术统一镜像入口,通过在下载时自动分配镜像站点,从而给用户提供更好的安全性,通常情况下使用默认配置即可。
由于使用 MirrorBrain 需要从位于德国的 openSUSE 主服务器上获取元信息,所以若在使用默认软件源时获取元信息较慢,可以使用镜像软件源替换默认软件源。
### openSUSE Leap 15.2 或更新版本使用方法
禁用官方软件源
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}zypper mr -da
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
添加镜像源
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/distribution/leap/$releasever/repo/oss/' mirror-oss
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/distribution/leap/$releasever/repo/non-oss/' mirror-non-oss
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/update/leap/$releasever/oss/' mirror-update
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/update/leap/$releasever/non-oss/' mirror-update-non-oss
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
Leap 15.3 用户还需添加 sle 和 backports 源
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/update/leap/$releasever/sle/' mirror-sle-update
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/update/leap/$releasever/backports/' mirror-backports-update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
Leap 15.3 注:若在安装时**没有**启用在线软件源sle 源和 backports 源将在系统首次更新后引入,请确保系统在更新后仅启用了**六个**所需软件源。可使用 `zypper lr` 检查软件源状态,并使用 `zypper mr -d` 禁用多余的软件源。
### openSUSE Tumbleweed 使用方法
禁用官方软件源
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{sudo}}zypper mr -da
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
添加镜像源
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/tumbleweed/repo/oss/' mirror-oss
{{sudo}}zypper ar -cfg '{{http_protocol}}{{mirror}}/tumbleweed/repo/non-oss/' mirror-non-oss
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-shell" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
刷新软件源
{% raw %}
<script id="template-5" type="x-tmpl-markup">
{{sudo}}zypper ref
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-shell" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>
Tumbleweed 注Tumbleweed 安装后默认会启用 oss, non-oss, update, 3 个官方软件源,
其中 oss 及 non-oss 源用于发布 Tumbleweed 的每日构建快照,快照中已包含系统所需的全部软件包及更新。
update 源仅用于推送临时安全补丁,如当日快照已发布但仍有临时安全补丁时,会首先推送至 update 源,并在次日合入下一版快照。
由于 update 源存在较强的时效性,上游镜像并未同步 update 源,镜像源亦无法提供该源的镜像。
禁用 update 源并不会使系统缺失任何功能或安全更新,仅会导致极少数更新晚些推送,如有需求可以重新启用官方 update 源。
## 图形界面下配置方法
以 openSUSE Leap 15.3 为例:
1. 打开 YaST
2. 点击 Software 分组中的 Software Repositories
3. 在打开的窗口上方的列表中点击 Main Repository点击 Edit
4. 将 download.opensuse.org 替换为
{% raw %}
<script id="template-6" type="x-tmpl-markup">
{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-6" class="language-plaintext" data-template="#template-6" data-select="#http-select,#sudo-select">
</code>
</pre>
点 OK
5. 再用同样的方法编辑 Non-OSS Repository, Main Update Repository, Update Repository (Non-Oss) 和 Update repository with updates from SUSE Linux Enterprise 15。

View File

@ -1,129 +0,0 @@
---
category: help
layout: help
mirrorid: influxdata
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Influxdata 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
本目录是 `influxdb` `telegraf` 等时序型数据库的相关组件的镜像软件源。
### Debian / Ubuntu 用户
首先信任来自 [influxdata](https://docs.influxdata.com/telegraf/v1.18/introduction/installation/) 的 PGP 公钥:
_注Influxdata 在 2023-01-26 使用了新的 GPG 密钥,详情可参考[此处](https://www.influxdata.com/blog/linux-package-signing-key-rotation/)_
{% raw %}
<script id="template-0" type="x-tmpl-markup">
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
cat influxdata-archive_compat.key | gpg --dearmor | {{sudo}}tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
将下方文本框中的内容写入 `/etc/apt/sources.list.d/influxdata.list`
{% raw %}
<script id="template-1" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/debian/ stable main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
即可安装相关软件,如:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt install influxdb
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### CentOS / RedHat 用户
新建 `/etc/yum.repos.d/influxdata.repo`,内容为
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-3-0" class="form-control content-select" data-target="#content-3">
<option data-release_name="el7-x86_64" selected>CentOS/RHEL 7 (x86_64)</option>
</select>
</div>
</form>
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[influxdata]
name = InfluxData Repository - RHEL $releasever
baseurl={{http_protocol}}{{mirror}}/yum/{{release_name}}
enabled=1
gpgcheck=1
gpgkey=https://repos.influxdata.com/influxdata-archive_compat.key
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select,#select-3-0">
</code>
</pre>

View File

@ -1,56 +0,0 @@
---
category: help
layout: help
mirrorid: ubuntu-cloud-images
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Ubuntu Cloud Images 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
收录官方的云 Ubuntu 镜像,由 Canonical 定制,提供 Ubuntu 认证镜像,可 Openstack、LXD 等的公共云上运行。
收录官方对 KVMHyper-vXEN 等虚拟结构的官方定制镜像
使用以下链接进行查找所需要的镜像
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/locator/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,74 +0,0 @@
---
category: help
layout: help
mirrorid: qt
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Qt 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
通过以下链接下载在线安装器
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/official_releases/online_installers/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
通过
{% raw %}
<script id="template-1" type="x-tmpl-markup">
# linux
installer --mirror {{http_protocol}}{{mirror}}
# windows
installer.exe --mirror {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
使用该镜像。

View File

@ -1,166 +0,0 @@
---
category: help
layout: help
mirrorid: erlang-solutions
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Erlang Solutions 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Debian/Ubuntu 用户
首先信任 erlang-solutions 的 GPG 公钥:
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-os_name="debian" selected>Debian</option>
<option data-os_name="ubuntu">Ubuntu</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
curl -s https://packages.erlang-solutions.com/{{os_name}}/erlang_solutions.asc | {{sudo}}apt-key add -
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/erlang-solutions.list`
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-1-0" class="form-control content-select" data-target="#content-1">
<option data-os_name="debian" data-release_name="bullseye" selected>Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="debian" data-release_name="stretch">Debian 9</option>
<option data-os_name="debian" data-release_name="jessie">Debian 8</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="xenial">Ubuntu 16.04 LTS</option>
</select>
</div>
</form>
{% raw %}
<script id="template-1" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} contrib
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-properties" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
</code>
</pre>
安装 `erlang` 即可
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}apt-get update
{{sudo}}apt-get install -y erlang
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### CentOS 用户
首先信任 erlang-solutions 的 GPG 公钥:
```bash
{{sudo}}rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
```
新建 `/etc/yum.repos.d/erlang-solutions.repo`,内容为
{% raw %}
<script id="template-3" type="x-tmpl-markup">
[erlang-solutions]
name=CentOS $releasever - Erlang Solutions
baseurl={{http_protocol}}{{mirror}}/centos/$releasever/
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-ini" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
刷新缓存并安装 `erlang` 即可。
{% raw %}
<script id="template-4" type="x-tmpl-markup">
{{sudo}}yum makecache
{{sudo}}yum install erlang
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-bash" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,74 +0,0 @@
---
category: help
layout: help
mirrorid: ohmyzsh.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# ohmyzsh Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### 安装
在本地克隆后获取安装脚本。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
cd ohmyzsh/tools
REMOTE={{http_protocol}}{{mirror}} sh install.sh
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### 切换已有 ohmyzsh 至镜像源
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git -C $ZSH remote set-url origin {{http_protocol}}{{mirror}}
git -C $ZSH pull
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,147 +0,0 @@
---
category: help
layout: help
mirrorid: llvm-apt
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# LLVM APT 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### 安装脚本
<form class="form-inline">
<div class="form-group">
<label>LLVM 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-version="" selected>默认</option>
<option data-version="15">15</option>
<option data-version="14">14</option>
<option data-version="13">13</option>
<option data-version="12">12</option>
<option data-version="11">11</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
# 下载脚本
wget {{http_protocol}}{{mirror}}/llvm.sh
chmod +x llvm.sh
{{sudo}}./llvm.sh {{version}} all -m {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
### 手动启用
首先信任来自 https://apt.llvm.org/ 的 PGP 公钥:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | {{sudo}}apt-key add -
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
新增 `/etc/apt/sources.list.d/llvm-apt.list`,内容为
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-2-0" class="form-control content-select" data-target="#content-2">
<option data-release_name="bullseye" selected>Debian 11</option>
<option data-release_name="buster">Debian 10</option>
<option data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-release_name="bionic">Ubuntu 18.04 LTS</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>LLVM 版本:</label>
<select id="select-2-1" class="form-control content-select" data-target="#content-2">
<option data-version="" selected>默认</option>
<option data-version="-16">16</option>
<option data-version="-15">15</option>
<option data-version="-14">14</option>
<option data-version="-13">13</option>
<option data-version="-12">12</option>
<option data-version="-11">11</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-2-2" class="form-control content-select" data-target="#content-2">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-2" type="x-tmpl-markup">
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb {{http_protocol}}{{mirror}}/{{release_name}}/ llvm-toolchain-{{release_name}}{{version}} main
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/{{release_name}}/ llvm-toolchain-{{release_name}}{{version}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-properties" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0,#select-2-1,#select-2-2">
</code>
</pre>

View File

@ -1,72 +0,0 @@
---
category: help
layout: help
mirrorid: bazel-apt
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Bazel APT 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
使用以下命令启用 bazel-apt 仓库
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}apt install apt-transport-https curl gnupg
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
{{sudo}}mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] {{http_protocol}}{{mirror}} stable jdk1.8" | {{sudo}}tee /etc/apt/sources.list.d/bazel.list
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
使用以下命令安装 bazel
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}apt update && {{sudo}}apt install bazel
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,122 +0,0 @@
---
category: help
layout: help
mirrorid: wine-builds
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Wine builds 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
由于上游并未提供 rsync镜像站只同步了 ubuntu/debian 部分。
首先启用 32 位架构
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}dpkg --add-architecture i386
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
之后信任来自 https://dl.winehq.org/ 的公钥
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
新增 `/etc/apt/sources.list.d/winehq.list`,内容为
<form class="form-inline">
<div class="form-group">
<label>发行版:</label>
<select id="select-2-0" class="form-control content-select" data-target="#content-2">
<option data-os_name="debian" data-release_name="bookworm" selected>Debian 12</option>
<option data-os_name="debian" data-release_name="bullseye">Debian 11</option>
<option data-os_name="debian" data-release_name="buster">Debian 10</option>
<option data-os_name="ubuntu" data-release_name="jammy">Ubuntu 22.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="focal">Ubuntu 20.04 LTS</option>
<option data-os_name="ubuntu" data-release_name="bionic">Ubuntu 18.04 LTS</option>
</select>
</div>
</form>
{% raw %}
<script id="template-2" type="x-tmpl-markup">
deb [arch=amd64,i386 signed-by=/usr/share/keyrings/winehq-archive.key] {{http_protocol}}{{mirror}}/{{os_name}}/ {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-properties" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0">
</code>
</pre>
通过以下命令安装 winehq
{% raw %}
<script id="template-3" type="x-tmpl-markup">
{{sudo}}apt update
{{sudo}}apt install --install-recommends winehq-stable
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-bash" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,68 +0,0 @@
---
category: help
layout: help
mirrorid: elasticstack
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Elastic Stack 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
[Elasticsearch](https://www.elastic.co/cn/what-is/elasticsearch) 是位于 Elastic Stack 核心的分布式搜索和分析引擎。
请参考[elasticsearch 官方安装教程](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html)。
以 Debian/Ubuntu 安装为例,举例如下:
<form class="form-inline">
<div class="form-group">
<label>版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-version="8.x" selected>8.x</option>
<option data-version="7.x">7.x</option>
<option data-version="6.x">6.x</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | {{sudo}}gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] {{http_protocol}}{{mirror}}/{{version}}/apt/ stable main" | {{sudo}}tee /etc/apt/sources.list.d/elastic-{{version}}.list
{{sudo}}apt-get update && {{sudo}}apt-get install elasticsearch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>

View File

@ -1,75 +0,0 @@
---
category: help
layout: help
mirrorid: entware
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Entware 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Entware 使用 opkg 来管理其软件包,只需修改 opkg 配置文件中的软件源地址,就可以使用镜像来下载软件包。
按照官方 Wiki 中的教程安装好 entware 后,使用 `sed` 命令即可将软件源地址替换为本镜像站。
替换后,请运行 `opkg update` 命令,更新软件包 feed。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
sed -i 's|https\?://bin.entware.net|{{http_protocol}}{{mirror}}|g' /opt/etc/opkg.conf
opkg update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
如果系统没有 sed 命令,可以手动编辑 `/opt/etc/opkg.conf` 文件,编辑时请注意自己设备的处理器架构。
例如:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
src/gz entware {{http_protocol}}{{mirror}}/aarch64-k3.10
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,95 +0,0 @@
---
category: help
layout: help
mirrorid: pkgsrc.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# pkgsrc Git 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
**注:该镜像是 pkgsrc 源码安装的镜像。本镜像站同时提供 pkgsrc 其他功能的镜像如二进制包distfile 等,不包含 joyent 内容),请参考 [pkgsrc 镜像使用帮助](/help/pkgsrc)。**
### 源码安装
对应[官方文档 getting-via-cvs](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#getting-via-cvs),本镜像站中 pkgsrc.git 镜像与官方文档中源的 CVS 架构不同,与[官方 git 镜像](https://github.com/NetBSD/pkgsrc)架构类似,故使用命令有所调整。
拉取特定稳定版镜像分支
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone -b pkgsrc-2021Q4 {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
拉取当前镜像分支
{% raw %}
<script id="template-1" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
### 源码更新
对应[官方文档 uptodate-cvs](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#uptodate-cvs),切换到 pkgsrc 目录,执行
```bash
git pull
```
#### 源码切换分支
对应[官方文档 uptodate-cvs-switch](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#uptodate-cvs-switch),切换到 pkgsrc 目录
切换特定稳定版镜像分支
```bash
git checkout pkgsrc-2021Q4
```
切换当前镜像分支
```bash
git checkout trunk
```

View File

@ -1,85 +0,0 @@
---
category: help
layout: help
mirrorid: kali
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Kali 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
本镜像包含 amd64, arm64, armel, armhf, i386 架构处理器的软件包。
### 手动替换
编辑 `/etc/apt/sources.list` 文件,在文件最前面添加以下条目:
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}} kali-rolling main non-free contrib
{{enable_source}}deb-src {{http_protocol}}{{mirror}} kali-rolling main non-free contrib
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>
### sed 替换
执行如下命令 sed 替换
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}sed -i "s@http://http.kali.org/kali@{{http_protocol}}{{mirror}}@g" /etc/apt/sources.list
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,51 +0,0 @@
---
category: help
layout: help
mirrorid: OpenBSD
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# OpenBSD 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
编辑 `/etc/installurl` 文件为以下内容:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,57 +0,0 @@
---
category: help
layout: help
mirrorid: NetBSD
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# NetBSD 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
## pkgsrc
参考 [pkgsrc 帮助](/help/pkgsrc)。
## sysupgrade
升级 NetBSD 时,指定 sysupgrade 的下载地址为镜像源,以 NetBSD 9.3 amd64 为例:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
sysupgrade auto {{http_protocol}}{{mirror}}/NetBSD-9.3/amd64
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-shell" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,89 +0,0 @@
---
category: help
layout: help
mirrorid: crates.io-index
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Rust crates.io 稀疏索引镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
编辑 `$CARGO_HOME/config` 文件,添加以下内容:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "sparse+{{http_protocol}}{{mirror}}/"
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-toml" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
注:`sparse+` 表示在使用稀疏索引,链接末尾的 `/` 不能缺少。
注:`$CARGO_HOME`:在 Windows 系统默认为:`%USERPROFILE%\.cargo`,在类 Unix 系统默认为:`$HOME/.cargo`
在 Linux 环境可以使用下面的命令完成:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
mkdir -vp ${CARGO_HOME:-$HOME/.cargo}
cat << EOF | tee -a ${CARGO_HOME:-$HOME/.cargo}/config
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "sparse+{{http_protocol}}{{mirror}}/"
EOF
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
截至目前,可以通过 `cargo +nightly -Z sparse-registry update` 使用稀疏索引。
cargo 1.68 版本开始支持稀疏索引:不再需要完整克隆 crates.io-index 仓库,可以加快获取包的速度。如果您的 cargo 版本大于等于 1.68,可以直接使用而不需要开启 nightly。

View File

@ -1,77 +0,0 @@
---
category: help
layout: help
mirrorid: armbian
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Armbian 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Armbian 是为 ARM 单板机提供的基于 Debian 和 Ubuntu 的操作系统。Armbian 仓库包括专用的 u-boot、内核及各种支持文件。
可以使用以下方法更换软件源:
* 运行 `armbian-config` -> Personal -> Mirrors -> 选择镜像站。
* 编辑 `/etc/apt/sources.list.d/armbian.list`,将 `http://apt.armbian.com` 替换为以下链接
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
然后执行 `apt update`
这可以被以下命令完成
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}sed -i.bak 's#http://apt.armbian.com#{{http_protocol}}{{mirror}}#g' /etc/apt/sources.list.d/armbian.list
{{sudo}}apt update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,80 +0,0 @@
---
category: help
layout: help
mirrorid: blackarch
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Black Arch 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
BlackArch 是一款基于 ArchLinux 的为渗透测试及安全研究人员开发的发行版,相当于 Arch 版的 BackTrack/Kali。
仓库地址https://blackarch.org/blackarch/
## 使用说明
`/etc/pacman.conf` 文件末尾添加两行:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
[blackarch]
Server = {{http_protocol}}{{mirror}}/$repo/os/$arch
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-ini" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
由于一些软件依赖 32 位的库,需要取消掉 `/etc/pacman.conf``multilib` 的注释,详见 https://wiki.archlinux.org/index.php/Official_repositories#Enabling_multilib
然后请安装 ``blackarch-keyring`` 包以导入 GPG key。
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}pacman -Sy blackarch-keyring
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
Black Arch 软件源仅包含其打包的工具等软件。如果需要更换 Arch Linux 基础系统的软件源,请查看 [Arch Linux 帮助](/help/archlinux)。

View File

@ -1,110 +0,0 @@
---
category: help
layout: help
mirrorid: clojars
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Clojars 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
以 leiningen 为例,在项目根目录的 `project.clj` 中自己添加关键字 `:mirrors`
然后以如下 map 格式添加源:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
:mirrors {"clojars" {:name "mirror"
:url "{{http_protocol}}{{mirror}}/"}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-clojure" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### 极简示例
{% raw %}
<script id="template-1" type="x-tmpl-markup">
(defproject myapp "1.0.0"
:description "My Application"
:dependencies [[enlive "1.0.1"]
[cheshire "4.0.0"]
[org.markdownj/markdownj "0.3.0-1.0.2b4"]]
:mirrors {"clojars" {:name "mirror"
:url "{{http_protocol}}{{mirror}}/"}}
:main leiningen.web)
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-clojure" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
配置好后,在项目的根目录下运行 `lein run`,从输出中可以看到一些包是从镜像站下载的。
### 注意事项
此镜像源替换的只是 clojars 这个仓库,一些 maven 的包依然会从 central maven 仓库下载。
上述方法只针对单个项目生效。如果要针对所有项目进行全局配置,需修改 leiningen 的 `profiles`
`~/.lein/projfiles.clj` 中添加:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
:user {:repositories [["clojars" {:url "{{http_protocol}}{{mirror}}/"}]]
;; other :user profile settings...
}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-clojure" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
leiningen 会提示说 `:repositories` 写在了 `:user` 中,不过不影响使用。

View File

@ -1,108 +0,0 @@
---
category: help
layout: help
mirrorid: debian-multimedia
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Deb Multimedia 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
Debian 第三方多媒体软件源
该项目以前的名字为 Debian Multimedia现改名为 Deb Multimedia。注意这不是 Debian 官方项目,
是为 deb-multimedia.org 的镜像,与 Debian 官方的 Multimedia 小组的区别见
https://wiki.debian.org/DebianMultimedia/FAQ
`/etc/apt/sources.list` 中加入
<form class="form-inline">
<div class="form-group">
<label>Debian 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="bullseye" data-has_backports="" selected>Debian 11 (bullseye)</option>
<option data-release_name="bookworm" data-has_backports="# ">Debian 12 (bookworm)</option>
<option data-release_name="sid" data-has_backports="# ">sid</option>
<option data-release_name="testing" data-has_backports="# ">testing</option>
<option data-release_name="buster" data-has_backports="">Debian 10 (buster)</option>
<option data-release_name="stretch" data-has_backports="">Debian 9 (stretch)</option>
<option data-release_name="jessie" data-has_backports="">Debian 8 (jessie)</option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>启用源码镜像:</label>
<select id="select-0-1" class="form-control content-select" data-target="#content-0">
<option data-enable_source="# " selected></option>
<option data-enable_source=""></option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/ {{release_name}} main non-free
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}} main non-free
{{has_backports}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-backports main
{{has_backports}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-backports main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1">
</code>
</pre>
更改完 `sources.list` 文件后请导入 deb-multimedia-keyring
{% raw %}
<script id="template-1" type="x-tmpl-markup">
wget {{http_protocol}}{{mirror}}/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb
{{sudo}}dpkg -i deb-multimedia-keyring_2016.8.1_all.deb
{{sudo}}apt-get update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-bash" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
然后更新索引以生效。

View File

@ -1,65 +0,0 @@
---
category: help
layout: help
mirrorid: eclipse
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Eclipse 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
以 Luna 为例,点击 `Help``Install New Software...`
`Available Software Sites` 可以看到所有的更新源,将其中的
`https://download.eclipse.org` 全部替换成以下链接即可。
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
### 基本配置
#### Vim-like 快捷键绑定
详见 http://vrapper.sourceforge.net/home/
#### 离线 Java API
详见
http://stackoverflow.com/questions/4664007/off-line-java-api-documentation-in-eclipse

View File

@ -1,166 +0,0 @@
---
category: help
layout: help
mirrorid: kodi
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Kodi 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
## 镜像目录结构
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
* `addons` 官方插件库
* `apt` iOS 版 Kodi 安装源
* `build-deps` 编译 Kodi 依赖的其他开源项目代码
* `nightlies` 与 Kodi 开发主分支同步编译的每日开发版安装包下载目录
* `releases` Kodi 稳定版安装包下载目录(含 Beta 版和 RC 版)
* `snapshots` Kodi 每月发布的 Alpha 版安装包下载目录
* `tools` Kodi 相关的工具软件Kora 遥控软件)
## Kodi 简介
Kodi前身是
XBMC媒体中心是一个屡获殊荣的自由和开源的跨平台媒体播放器和用于
HTPCHome theater PC家庭影院
PC的数字媒体娱乐中心软件。它使用遥控器作为主输入设备针对 3
米左右观看距离而设计的用户界面成为适应客厅使用的媒体播放器。它的图形用户界面让用户轻按遥控就能方便地从硬盘、光盘、局域网和互联网浏览和观看视频、图片收听广播和音乐。Kodi
项目由非营利的 XBMC
基金会管理,并由分布在世界各地的志愿者参与开发。自从它于 2003
年诞生以来,超过 500 名软件开发人员对 Kodi 作出贡献,并有 60
名核心开发人员。另外,还有 200
多名翻译人员在帮助它扩大影响范围,使它支持多达 72 种语言。
Kodi当时叫“Xbox Media Center”最初是作为第一代 Xbox
游戏机(现在已不支持)的一个媒体中心应用而开发的,而现在已经正式以原生应用运行于
Android、Linux、Mac OS X、iOS 和 Windows
操作系统,并支持主流的处理器架构。
## 使用说明
### Kodi 安装
#### Windows、Android 平台
从镜像站相应目录下载你所需要版本的安装包安装即可。
#### Mac OSX 平台
从镜像站相应目录下载 `.dmg` 磁盘镜像文件,在 OSX
系统下装载此镜像文件后,可用鼠标将 Kodi 应用拖到“应用”文件夹即完成安装。
#### iOS 平台
需要先越狱,然后通过 Cydia 安装。
- 第一步:在已越狱的 iPhone 手机或 iPad 主屏幕上点击 Cydia 图标
- 第二步:选择“软件源 → 编辑 → 添加”
- 第三步:在弹出的录入框输入
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/apt/ios/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
- 第四步:点击刚增加的 teamKodi 源
- 第五步:选择安装 Kodi-iOS
### 插件库使用
可以使用此镜像服务器来访问 Kodi
官方插件库,避免因网络访问的问题而无法正常安装使用插件。需要编辑 Kodi
安装目录中的 addons/repository.xbmc.org/addon.xml 文件。将其中所有
`http://mirrors.kodi.tv/` 替换为
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-plaintext" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
### 编译依赖项目下载
开发人员或者想自行从源代码编译 Kodi
的,可以使用此镜像服务器下载依赖项目。方法是在运行 DownloadBuildDeps.bat
批处理文件前先在命令行执行
{% raw %}
<script id="template-3" type="x-tmpl-markup">
SET KODI_MIRROR={{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-dos" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,96 +0,0 @@
---
category: help
layout: help
mirrorid: manjaro
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Manjaro 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
包含架构:`i686`, `x86_64`, `aarch64`
目前 AArch64 (ARM) 架构的 manjaro 源位于主源manjaro-arm 镜像上游已不再更新。
使用说明
========
生成可用中国镜像站列表:
{% raw %}
<script id="template-0" type="x-tmpl-markup">
{{sudo}}pacman-mirrors -i -c China -m rank
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
勾选
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-plaintext" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
然后按 ``OK`` 键两次。
最后刷新缓存:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
{{sudo}}pacman -Syy
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-bash" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,210 +0,0 @@
---
category: help
layout: help
mirrorid: nix-channels
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Nix Channels 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5,#content-6,#content-7">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
### Nixpkgs binary cache
目前并未提供 nix-darwin 的 binary cache请使用官方源或 SJTUG。
#### 持久配置
以优先选择镜像,备选源站为例,选择以下配置之一:
- 单独安装的 Nix编辑配置文件添加或修改如下项多用户安装修改 `/etc/nix/nix.conf`,单用户安装修改 `~/.config/nix/nix.conf`
{% raw %}
<script id="template-0" type="x-tmpl-markup">
substituters = {{http_protocol}}{{mirror}}/store https://cache.nixos.org/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-plaintext" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
- NixOS 21.11 及之前的版本在 `configuration.nix` 中使用如下配置https://cache.nixos.org 会被自动添加)
{% raw %}
<script id="template-1" type="x-tmpl-markup">
nix.binaryCaches = [ "{{http_protocol}}{{mirror}}/store" ];
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-nix" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
- NixOS 22.05 及之后的版本在 `configuration.nix` 中使用如下配置https://cache.nixos.org 会被自动添加):
{% raw %}
<script id="template-2" type="x-tmpl-markup">
nix.settings.substituters = [ "{{http_protocol}}{{mirror}}/store" ];
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-nix" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
如果因为无法访问 https://cache.nixos.org 等原因,希望避免自动添加该默认地址,请在配置中使用`lib.mkForce`。
{% raw %}
<script id="template-3" type="x-tmpl-markup">
# load `lib` into namespace at the file head with `{ config, pkgs, lib, ... }:`
nix.settings.substituters = lib.mkForce [ "{{http_protocol}}{{mirror}}/store" ];
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-nix" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
#### 临时使用
在安装 NixOS 时临时使用:
{% raw %}
<script id="template-4" type="x-tmpl-markup">
nixos-install --option substituters "{{http_protocol}}{{mirror}}/store"
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-shell" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
在 NixOS 切换配置时临时使用:
{% raw %}
<script id="template-5" type="x-tmpl-markup">
nixos-rebuild --option substituters "{{http_protocol}}{{mirror}}/store"
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-shell" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>
临时关闭可以通过清空 substituters 实现:
```shell
nixos-rebuild --options substituters ""
```
### Nixpkgs channel
单独安装的 Nix 替换 `nixpkgs-unstable` 命令如下:
{% raw %}
<script id="template-6" type="x-tmpl-markup">
nix-channel --add {{http_protocol}}{{mirror}}/nixpkgs-unstable nixpkgs
nix-channel --update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-6" class="language-bash" data-template="#template-6" data-select="#http-select,#sudo-select">
</code>
</pre>
替换 NixOS channel 命令如下(以 root 执行):
<form class="form-inline">
<div class="form-group">
<label>系统版本:</label>
<select id="select-7-0" class="form-control content-select" data-target="#content-7">
<option data-version="22.11" selected>22.11</option>
<option data-version="unstable">unstable</option>
<option data-version="22.05">22.05</option>
<option data-version="21.11">21.11</option>
</select>
</div>
</form>
{% raw %}
<script id="template-7" type="x-tmpl-markup">
nix-channel --add {{http_protocol}}{{mirror}}/nixos-{{version}} nixos
nix-channel --update
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-7" class="language-bash" data-template="#template-7" data-select="#http-select,#sudo-select,#select-7-0">
</code>
</pre>

View File

@ -1,54 +0,0 @@
---
category: help
layout: help
mirrorid: nixpkgs.git
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Nixpkgs 镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
nixpkgs 镜像,同步源为 [https://github.com/NixOS/nixpkgs](https://github.com/NixOS/nixpkgs).
### 克隆仓库
{% raw %}
<script id="template-0" type="x-tmpl-markup">
git clone {{http_protocol}}{{mirror}}/
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-bash" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>

View File

@ -1,65 +0,0 @@
---
category: help
layout: help
mirrorid: raspberrypi
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# Raspberrypi 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
主要参考 [Raspbian 帮助](/help/raspbian)
编辑 `/etc/apt/sources.list.d/raspi.list` 文件。
<form class="form-inline">
<div class="form-group">
<label>选择你的 Raspbian 对应的 Debian 版本:</label>
<select id="select-0-0" class="form-control content-select" data-target="#content-0">
<option data-release_name="bookworm" selected>Debian 12 (bookworm)</option>
<option data-release_name="bullseye">Debian 11 (bullseye)</option>
<option data-release_name="buster">Debian 10 (buster)</option>
<option data-release_name="stretch">Debian 9 (stretch)</option>
</select>
</div>
</form>
{% raw %}
<script id="template-0" type="x-tmpl-markup">
deb {{http_protocol}}{{mirror}}/ {{release_name}} main
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-properties" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
</code>
</pre>

View File

@ -1,439 +0,0 @@
---
category: help
layout: help
mirrorid: centos-stream
---
<!-- 本 markdown 从 mirrorz-org/mirrorz-help 自动生成,如需修改,请修改 mirrorz-org/mirrorz-help 的对应部分 -->
# CentOS Stream 软件仓库镜像使用帮助
<form class="form-inline">
<div class="form-group">
<label>是否使用 HTTPS</label>
<select id="http-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5">
<option data-http_protocol="https://" selected></option>
<option data-http_protocol="http://"></option>
</select>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label>是否使用 sudo</label>
<select id="sudo-select" class="form-control content-select" data-target="#content-0,#content-1,#content-2,#content-3,#content-4,#content-5">
<option data-sudo="sudo " data-sudoE="sudo -E " selected></option>
<option data-sudo="" data-sudoE=""></option>
</select>
</div>
</form>
该文件夹只提供 CentOS Stream 9如果需要非 Stream 版的 CentOS请参考 [centos 的帮助](/help/centos)。
CentOS Stream 9 默认启用了包管理工具 dnf其是 yum 包管理工具的替代品。dnf 与 yum 大部分的命令都是通用的dnf 也使用 `/etc/yum.repos.d/` 进行镜像配置。
CentOS Stream 9 中源被整合入两个文件 `centos.repo``centos-addons.repo`,由于文件中不包含 `baseurl` 字段,需要手动插入,通过文本替换修改源的方法较为复杂,也可以选择直接复制最后的替换结果覆盖源文件。
### 文本替换
将这段代码保存为一个文件,例如 `update_mirror.pl`
{% raw %}
<script id="template-0" type="x-tmpl-markup">
#!/usr/bin/perl
use strict;
use warnings;
use autodie;
my $mirrors = '{{http_protocol}}{{mirror}}';
if (@ARGV < 1) {
die "Usage: $0 <filename1> <filename2> ...\n";
}
while (my $filename = shift @ARGV) {
my $backup_filename = $filename . '.bak';
rename $filename, $backup_filename;
open my $input, "<", $backup_filename;
open my $output, ">", $filename;
while (<$input>) {
s/^metalink/# metalink/;
if (m/^name/) {
my (undef, $repo, $arch) = split /-/;
$repo =~ s/^\s+|\s+$//g;
($arch = defined $arch ? lc($arch) : '') =~ s/^\s+|\s+$//g;
if ($repo =~ /^Extras/) {
$_ .= "baseurl=${mirrors}/SIGs/\$releasever-stream/extras" . ($arch eq 'source' ? "/${arch}/" : "/\$basearch/") . "extras-common\n";
} else {
$_ .= "baseurl=${mirrors}/\$releasever-stream/$repo" . ($arch eq 'source' ? "/" : "/\$basearch/") . ($arch ne '' ? "${arch}/tree/" : "os") . "\n";
}
}
print $output $_;
}
}
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-0" class="language-perl" data-template="#template-0" data-select="#http-select,#sudo-select">
</code>
</pre>
然后,在命令行中使用以下命令来执行它:
{% raw %}
<script id="template-1" type="x-tmpl-markup">
{{sudo}}perl /tmp/update_mirror.pl /etc/yum.repos.d/centos*.repo
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-1" class="language-shell" data-template="#template-1" data-select="#http-select,#sudo-select">
</code>
</pre>
注意将 `/tmp/update_mirror.pl` 替换为脚本实际保存的路径。其中的 `*` 通配符,如果只需要替换一些文件中的源,请自行增删。
另外,请确保已经安装了 Perl 解释器,并将 `perl` 命令添加到系统的 `PATH` 环境变量中。这样才能在命令行中运行 Perl 脚本。
对于大部分 CentOS Stream 9 镜像,应该已经包含了 Perl 解释器,如果你的镜像没有包含,你可以使用以下命令简单的安装:
{% raw %}
<script id="template-2" type="x-tmpl-markup">
# 使用 dnf
{{sudo}}dnf install perl
# 使用 yum
{{sudo}}yum install perl
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-2" class="language-shell" data-template="#template-2" data-select="#http-select,#sudo-select">
</code>
</pre>
最后,更新软件包缓存
{% raw %}
<script id="template-3" type="x-tmpl-markup">
# 使用 dnf
{{sudo}}dnf clean all && {{sudo}}dnf makecache
# 使用 yum
{{sudo}}yum clean all && {{sudo}}yum makecache
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-3" class="language-shell" data-template="#template-3" data-select="#http-select,#sudo-select">
</code>
</pre>
注意,如果需要启用其中一些 repo需要将其中的 `enabled=0` 改为 `enabled=1`
**注:截至 2023-05-16并未在官方源与镜像源中发现 nfv-source建议不要开启 nfv-source。**
### 修改结果
你可以对照替换结果是否准确,或直接复制结果覆盖源文件。
`centos.repo`:
{% raw %}
<script id="template-4" type="x-tmpl-markup">
[baseos]
name=CentOS Stream $releasever - BaseOS
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/BaseOS/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1
[baseos-debuginfo]
name=CentOS Stream $releasever - BaseOS - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/BaseOS/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[baseos-source]
name=CentOS Stream $releasever - BaseOS - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/BaseOS/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[appstream]
name=CentOS Stream $releasever - AppStream
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/AppStream/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1
[appstream-debuginfo]
name=CentOS Stream $releasever - AppStream - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/AppStream/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[appstream-source]
name=CentOS Stream $releasever - AppStream - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/AppStream/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[crb]
name=CentOS Stream $releasever - CRB
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/CRB/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-crb-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1
[crb-debuginfo]
name=CentOS Stream $releasever - CRB - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/CRB/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-crb-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[crb-source]
name=CentOS Stream $releasever - CRB - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/CRB/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-crb-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-4" class="language-ini" data-template="#template-4" data-select="#http-select,#sudo-select">
</code>
</pre>
`centos-addons.repo`:
{% raw %}
<script id="template-5" type="x-tmpl-markup">
[highavailability]
name=CentOS Stream $releasever - HighAvailability
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/HighAvailability/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-highavailability-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0
[highavailability-debuginfo]
name=CentOS Stream $releasever - HighAvailability - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/HighAvailability/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-highavailability-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[highavailability-source]
name=CentOS Stream $releasever - HighAvailability - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/HighAvailability/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-highavailability-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[nfv]
name=CentOS Stream $releasever - NFV
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/NFV/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-nfv-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0
[nfv-debuginfo]
name=CentOS Stream $releasever - NFV - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/NFV/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-nfv-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[nfv-source]
name=CentOS Stream $releasever - NFV - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/NFV/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-nfv-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[rt]
name=CentOS Stream $releasever - RT
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/RT/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-rt-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0
[rt-debuginfo]
name=CentOS Stream $releasever - RT - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/RT/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-rt-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[rt-source]
name=CentOS Stream $releasever - RT - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/RT/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-rt-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[resilientstorage]
name=CentOS Stream $releasever - ResilientStorage
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/ResilientStorage/$basearch/os
# metalink=https://mirrors.centos.org/metalink?repo=centos-resilientstorage-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0
[resilientstorage-debuginfo]
name=CentOS Stream $releasever - ResilientStorage - Debug
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/ResilientStorage/$basearch/debug/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-resilientstorage-debug-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[resilientstorage-source]
name=CentOS Stream $releasever - ResilientStorage - Source
baseurl={{http_protocol}}{{mirror}}/$releasever-stream/ResilientStorage/source/tree/
# metalink=https://mirrors.centos.org/metalink?repo=centos-resilientstorage-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
[extras-common]
name=CentOS Stream $releasever - Extras packages
baseurl={{http_protocol}}{{mirror}}/SIGs/$releasever-stream/extras/$basearch/extras-common
# metalink=https://mirrors.centos.org/metalink?repo=centos-extras-sig-extras-common-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1
[extras-common-source]
name=CentOS Stream $releasever - Extras packages - Source
baseurl={{http_protocol}}{{mirror}}/SIGs/$releasever-stream/extras/source/extras-common
# metalink=https://mirrors.centos.org/metalink?repo=centos-extras-sig-extras-common-source-$stream&arch=source&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0
</script>
{% endraw %}
<p></p>
<pre>
<code id="content-5" class="language-ini" data-template="#template-5" data-select="#http-select,#sudo-select">
</code>
</pre>