mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: remove pages pointing to removed repos
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
6691f1298d
commit
0f8f120232
|
|
@ -1,99 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: gitlab-ci-multi-runner
|
||||
---
|
||||
|
||||
## Gitlab CI Multi Runner 镜像使用帮助
|
||||
|
||||
**注意: gitlab-ci-multi-runner 已停止更新。** 如果你需要安装版本 10 及以上的
|
||||
Runner,由于官方名称发生变化,请前往 [gitlab-runner帮助页面](https://{{ site.hostname }}/help/gitlab-runner/)。
|
||||
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
||||
本镜像仅支持 i386 和 amd64 架构。
|
||||
|
||||
首先信任 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-ci-multi-runner.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" selected>Debian 9 (Stretch)</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>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
安装 gitlab-ci-multi-runner:
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install gitlab-ci-multi-runner
|
||||
```
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hostname }}{%raw%}/gitlab-ci-multi-runner/{{os_name}} {{release_name}} main
|
||||
</script>
|
||||
{%endraw%}
|
||||
|
||||
### CentOS/RHEL
|
||||
|
||||
本镜像仅支持 x86-64 架构。
|
||||
|
||||
新建 `/etc/yum.repos.d/gitlab-ci-multi-runner.repo`,内容为
|
||||
|
||||
<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="el6">CentOS 6</option>
|
||||
<option data-release="el7" selected>CentOS 7</option>
|
||||
<option data-release="el6">RHEL 6</option>
|
||||
<option data-release="el7">RHEL 7</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="yum-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
再执行
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
sudo yum install gitlab-ci-multi-runner
|
||||
```
|
||||
|
||||
{% raw %}
|
||||
<script id="yum-template" type="x-tmpl-markup">
|
||||
[gitlab-ci-multi-runner]
|
||||
name=gitlab-ci-multi-runner
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/gitlab-ci-multi-runner/yum/{{release_name}}
|
||||
repo_gpgcheck=0
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
gpgkey=https://packages.gitlab.com/gpg.key
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: nodesource
|
||||
---
|
||||
|
||||
## Nodesource 镜像使用帮助
|
||||
|
||||
Nodesource 为 debian, ubuntu, fedora, RHEL 等发行版提供预编译的 nodejs
|
||||
和 npm 等软件包。
|
||||
|
||||
### debian/ubuntu 使用方法
|
||||
|
||||
运行
|
||||
|
||||
```bash
|
||||
curl -sL https://deb.nodesource.com/setup | sudo bash - # or
|
||||
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - # or
|
||||
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
|
||||
```
|
||||
|
||||
编辑 `/etc/apt/sources.list.d/nodesource.list`,把
|
||||
`https://deb.nodesource.com/node/` 替换为
|
||||
`https://{{ site.hostname }}/nodesource/deb/` 即可。
|
||||
|
||||
如果是 `https://deb.nodesource.com/node_10.x/` ,则改为 `https://{{ site.hostname }}/nodesource/deb_10.x/` 。
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: packagist
|
||||
---
|
||||
|
||||
## PHP 包仓库 Packagist 索引镜像使用帮助
|
||||
|
||||
执行以下命令即可将 Composer 默认仓库设置为本站:
|
||||
|
||||
```
|
||||
composer config -g repos.packagist composer https://{{ site.hostname }}/packagist/index
|
||||
```
|
||||
|
||||
该镜像只包含包索引,不含包的内容,主要目的是加快 composer 读取软件包索引的速度。
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: tensorflow
|
||||
---
|
||||
|
||||
# TensorFlow 镜像使用帮助
|
||||
|
||||
请通过 pypi 安装 TensorFlow。当前 tensorflow 这个仓库已经不再更新,保留下来仅仅是历史原因。
|
||||
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: repoforge
|
||||
---
|
||||
|
||||
# Repoforge (原Rpmforge) 镜像使用帮助
|
||||
|
||||
[Repoforge](http://repoforge.org/) 是 RHEL 系统下的软件仓库,拥有 10000 多个软件包,被认为是最安全、最稳定的一个软件仓库。目前已长期未更新,不推荐使用。
|
||||
|
||||
## 添加 Repoforge 仓库
|
||||
|
||||
1. 运行 `cat /etc/redhat-release` 获取 EL 版本号(如 EL6, EL7 等)
|
||||
2. 向系统中添加 Repoforge 的 GPG 公钥:
|
||||
```
|
||||
rpm --import https://{{ site.hostname }}/repoforge/RPM-GPG-KEY.dag.txt
|
||||
```
|
||||
3. 运行下列命令:
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的 EL 版本: </label>
|
||||
<select class="form-control release-select" data-template="#yum-template" data-target="#yum-content">
|
||||
<option data-release="el7" selected>EL7</option>
|
||||
<option data-release="el6">EL6</option>
|
||||
<option data-release="el5">EL5</option>
|
||||
<option data-release="el4">EL4</option>
|
||||
<option data-release="el3">EL3</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% raw %}
|
||||
<script id="yum-template" type="x-tmpl-markup">
|
||||
sudo cat > /etc/yum.repos.d/rpmforge.repo << EOF
|
||||
[rpmforge]
|
||||
name = RHEL $releasever - RPMforge.net - dag
|
||||
baseurl = https://{%endraw%}{{ site.hostname }}{%raw%}/repoforge/redhat/{{release_name}}/en/$basearch/rpmforge
|
||||
mirrorlist = http://mirrorlist.repoforge.org/{{release_name}}/mirrors-rpmforge
|
||||
enabled = 1
|
||||
protect = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
|
||||
gpgcheck = 1
|
||||
|
||||
[rpmforge-extras]
|
||||
name = RHEL $releasever - RPMforge.net - extras
|
||||
baseurl = https://{%endraw%}{{ site.hostname }}{%raw%}/repoforge/redhat/{{release_name}}/en/$basearch/extras
|
||||
mirrorlist = http://mirrorlist.repoforge.org/{{release_name}}/mirrors-rpmforge-extras
|
||||
enabled = 0
|
||||
protect = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
|
||||
gpgcheck = 1
|
||||
|
||||
[rpmforge-testing]
|
||||
name = RHEL $releasever - RPMforge.net - testing
|
||||
baseurl = https://{%endraw%}{{ site.hostname }}{%raw%}/repoforge/redhat/{{release_name}}/en/$basearch/testing
|
||||
mirrorlist = http://mirrorlist.repoforge.org/{{release_name}}/mirrors-rpmforge-testing
|
||||
enabled = 0
|
||||
protect = 0
|
||||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
|
||||
gpgcheck = 1
|
||||
EOF
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="yum-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
## 更新软件包缓存
|
||||
|
||||
```
|
||||
sudo yum makecache
|
||||
```
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: llvm
|
||||
---
|
||||
|
||||
## LLVM Git 源码仓库镜像使用帮助(废弃)
|
||||
|
||||
**提醒:由于 LLVM 官方迁移至 monorepo 的形式,此仓库目前不再更新。请查看 [此页面](/help/llvm-project.git/) 获得新仓库的使用帮助。**
|
||||
|
||||
本镜像镜像了官方的以下仓库:
|
||||
|
||||
```
|
||||
http://llvm.org/git/{llvm,clang,libcxx,lldb,clang-tools-extra,polly,zorg,compiler-rt,libcxxabi,lld,lnt}
|
||||
```
|
||||
若需要其他的仓库,可从 [LLVM 官方](http://llvm.org) 或者 [GitHub 镜像](https://github.com/llvm-mirror) 获取。
|
||||
使用方法:
|
||||
|
||||
```
|
||||
git clone https://{{ site.hostname }}/git/llvm/{reponame}.git
|
||||
```
|
||||
|
||||
其中`{reponame}`为上述的仓库名称之一。请注意:由于仓库体积均较大,执行`git clone`可能需要较长时间,并且没有进度提示,请耐心等候。
|
||||
|
||||
若要将 TUNA mirror 加入已有代码库,可在已有仓库中运行
|
||||
|
||||
```
|
||||
git remote add tuna https://{{ site.hostname }}/git/llvm/{reponame}.git
|
||||
```
|
||||
|
||||
或运行
|
||||
|
||||
```
|
||||
git remote set-url origin https://{{ site.hostname }}/git/llvm/{reponame}.git
|
||||
```
|
||||
|
||||
将默认上游设置为 TUNA 镜像
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: openthos-src
|
||||
---
|
||||
|
||||
# OpenTHOS 源代码镜像使用帮助
|
||||
|
||||
**注意: 本镜像是 OpenTHOS 源代码的镜像,如果是希望下载 OpenTHOS 的安装镜像,请访问 <https://{{ site.hostname }}/openthos/>。**
|
||||
|
||||
OpenTHOS 是基于 Android x86 的一套具有自主知识产权的开源桌面操作系统。其源代码获取方式类似于 AOSP,
|
||||
但需要将上游地址指向 `https://{{ site.hostname }}/git/openthos-src/manifest`。
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: julia
|
||||
---
|
||||
|
||||
## Julia 镜像使用帮助
|
||||
|
||||
TUNA 目前提供了 Julia 的官方包注册表 [General](https://github.com/JuliaRegistries/General) 镜像来加速 Julia 包的安装。
|
||||
TUNA 同时也提供了 Julia 二进制程序的镜像,关于其使用请参考 [Julia Releases]({{ site.url }}/help/julia-releases/).
|
||||
|
||||
注:本镜像的使用需要 Julia `v1.4.0` 或更新的版本。
|
||||
|
||||
## 使用方式
|
||||
|
||||
只需要设置环境变量 `JULIA_PKG_SERVER` 即可切换镜像。若成功切换镜像,则能通过 `versioninfo()` 查询到相关信息,例如:
|
||||
|
||||
```julia
|
||||
julia> versioninfo()
|
||||
Julia Version 1.4.1
|
||||
Commit 381693d3df* (2020-04-14 17:20 UTC)
|
||||
Platform Info:
|
||||
OS: Linux (x86_64-pc-linux-gnu)
|
||||
CPU: Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz
|
||||
WORD_SIZE: 64
|
||||
LIBM: libopenlibm
|
||||
LLVM: libLLVM-8.0.1 (ORCJIT, broadwell)
|
||||
Environment:
|
||||
JULIA_PKG_SERVER = https://{{ site.hostname }}/julia
|
||||
```
|
||||
|
||||
若不设置该环境变量则默认使用官方服务器 `pkg.julialang.org` 作为上游。
|
||||
|
||||
### 临时使用
|
||||
|
||||
不同系统和命令行下设置环境变量的方式各不相同,在命令行下可以通过以下方式来临时修改环境变量
|
||||
|
||||
* Linux Bash: `export JULIA_PKG_SERVER=https://{{ site.hostname }}/julia`
|
||||
* Windows Powershell: `$env:JULIA_PKG_SERVER = 'https://{{ site.hostname }}/julia'`
|
||||
|
||||
也可以利用 JuliaCN 社区维护的中文本地化工具包 [JuliaZH](https://github.com/JuliaCN/JuliaZH.jl) 来进行切换:
|
||||
|
||||
```julia
|
||||
using JuliaZH # 在 using 时会自动切换到国内的镜像站
|
||||
JuliaZH.set_mirror("BFSU") # 也可以选择手动切换到 BFSU 镜像
|
||||
JuliaZH.mirrors # 查询记录的上游信息
|
||||
```
|
||||
|
||||
### 永久使用
|
||||
|
||||
不同系统和命令行下永久设定环境变量的方式也不相同,例如 Linux Bash 下可以通过修改 `~/.bashrc` 文件实现该目的:
|
||||
|
||||
```
|
||||
# ~/.bashrc
|
||||
export JULIA_PKG_SERVER=https://{{ site.hostname }}/julia
|
||||
```
|
||||
|
||||
此外,这里再提供一种针对 Julia 的全平台通用的方式:`$JULIA_DEPOT_PATH/config/startup.jl`
|
||||
( 默认为 `~/.julia/config/startup.jl` ) 文件定义了每次启动 Julia 时都会执行的命令,编辑该文件,添加以下内容即可:
|
||||
|
||||
```julia
|
||||
# ~/.julia/config/startup.jl
|
||||
ENV["JULIA_PKG_SERVER"] = "https://{{ site.hostname }}/julia"
|
||||
```
|
||||
|
||||
也可以选择使用 `JuliaZH` 来一键修改/创建 `startup.jl` 文件:
|
||||
|
||||
```julia
|
||||
# 以 BFSU 镜像站为例
|
||||
julia> JuliaZH.generate_startup("default")
|
||||
┌ Info: 添加 PkgServer
|
||||
│ 服务器地址 = "https://pkg.julialang.org"
|
||||
└ 配置文件 = "/root/.julia/config"
|
||||
|
||||
julia> JuliaZH.generate_startup("BFSU")
|
||||
┌ Info: 更新 PkgServer
|
||||
│ 原服务器地址 = "https://pkg.julialang.org"
|
||||
│ 新服务器地址 = "https://mirrors.bfsu.edu.cn/julia"
|
||||
└ 配置文件 = "/root/.julia/config"
|
||||
```
|
||||
|
||||
若要临时禁止,可以通过 `julia --startup-file=no` 来取消执行 `startup.jl` 文件。
|
||||
|
||||
|
||||
## 常见问题
|
||||
|
||||
### 为什么有些包的下载还是很慢?
|
||||
|
||||
有两类数据不会被镜像:
|
||||
|
||||
* 在 `deps/build.jl` 文件中硬编码的下载地址,例如 [GR](https://github.com/jheinen/GR.jl/blob/70f025d5cb439d036409f1985107cb5e1615097f/deps/build.jl#L116).
|
||||
* 在 `Artifacts.toml` 中没有给出 `download` 项的资源, 例如 [TestImages](https://github.com/JuliaImages/TestImages.jl/blob/eaa94348df619c65956e8cfb0032ecddb7a29d3a/Artifacts.toml).
|
||||
|
||||
在安装包含这两类数据的包时,其数据依然是从原始地址进行下载,因此若网络不稳定则可能会在 `build` 阶段报错。
|
||||
|
||||
### 为什么注册表还是从原地址下载?
|
||||
|
||||
Julia `v1.4.0` 之前的版本采用的是 `git clone` 的方式拉取注册表。为了保持兼容性,如果现有的注册表是一个完整的 git 仓库的话,
|
||||
那么即使设置了 PkgServer 作为上游镜像也依然会通过 `git` 来进行更新,换句话说,不会通过镜像站来下载注册表数据。
|
||||
|
||||
以默认注册表 `General` 为例,只需要手动将其重置到镜像站即可:
|
||||
|
||||
1. 删除当前注册表:`(@v1.4) pkg> registry rm General`
|
||||
2. 从镜像站下载/拉取注册表: `(@v1.4) pkg> registry add General` -- 将无法在旧 Julia 版本中更新注册表
|
||||
|
||||
### 为什么有些包还是从原地址下载?
|
||||
|
||||
镜像站只镜像注册表中记录的包,因此如果某些包是通过指定 URL 的方式来安装的话,那么该包的更新不会从镜像站进行下载。
|
||||
这常见于那些还未注册的包及其版本,例如:
|
||||
|
||||
```julia
|
||||
]add Flux#master
|
||||
]add https://github.com/FluxML/Flux.jl.git
|
||||
Pkg.add(PackageSpec(url="https://github.com/FluxML/Flux.jl.git"))
|
||||
```
|
||||
Loading…
Reference in New Issue