mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: transpile apt-contents from tuna/mirrorz-help
This commit is contained in:
parent
838cf7c830
commit
505ec21f4c
|
|
@ -4,7 +4,30 @@ layout: help
|
|||
mirrorid: chef
|
||||
---
|
||||
|
||||
## Chef APT/YUM 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
Chef 是一套自动化运维工具。
|
||||
|
||||
|
|
@ -12,44 +35,61 @@ Chef 是一套自动化运维工具。
|
|||
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/chef.list`
|
||||
|
||||
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye" selected>Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
</select>
|
||||
<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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/chef/apt/stable {{release_name}} main
|
||||
</script>
|
||||
{%endraw%}
|
||||
|
||||
|
||||
### RHEL/CentOS 用户
|
||||
|
||||
新建 `/etc/yum.repos.d/chef.repo`,内容为:
|
||||
|
||||
```
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="template-1" type="x-tmpl-markup">
|
||||
[chef-stable]
|
||||
name=chef-stable
|
||||
baseurl=https://{{ site.hostname }}/chef/yum/stable/stable-el$releasever-x86_64/
|
||||
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" data-template="#template-1" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,57 +4,135 @@ layout: help
|
|||
mirrorid: debian
|
||||
---
|
||||
|
||||
Debian 镜像使用帮助
|
||||
===================
|
||||
|
||||
Debian 的软件源配置文件是
|
||||
`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
|
||||
TUNA 的软件源镜像。
|
||||
|
||||
如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:
|
||||
|
||||
```
|
||||
$ sudo apt install apt-transport-https ca-certificates
|
||||
```
|
||||
|
||||
再使用 TUNA 的软件源镜像。
|
||||
|
||||
# Debian 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的 Debian 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="sid" data-security="-security">sid</option>
|
||||
<option data-release="testing" data-security="-security">testing</option>
|
||||
<option data-release="bullseye" data-security="-security" selected>bullseye</option>
|
||||
<option data-release="buster" data-security="/updates">buster</option>
|
||||
<option data-release="stretch" data-security="/updates">stretch</option>
|
||||
<option data-release="jessie" data-security="/updates">jessie</option>
|
||||
<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>
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free{{if release_name|notequals>sid}}
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
{{if release_name|notequals>jessie}}
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
{{/if}}
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
{{/if}}
|
||||
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" 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="bullseye" data-security="-security" data-is_sid="" data-has_backports="" selected>Debian 11 (bullseye)</option>
|
||||
<option data-release_name="bookworm" data-security="-security" data-is_sid="" data-has_backports="">Debian 12 (bookworm)</option>
|
||||
<option data-release_name="sid" data-security="-security" data-is_sid="# " data-has_backports="# ">sid</option>
|
||||
<option data-release_name="testing" data-security="-security" data-is_sid="" data-has_backports="">testing</option>
|
||||
<option data-release_name="buster" data-security="/updates" data-is_sid="" data-has_backports="">Debian 10 (buster)</option>
|
||||
<option data-release_name="stretch" data-security="/updates" data-is_sid="" data-has_backports="">Debian 9 (stretch)</option>
|
||||
<option data-release_name="jessie" data-security="/updates" data-is_sid="" data-has_backports="# ">Debian 8 (jessie)</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
|
||||
{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}} main contrib non-free
|
||||
|
||||
{{is_sid}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-updates main contrib non-free
|
||||
{{is_sid}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-updates main contrib non-free
|
||||
|
||||
{{is_sid}}{{has_backports}}deb {{http_protocol}}{{mirror}}/ {{release_name}}-backports main contrib non-free
|
||||
{{is_sid}}{{has_backports}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}/ {{release_name}}-backports main contrib non-free
|
||||
|
||||
{{security_mirror}}{{is_sid}}deb {{http_protocol}}{{mirror}}-security {{release_name}}{{security}} main contrib non-free
|
||||
{{security_mirror}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}{{mirror}}-security {{release_name}}{{security}} main contrib non-free
|
||||
|
||||
{{security_official}}{{is_sid}}deb {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free
|
||||
{{security_official}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0,#select-1-1,#select-1-2">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
为了方便快速配置,此处一并附上了 debian-security 的配置,一般来说,镜像站会同时提供 debian-security,截至写文档时,DNUI、HIT 与 NYIST 未提供该镜像,为了更准确的信息您可以前往 [Debian Security 帮助](/help/debian-security) 确认。
|
||||
|
||||
不过,一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟。参考 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
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -4,55 +4,104 @@ layout: help
|
|||
mirrorid: gitlab-ce
|
||||
---
|
||||
|
||||
## Gitlab Community Edition 镜像使用帮助
|
||||
|
||||
**注意: gitlab-ce 镜像仅支持 x86-64 架构**
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
||||
首先信任 GitLab 的 GPG 公钥:
|
||||
|
||||
```
|
||||
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
|
||||
```
|
||||
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-ce.list`
|
||||
# GitLab CE 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye" selected>Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="jammy">Ubuntu 22.04 LTS</option>
|
||||
</select>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" 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="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" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
安装 gitlab-ce:
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install gitlab-ce
|
||||
```
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hostname }}{%raw%}/gitlab-ce/{{os_name}} {{release_name}} main
|
||||
<script id="template-2" type="x-tmpl-markup">
|
||||
{{sudo}}apt-get update
|
||||
{{sudo}}apt-get install gitlab-ce
|
||||
</script>
|
||||
{%endraw%}
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-2" data-template="#template-2" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
### RHEL/CentOS 用户
|
||||
|
|
@ -60,17 +109,42 @@ deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hos
|
|||
|
||||
新建 `/etc/yum.repos.d/gitlab-ce.repo`,内容为
|
||||
|
||||
```
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="template-3" type="x-tmpl-markup">
|
||||
[gitlab-ce]
|
||||
name=Gitlab CE Repository
|
||||
baseurl=https://{{ site.hostname }}/gitlab-ce/yum/el$releasever/
|
||||
baseurl={{http_protocol}}{{mirror}}/yum/el$releasever/
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
```
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-3" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
再执行
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install gitlab-ce
|
||||
```
|
||||
|
||||
|
||||
{% 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" data-template="#template-4" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,73 +4,150 @@ layout: help
|
|||
mirrorid: gitlab-runner
|
||||
---
|
||||
|
||||
## Gitlab Runner 镜像使用帮助
|
||||
|
||||
**注意: gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构**
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
||||
首先信任 GitLab 的 GPG 公钥:
|
||||
|
||||
```
|
||||
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
|
||||
```
|
||||
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-runner.list`
|
||||
# GitLab Runner 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye" selected>Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="jammy">Ubuntu 22.04 LTS</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
安装 gitlab-runner:
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-runner.list`
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install gitlab-runner
|
||||
```
|
||||
|
||||
|
||||
<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="apt-template" type="x-tmpl-markup">
|
||||
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hostname }}{%raw%}/gitlab-runner/{{os_name}} {{release_name}} main
|
||||
<script id="template-1" type="x-tmpl-markup">
|
||||
deb {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
|
||||
</script>
|
||||
{%endraw%}
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" 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" 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=https://{{ site.hostname }}/gitlab-runner/yum/el$releasever-$basearch/
|
||||
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" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
再执行
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install gitlab-runner
|
||||
```
|
||||
|
||||
|
||||
{% 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" data-template="#template-4" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,71 +4,173 @@ layout: help
|
|||
mirrorid: mongodb
|
||||
---
|
||||
|
||||
## MongoDB 镜像使用帮助
|
||||
# MongoDB 软件仓库镜像使用帮助
|
||||
|
||||
MongoDB 镜像自 MongoDB [官方仓库](https://repo.mongodb.org/), 目前有 RHEL/CentOS, Ubuntu, Debian 的镜像,支持 amd64, i386, arm64 架构。
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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 公钥:
|
||||
首先信任 MongoDB 的 GPG 公钥:
|
||||
|
||||
```
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
|
||||
```
|
||||
|
||||
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mongodb.list`
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的 Debian/Ubuntu 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie" data-opt='{"repo-name": "main"}'>Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch" data-opt='{"repo-name": "main"}'>Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster" data-opt='{"repo-name": "main"}'>Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye" data-opt='{"repo-name": "main"}'>Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="xenial" data-opt='{"repo-name": "multiverse"}'>Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic" data-opt='{"repo-name": "multiverse"}'>Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal" data-opt='{"repo-name": "multiverse"}'>Ubuntu 20.04 LTS</option>
|
||||
<option selected data-os="ubuntu" data-release="jammy" data-opt='{"repo-name": "multiverse"}'>Ubuntu 22.04 LTS</option>
|
||||
</select>
|
||||
<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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{{ site.hostname }}/mongodb/apt/{%raw%}{{os_name}} {{release_name}}{%endraw%}/mongodb-org/5.0 {%raw%}{{repo-name}}{%endraw%}
|
||||
|
||||
再选择你的 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" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0,#select-1-1">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
安装 `mongodb-org` 即可
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y 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" 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=https://{{ site.hostname }}/mongodb/yum/el$releasever/
|
||||
baseurl={{http_protocol}}{{mirror}}/yum/el$releasever/
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
```
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-3" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
刷新缓存并安装 `mongodb-org` 即可。
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install 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" data-template="#template-4" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,104 +4,141 @@ layout: help
|
|||
mirrorid: mysql
|
||||
---
|
||||
|
||||
## Mysql Community Edition 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</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>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster" selected>Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye">Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="trusty">Ubuntu 14.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="jammy">Ubuntu 22.04 LTS</option>
|
||||
</select>
|
||||
<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="apt-content">
|
||||
<code id="content-0" 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/](https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/)
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/apt/{{os_name}} {{release_name}} mysql-5.6 mysql-5.7 mysql-8.0 mysql-tools
|
||||
</script>
|
||||
{%endraw%}
|
||||
|
||||
参考文档: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上还提供了`aarch64`版本。
|
||||
注:`mysql-8.0`, `mysql-connectors`和`mysql-tools`在 RHEL 7/8上还提供了`aarch64`版本。
|
||||
|
||||
|
||||
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的CentOS/RHEL版本: </label>
|
||||
<select class="form-control release-select" data-template="#yum-template" data-target="#yum-content">
|
||||
<option data-release="el7" selected>CentOS/RHEL 7</option>
|
||||
</select>
|
||||
<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>
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="yum-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
参考文档:[https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/](https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/)
|
||||
<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="yum-template" type="x-tmpl-markup">
|
||||
<script id="template-1" type="x-tmpl-markup">
|
||||
[mysql-connectors-community]
|
||||
name=MySQL Connectors Community
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/yum/mysql-connectors-community-{{release_name}}-$basearch/
|
||||
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=https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/yum/mysql-tools-community-{{release_name}}-$basearch/
|
||||
baseurl={{http_protocol}}{{mirror}}/yum/mysql-tools-community-{{release_name}}-$basearch/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
|
||||
{{if release_name|notequals>el8}}
|
||||
[mysql-5.6-community]
|
||||
name=MySQL 5.6 Community Server
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/yum/mysql-5.6-community-{{release_name}}-$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
|
||||
|
||||
[mysql-5.7-community]
|
||||
name=MySQL 5.7 Community Server
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/yum/mysql-5.7-community-{{release_name}}-$basearch/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
|
||||
{{/if}}
|
||||
[mysql-8.0-community]
|
||||
name=MySQL 8.0 Community Server
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/mysql/yum/mysql-8.0-community-{{release_name}}-$basearch/
|
||||
[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" 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/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,52 +4,141 @@ layout: help
|
|||
mirrorid: proxmox
|
||||
---
|
||||
|
||||
## Proxmox 镜像使用帮助
|
||||
|
||||
新建 `/etc/apt/sources.list.d/pve-no-subscription.list`,内容为:
|
||||
# Proxmox 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye" selected>Debian 11 (Bullseye)</option>
|
||||
</select>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="bullseye" selected>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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
注意快速配置中的文件名需要根据需求而修改。
|
||||
|
||||
### ISO 安装文件下载
|
||||
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/proxmox/{{os_name}}/pve {{release_name}} pve-no-subscription
|
||||
<script id="template-1" type="x-tmpl-markup">
|
||||
{{http_protocol}}{{mirror}}/iso/
|
||||
</script>
|
||||
{%endraw%}
|
||||
{% endraw %}
|
||||
|
||||
对于 Proxmox Backup Server, Client 和 Proxmox Mail Gateway,请将以上命令中的 `pve` 分别替换为 `pbs`, `pbs-client` 和 `pmg`。
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" data-template="#template-1" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
ISO安装文件下载:[https://{{ site.hostname }}/proxmox/iso/](https://{{ site.hostname }}/proxmox/iso/)
|
||||
|
||||
### CT Templates
|
||||
|
||||
如果你需要加速 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源为 `https://{{ site.hostname }}`。
|
||||
如果你需要加速 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源。
|
||||
|
||||
具体方法:将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 `http://download.proxmox.com`
|
||||
替换为 `https://{{ site.hostname }}/proxmox` 即可。
|
||||
替换为
|
||||
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="template-2" type="x-tmpl-markup">
|
||||
{{http_protocol}}{{mirror}}
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-2" 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|https://{{ site.hostname }}/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
|
||||
```
|
||||
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" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,30 @@ layout: help
|
|||
mirrorid: raspbian
|
||||
---
|
||||
|
||||
## Raspbian 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
### Raspbian 简介
|
||||
|
||||
|
|
@ -12,21 +35,9 @@ Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi® “树莓派”
|
|||
其基于 Debian 开发,针对 Raspberry Pi 硬件优化。
|
||||
|
||||
Raspbian 并非由树莓派的开发与维护机构 The Raspberry Pi Foundation
|
||||
“树莓派基金会” 官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
|
||||
“树莓派基金会”官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
|
||||
|
||||
### 系统架构与版本
|
||||
|
||||
架构:
|
||||
|
||||
* armhf
|
||||
|
||||
版本:
|
||||
|
||||
* stretch
|
||||
* buster
|
||||
* bullseye
|
||||
|
||||
注:Raspbian 系统由于从诞生开始就基于(为了armhf,也必须基于)当时还是
|
||||
注:Raspbian 系统由于从诞生开始就基于(为了 armhf,也必须基于)当时还是
|
||||
testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
|
||||
表示版本。
|
||||
|
||||
|
|
@ -34,76 +45,93 @@ 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 class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="stretch" data-security="/updates">Debian 9 (stretch)</option>
|
||||
<option data-release="buster" data-security="/updates">Debian 10 (buster)</option>
|
||||
<option data-release="bullseye" data-security="-security" selected>Debian 11 (bullseye)</option>
|
||||
</select>
|
||||
<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="apt-template" type="x-tmpl-markup">
|
||||
# armv7l 用户:编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代
|
||||
deb http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
# deb-src http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
<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
|
||||
|
||||
# armv7l 用户如果需要开启 multi-arch 使用 arm64 软件源,需要在 `/etc/apt/sources.list` 中加上
|
||||
deb [arch=arm64] http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/multiarch/ {{release_name}} main
|
||||
|
||||
# aarch64 用户:编辑 `/etc/apt/sources.list` 文件,用以下内容取代:
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
|
||||
# 对于两个架构,编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/raspberrypi/ {{release_name}} main
|
||||
{{enable_aarch64}}deb [arch=arm64] {{http_protocol}}{{mirror}}/multiarch/ {{release_name}} main
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
<code id="content-0" 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/`子目录下。
|
||||
|
||||
注意:网址末尾的`raspbian`重复两次是必须的。因为 Raspbian 的仓库中除了APT软件源还包含其他代码。APT软件源不在仓库的根目录,而在`raspbian/`子目录下。
|
||||
#### aarch64
|
||||
|
||||
编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
|
||||
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)
|
||||
* 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)
|
||||
* 树莓派基金会主页:[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/)授权清华大学镜像站使用。
|
||||
中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/) 授权清华大学镜像站使用。
|
||||
|
||||
TUNA 提供的修改版本同样使用[知识共享署名-非商业性使用
|
||||
TUNA 提供的修改版本同样使用 [知识共享署名 - 非商业性使用
|
||||
3.0
|
||||
中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/)。
|
||||
|
||||
|
|
|
|||
|
|
@ -4,42 +4,84 @@ layout: help
|
|||
mirrorid: ros
|
||||
---
|
||||
|
||||
## ROS 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
新建 `/etc/apt/sources.list.d/ros-latest.list`,内容为:
|
||||
|
||||
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="ubuntu" data-release="trusty">Ubuntu 14.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal" selected>Ubuntu 20.04 LTS</option>
|
||||
</select>
|
||||
<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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
然后再输入如下命令,信任 ROS 的 GPG Key,并更新索引:
|
||||
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ros/ubuntu/ {{release_name}} main
|
||||
<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%}
|
||||
{% endraw %}
|
||||
|
||||
然后再输入如下命令,信任ROS的GPG Key,并更新索引:
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" data-template="#template-1" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
### rosdep
|
||||
|
||||
参考 [ROS Distro 帮助](/help/rosdistro)
|
||||
|
||||
```
|
||||
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
|
||||
sudo apt update
|
||||
```
|
||||
|
|
|
|||
|
|
@ -4,44 +4,84 @@ layout: help
|
|||
mirrorid: ros2
|
||||
---
|
||||
|
||||
## ROS2 镜像使用帮助
|
||||
|
||||
输入如下命令,下载 ROS 的 GPG Key:
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
再输入如下命令,添加软件仓库,并更新索引:
|
||||
# ROS2 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="bullseye">Debian 11 (Bullseye)</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="jammy" selected>Ubuntu 22.04 LTS</option>
|
||||
</select>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] https://{%endraw%}{{ site.hostname }}{%raw%}/ros2/ubuntu {{release_name}} main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
|
||||
|
||||
sudo apt update
|
||||
|
||||
<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="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%}
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
Reference: https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html
|
||||
|
||||
### rosdep
|
||||
|
||||
参考 [ROS Distro 帮助](/help/rosdistro)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,51 +4,111 @@ layout: help
|
|||
mirrorid: rudder
|
||||
---
|
||||
|
||||
## Rudder APT/YUM 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
||||
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/rudder.list`
|
||||
选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/rudder.list`
|
||||
|
||||
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster" selected>Debian 10 (Buster)</option>
|
||||
<option data-os="ubuntu" data-release="trusty">Ubuntu 14.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
</select>
|
||||
<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>
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<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="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/rudder/apt/6.0 {{release_name}} main
|
||||
<script id="template-0" type="x-tmpl-markup">
|
||||
deb {{http_protocol}}{{mirror}}/apt/{{version}} {{release_name}} main
|
||||
</script>
|
||||
{%endraw%}
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-0" 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`,内容为:
|
||||
|
||||
```
|
||||
[Rudder_6.0]
|
||||
name=Rudder 6.0
|
||||
baseurl=https://{{ site.hostname }}/rudder/rpm/rudder6.0-RHEL_$releasever/
|
||||
|
||||
|
||||
<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" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,51 +4,108 @@ layout: help
|
|||
mirrorid: ubuntu-ports
|
||||
---
|
||||
|
||||
Ubuntu Ports 镜像使用帮助
|
||||
===================
|
||||
|
||||
Ubuntu 的软件源配置文件是
|
||||
`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
|
||||
TUNA 的软件源镜像。
|
||||
|
||||
# Ubuntu Ports 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="trusty">14.04 LTS</option>
|
||||
<option data-release="xenial">16.04 LTS</option>
|
||||
<option data-release="bionic">18.04 LTS</option>
|
||||
<option data-release="focal">20.04 LTS</option>
|
||||
<option data-release="jammy" selected>22.04 LTS</option>
|
||||
<option data-release="kinetic">22.10</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="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="apt-template" type="x-tmpl-markup">
|
||||
<script id="template-0" type="x-tmpl-markup">
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}} main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}} main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-updates main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-updates main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-backports main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-backports main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-security main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-security main restricted universe multiverse
|
||||
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
|
||||
|
||||
# 预发布软件源,不建议启用
|
||||
# deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-proposed main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu-ports/ {{release_name}}-proposed 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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1,#select-0-2,#select-0-3">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
本镜像仅包含 arm64 armhf ppc64el riscv64 s390x 架构的软件包。
|
||||
|
||||
因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。
|
||||
|
||||
|
|
|
|||
|
|
@ -4,64 +4,110 @@ layout: help
|
|||
mirrorid: ubuntu
|
||||
---
|
||||
|
||||
Ubuntu 镜像使用帮助
|
||||
===================
|
||||
|
||||
本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为ports.ubuntu.com)请使用 [ubuntu-ports 镜像](https://{{ site.hostname }}/help/ubuntu-ports/)。
|
||||
|
||||
### 手动替换
|
||||
Ubuntu 的软件源配置文件是
|
||||
`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
|
||||
TUNA 的软件源镜像。
|
||||
|
||||
# Ubuntu 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="trusty">14.04 LTS</option>
|
||||
<option data-release="xenial">16.04 LTS</option>
|
||||
<option data-release="bionic">18.04 LTS</option>
|
||||
<option data-release="focal">20.04 LTS</option>
|
||||
<option data-release="jammy" selected>22.04 LTS</option>
|
||||
<option data-release="kinetic">22.10</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="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="apt-template" type="x-tmpl-markup">
|
||||
<script id="template-0" type="x-tmpl-markup">
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}} main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}} main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-updates main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-updates main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-backports main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-backports main restricted universe multiverse
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-security main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-security main restricted universe multiverse
|
||||
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
|
||||
|
||||
# 预发布软件源,不建议启用
|
||||
# deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-proposed main restricted universe multiverse
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-proposed 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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0,#select-0-1,#select-0-2,#select-0-3">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### 命令替换
|
||||
执行如下命令自动替换
|
||||
```bash
|
||||
sudo sed -i "s@http://.*archive.ubuntu.com@https://{{ site.hostname }}@g" /etc/apt/sources.list
|
||||
sudo sed -i "s@http://.*security.ubuntu.com@https://{{ site.hostname }}@g" /etc/apt/sources.list
|
||||
```
|
||||
因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。
|
||||
|
||||
|
|
|
|||
|
|
@ -4,24 +4,93 @@ layout: help
|
|||
mirrorid: virtualbox
|
||||
---
|
||||
|
||||
# VirtualBox 镜像使用帮助
|
||||
# VirtualBox 软件仓库镜像使用帮助
|
||||
|
||||
[Oracle Virtualbox](https://www.virtualbox.org/) VirtualBox 是一款开源虚拟机软件。由德国 Innotek 公司开发,Sun Microsystems 公司出品。使用Qt编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。采用 GPL 协议开源。
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
[Oracle Virtualbox](https://www.virtualbox.org/) VirtualBox 是一款开源虚拟机软件。由德国 Innotek 公司开发,Sun Microsystems 公司出品。使用 Qt 编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。采用 GPL 协议开源。
|
||||
|
||||
## Microsoft Windows
|
||||
|
||||
[点击下载 Windows 最新版](https://{{ site.hostname }}/virtualbox/virtualbox-Win-latest.exe)
|
||||
|
||||
|
||||
{% 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" data-template="#template-0" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
## Macintosh OS X
|
||||
|
||||
[点击下载 OS X 最新版](https://{{ site.hostname }}/virtualbox/virtualbox-osx-latest.dmg)
|
||||
|
||||
|
||||
{% 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" data-template="#template-1" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
# Linux
|
||||
|
||||
## 通过编译好的二进制包安装
|
||||
|
||||
访问该镜像下最新的目录(例如`5.0.24`),找到名为<发行版名称>~<发行代号>~<架构> 的文件。
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="template-2" type="x-tmpl-markup">
|
||||
{{http_protocol}}{{mirror}}
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-2" 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` 下载安装即可。
|
||||
|
||||
目前支持的系统有:
|
||||
|
|
@ -43,70 +112,137 @@ mirrorid: virtualbox
|
|||
|
||||
对于 Debian 8 和 Ubuntu 16.04 及以上:
|
||||
|
||||
```shell
|
||||
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
|
||||
```
|
||||
|
||||
其他版本
|
||||
|
||||
```shell
|
||||
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
|
||||
```
|
||||
|
||||
再选择你的 Debian/Ubuntu 版本,将文本框中内容写进`/etc/apt/sources.list.d/virtualbox.list`
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="bullseye" selected>Debian 11 (Bullseye)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="ubuntu" data-release="jammy">Ubuntu 22.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="trusty">Ubuntu 14.04 LTS</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hostname }}{%raw%}/virtualbox/apt/ {{release_name}} contrib
|
||||
<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" 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" 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" data-template="#template-5" data-select="#http-select,#sudo-select,#select-5-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
安装 VirtualBox:
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install virtualbox-5.0
|
||||
```
|
||||
|
||||
|
||||
{% 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" 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=https://{{ site.hostname }}/virtualbox/rpm/el$releasever/
|
||||
baseurl={{http_protocol}}{{mirror}}/rpm/el$releasever/
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
```
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-7" data-template="#template-7" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
刷新缓存并安装 `virtualbox` 即可。
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install VirtualBox-5.1
|
||||
```
|
||||
|
||||
|
||||
{% 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" data-template="#template-8" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,75 +4,163 @@ layout: help
|
|||
mirrorid: grafana
|
||||
---
|
||||
|
||||
## Grafana 镜像帮助
|
||||
|
||||
### Debian / Ubuntu 用户
|
||||
|
||||
首先信任 https://apt.grafana.com/ 的 GPG 公钥:
|
||||
|
||||
```bash
|
||||
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
|
||||
```
|
||||
|
||||
确保你的 apt 支持 HTTPS:
|
||||
|
||||
```bash
|
||||
sudo apt-get install -y apt-transport-https
|
||||
```
|
||||
|
||||
选择你希望安装的 Grafana 版本(与你的 Debian/Ubuntu 系统版本无关),文本框中内容写进 `/etc/apt/sources.list.d/grafana.list`
|
||||
# Grafana 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的 Grafana 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="stable">Grafana Stable Repository</option>
|
||||
<option data-release="beta">Grafana Beta Repository</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
安装 Grafana
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install grafana
|
||||
```
|
||||
确保你的 apt 支持 HTTPS:
|
||||
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb [signed-by=/usr/share/keyrings/grafana.key] https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/apt/ {{release_name}} main
|
||||
<script id="template-1" type="x-tmpl-markup">
|
||||
{{sudo}}apt-get install -y apt-transport-https
|
||||
</script>
|
||||
{%endraw%}
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-1" 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" 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" 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=https://{{ site.hostname }}/grafana/yum/rpm
|
||||
baseurl={{http_protocol}}{{mirror}}/yum/rpm
|
||||
repo_gpgcheck=0
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
```
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="content-4" data-template="#template-4" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
如果要避免安装 beta 版本,需要新增一行
|
||||
|
||||
```
|
||||
```ini
|
||||
exclude=*beta*
|
||||
```
|
||||
|
||||
再执行
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install grafana
|
||||
```
|
||||
|
||||
|
||||
{% 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" data-template="#template-5" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,74 +4,161 @@ layout: help
|
|||
mirrorid: erlang-solutions
|
||||
---
|
||||
|
||||
## erlang-solutions 镜像使用指南
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
||||
首先信任 erlang-solutions 的 GPG 公钥:
|
||||
|
||||
```
|
||||
# Debian 用户
|
||||
curl -s https://packages.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
|
||||
# Ubuntu 用户
|
||||
curl -s https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
|
||||
```
|
||||
|
||||
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/erlang-solutions.list`
|
||||
# Erlang Solutions 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的 Debian/Ubuntu 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie">Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch">Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10 (Buster)</option>
|
||||
<option data-os="ubuntu" data-release="xenial">Ubuntu 16.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option selected data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-content">
|
||||
<code id="content-0" data-template="#template-0" data-select="#http-select,#sudo-select,#select-0-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{{ site.hostname }}/erlang-solutions/{%raw%}{{os_name}} {{release_name}}{%endraw%} contrib
|
||||
|
||||
再选择你的 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" data-template="#template-1" data-select="#http-select,#sudo-select,#select-1-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
安装 `erlang` 即可
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y 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" data-template="#template-2" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
### CentOS 用户
|
||||
|
||||
首先信任 erlang-solutions 的 GPG 公钥:
|
||||
首先信任 erlang-solutions 的 GPG 公钥:
|
||||
|
||||
```
|
||||
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
|
||||
```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=https://{{ site.hostname }}/erlang-solutions/centos/$releasever/
|
||||
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" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
刷新缓存并安装 `erlang` 即可。
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install 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" data-template="#template-4" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,54 +4,142 @@ layout: help
|
|||
mirrorid: llvm-apt
|
||||
---
|
||||
|
||||
## llvm-apt 镜像使用帮助
|
||||
|
||||
### 安装脚本
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget https://{{ site.hostname }}/llvm-apt/llvm.sh
|
||||
chmod +x llvm.sh
|
||||
sudo ./llvm.sh all -m https://{{ site.hostname }}/llvm-apt
|
||||
# 或者使用 ./llvm.sh <version number> all -m https://{{ site.hostname }}/llvm-apt
|
||||
# 安装某一特定版本
|
||||
```
|
||||
|
||||
### 手动启用
|
||||
|
||||
首先信任来自 <https://apt.llvm.org/> 的PGP公钥:
|
||||
|
||||
```bash
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
```
|
||||
|
||||
新增 `/etc/apt/sources.list.d/llvm-apt.list`,内容为
|
||||
# LLVM APT 软件仓库镜像使用帮助
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-release="jammy" selected>Ubuntu 22.04 LTS</option>
|
||||
<option data-release="buster">Debian 10</option>
|
||||
<option data-release="bullseye">Debian 11</option>
|
||||
<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 " selected>是</option>
|
||||
<option data-sudo="">否</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="apt-template" type="x-tmpl-markup">
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
# 如果需要特定版本的 LLVM,如 LLVM 14,需将 llvm-toolchain-{{release_name}} 换为 llvm-toolchain-{{release_name}}-14
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/llvm-apt/{{release_name}}/ llvm-toolchain-{{release_name}} main
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/llvm-apt/{{release_name}}/ llvm-toolchain-{{release_name}} main
|
||||
<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="apt-content">
|
||||
<code id="content-0" 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" 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" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0,#select-2-1,#select-2-2">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,53 +4,116 @@ layout: help
|
|||
mirrorid: wine-builds
|
||||
---
|
||||
|
||||
## wine-builds 镜像使用帮助
|
||||
# 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 " selected>是</option>
|
||||
<option data-sudo="">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
由于上游并未提供 rsync,镜像站只同步了 ubuntu/debian 部分。
|
||||
|
||||
首先启用 32 位架构
|
||||
|
||||
```bash
|
||||
sudo dpkg --add-architecture i386
|
||||
```
|
||||
|
||||
之后信任来自 <https://dl.winehq.org/> 的公钥
|
||||
|
||||
```
|
||||
sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
|
||||
```
|
||||
|
||||
新增 `/etc/apt/sources.list.d/winehq.list`,内容为
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="ubuntu" data-release="bionic">Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="focal">Ubuntu 20.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="jammy" selected>Ubuntu 22.04 LTS</option>
|
||||
<option data-os="debian" data-release="buster">Debian 10</option>
|
||||
<option data-os="debian" data-release="bullseye">Debian 11</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb [arch=amd64,i386 signed-by=/usr/share/keyrings/winehq-archive.key] https://{%endraw%}{{ site.hostname }}{%raw%}/wine-builds/{{os_name}}/ {{release_name}} main
|
||||
<script id="template-0" type="x-tmpl-markup">
|
||||
{{sudo}}dpkg --add-architecture i386
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
<code id="content-0" 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" 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="bullseye" selected>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" data-template="#template-2" data-select="#http-select,#sudo-select,#select-2-0">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
通过以下命令安装 winehq
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install --install-recommends winehq-stable
|
||||
```
|
||||
|
||||
|
||||
{% 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" data-template="#template-3" data-select="#http-select,#sudo-select">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue