mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Remove local help pages enabled in mirrorz-help-ng
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
42a84152af
commit
9dd2f90e2d
|
|
@ -1,149 +0,0 @@
|
|||
---
|
||||
layout: help
|
||||
category: help
|
||||
mirrorid: AOSP
|
||||
---
|
||||
|
||||
## Android 镜像使用帮助
|
||||
|
||||
**注意: 本镜像是 AOSP 镜像,Android SDK因版权原因,我们不能提供镜像服务。**
|
||||
|
||||
**可访问 <https://cs.android.com> 或 <https://github.com/aosp-mirror> 在线搜索及浏览 AOSP 源码。**
|
||||
|
||||
参考 Google 教程 <https://source.android.com/setup/build/downloading>,
|
||||
将 `https://android.googlesource.com/` 全部使用 `https://{{ site.hostname }}/git/AOSP/` 代替即可。
|
||||
|
||||
由于使用 HTTPS 协议更安全,并且更便于我们灵活处理,所以强烈推荐使用 HTTPS 协议同步 AOSP 镜像。
|
||||
|
||||
**由于 AOSP 镜像造成CPU/内存负载过重,我们限制了并发数量,因此建议:**
|
||||
1. sync的时候并发数不宜太高,否则会出现 503 错误,即`-j`后面的数字不能太大,建议选择4。
|
||||
2. 请尽量选择流量较小时错峰同步。
|
||||
|
||||
## 过程摘录
|
||||
|
||||
(参考 <https://lug.ustc.edu.cn/wiki/mirrors/help/aosp> 编写)
|
||||
|
||||
下载 repo 工具:
|
||||
|
||||
```bash
|
||||
mkdir ~/bin
|
||||
PATH=~/bin:$PATH
|
||||
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
|
||||
chmod a+x ~/bin/repo
|
||||
```
|
||||
|
||||
或者使用tuna的[git-repo镜像]({{ site.url }}/help/git-repo/)
|
||||
|
||||
#### 使用每月更新的初始化包
|
||||
|
||||
由于首次同步需要下载约 80GB 数据,过程中任何网络故障都可能造成同步失败,我们强烈建议您使用初始化包进行初始化。
|
||||
|
||||
下载 <{{ site.url }}/aosp-monthly/aosp-latest.tar>,下载完成后记得根据 checksum.txt 的内容校验一下。
|
||||
|
||||
由于所有代码都是从隐藏的 `.repo` 目录中 checkout 出来的,所以我们只保留了 `.repo` 目录,下载后解压
|
||||
再 `repo sync` 一遍即可得到完整的目录。
|
||||
|
||||
使用方法如下:
|
||||
|
||||
```bash
|
||||
curl -OC - {{ site.url }}/aosp-monthly/aosp-latest.tar # 下载初始化包
|
||||
tar xf aosp-latest.tar
|
||||
cd AOSP # 解压得到的 AOSP 工程目录
|
||||
# 这时 ls 的话什么也看不到,因为只有一个隐藏的 .repo 目录
|
||||
repo sync # 正常同步一遍即可得到完整目录
|
||||
# 或 repo sync -l 仅checkout代码
|
||||
```
|
||||
|
||||
此后,每次只需运行 `repo sync` 即可保持同步。
|
||||
**我们强烈建议您保持每天同步,并尽量选择凌晨等低峰时间**
|
||||
|
||||
|
||||
#### 传统初始化方法
|
||||
|
||||
建立工作目录:
|
||||
|
||||
```
|
||||
mkdir WORKING_DIRECTORY
|
||||
cd WORKING_DIRECTORY
|
||||
```
|
||||
|
||||
初始化仓库:
|
||||
|
||||
```
|
||||
repo init -u https://{{ site.hostname }}/git/AOSP/platform/manifest
|
||||
```
|
||||
|
||||
**如果提示无法连接到 gerrit.googlesource.com,请参照[git-repo的帮助页面](/help/git-repo)的更新一节。**
|
||||
|
||||
如果需要某个特定的 Android 版本([列表](https://source.android.com/setup/start/build-numbers#source-code-tags-and-builds)):
|
||||
|
||||
```
|
||||
repo init -u https://{{ site.hostname }}/git/AOSP/platform/manifest -b android-4.0.1_r1
|
||||
```
|
||||
|
||||
同步源码树(以后只需执行这条命令来同步):
|
||||
|
||||
```
|
||||
repo sync
|
||||
```
|
||||
|
||||
|
||||
|
||||
### 建立次级镜像
|
||||
|
||||
由于 AOSP 镜像需求量巨大,且 Git 服务占资源较多,TUNA 服务器因 AOSP 产生的负载已经占主要部分。
|
||||
如果你是团队用户,我们强烈建议你通过 TUNA 建立次级镜像,再分享给团队内其他用户,减轻 TUNA 服务器压力。
|
||||
建立 AOSP 镜像需要占用约 2.5TB 磁盘。
|
||||
|
||||
具体步骤为:
|
||||
|
||||
下载 `repo` 工具和建立工作目录(略)
|
||||
|
||||
初始化:
|
||||
|
||||
```
|
||||
repo init -u https://{{ site.hostname }}/git/AOSP/mirror/manifest --mirror
|
||||
```
|
||||
|
||||
最后同步源码树:
|
||||
|
||||
```
|
||||
repo sync
|
||||
```
|
||||
|
||||
同步完成后,运行 `git daemon --verbose --export-all --base-path=WORKING_DIR WORKING_DIR` (`WORKING_DIR`为代码树所在目录) 。
|
||||
|
||||
此后,其他用户使用 `git://ip.to.mirror/` 作为镜像即可。
|
||||
|
||||
### 替换已有的 AOSP 源代码的 remote
|
||||
|
||||
如果你之前已经通过某种途径获得了 AOSP 的源码(或者你只是 init 这一步完成后),
|
||||
你希望以后通过 TUNA 同步 AOSP 部分的代码,只需要修改 `.repo/manifests.git/config`,将
|
||||
|
||||
```
|
||||
url = https://android.googlesource.com/platform/manifest
|
||||
```
|
||||
|
||||
更改为
|
||||
|
||||
```
|
||||
url = https://{{ site.hostname }}/git/AOSP/platform/manifest
|
||||
```
|
||||
|
||||
或者可以不修改文件,而执行
|
||||
|
||||
```
|
||||
git config --global url.https://{{ site.hostname }}/git/AOSP/.insteadof https://android.googlesource.com
|
||||
```
|
||||
|
||||
### FAQ
|
||||
|
||||
1. 镜像的是什么?
|
||||
- AOSP 的 git 仓库
|
||||
2. 为何不能通过浏览器访问?
|
||||
- 暂时没有 gitweb, 而且反正是 git bare 仓库,没有可以直接看到的内容。
|
||||
- 建议访问 <https://cs.android.com> 或 <https://github.com/aosp-mirror> 在线搜索及浏览 AOSP 源码。
|
||||
3. 出现 `curl: (22) The requested URL returned error: 404 Not Found
|
||||
Server does not provide clone.bundle; ignoring.` 怎么办?
|
||||
- 无视即可。
|
||||
- 参见:<https://github.com/tuna/issues/issues/936>
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
layout: help
|
||||
category: help
|
||||
mirrorid: CocoaPods
|
||||
---
|
||||
|
||||
## CocoaPods 镜像使用帮助
|
||||
|
||||
CocoaPods 是一个 Cocoa 和 Cocoa Touch 框架的依赖管理器,具体原理和 Homebrew 有点类似,都是从 GitHub 下载索引,然后根据索引下载依赖的源代码。
|
||||
|
||||
对于旧版的 CocoaPods 可以使用如下方法使用 tuna 的镜像:
|
||||
|
||||
```
|
||||
$ pod repo remove master
|
||||
$ pod repo add master https://{{ site.hostname }}/git/CocoaPods/Specs.git
|
||||
$ pod repo update
|
||||
```
|
||||
|
||||
新版的 CocoaPods 不允许用`pod repo add`直接添加master库了,但是依然可以:
|
||||
|
||||
```
|
||||
$ cd ~/.cocoapods/repos
|
||||
$ pod repo remove master
|
||||
$ git clone https://{{ site.hostname }}/git/CocoaPods/Specs.git master
|
||||
```
|
||||
|
||||
最后进入自己的工程,在自己工程的`podFile`第一行加上:
|
||||
|
||||
```
|
||||
source 'https://{{ site.hostname }}/git/CocoaPods/Specs.git'
|
||||
```
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: cygwin
|
||||
---
|
||||
|
||||
Cygwin 镜像使用帮助
|
||||
==================
|
||||
|
||||
从 <https://cygwin.com> 上下载 [setup-x86.exe](https://cygwin.com/setup-x86.exe) 或 [setup-x86_64.exe](https://cygwin.com/setup-x86_64.exe)。
|
||||
|
||||
选择`Install from Internet`, 在"User URL"处输入以下地址:
|
||||
|
||||
```
|
||||
https://{{ site.hostname }}/cygwin/
|
||||
```
|
||||
|
||||
点击"Add"按钮, 然后选中"https://{{ site.hostname }}", 点击"下一步"进行安装。
|
||||
|
||||
注意,该列表为可多选列表,注意把上面不需要的镜像点掉。
|
||||
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: elpa
|
||||
---
|
||||
|
||||
ELPA 镜像使用帮助
|
||||
==================
|
||||
|
||||
ELPA 是 Emacs 内建包管理器 `package.el` 的软件源,本镜像支持了常见的 ELPA。
|
||||
|
||||
| ELPA | 镜像地址 |
|
||||
|-------------------|---------------------------------------------|
|
||||
| [GNU ELPA](http://elpa.gnu.org/) | http://{{ site.hostname }}/elpa/gnu/ |
|
||||
| [NonGNU ELPA](http://elpa.nongnu.org/) | http://{{ site.hostname }}/elpa/nongnu/ |
|
||||
| [GNU ELPA Devel](http://elpa.gnu.org/devel/) | http://{{ site.hostname }}/elpa/gnu-devel/ |
|
||||
| [NonGNU ELPA Devel](https://elpa.nongnu.org/nongnu-devel/) | http://{{ site.hostname }}/elpa/nongnu-devel/ |
|
||||
| [MELPA](https://melpa.org/) | http://{{ site.hostname }}/elpa/melpa/ |
|
||||
| [MELPA Stable](http://stable.melpa.org/#/) | http://{{ site.hostname }}/elpa/stable-melpa/ |
|
||||
| [Org](http://orgmode.org/elpa.html) | http://{{ site.hostname }}/elpa/org/ |
|
||||
|
||||
|
||||
根据你的需求,设置 package-archives ,比如用 GNU ELPA 和 MELPA:
|
||||
|
||||
```lisp
|
||||
(setq package-archives '(("gnu" . "http://{{ site.hostname }}/elpa/gnu/")
|
||||
("nongnu" . "http://{{ site.hostname }}/elpa/nongnu/")
|
||||
("melpa" . "http://{{ site.hostname }}/elpa/melpa/")))
|
||||
(package-initialize) ;; You might already have this line
|
||||
```
|
||||
|
||||
|
||||
Spacemacs 用户
|
||||
--------------
|
||||
|
||||
### master 分支
|
||||
|
||||
添加下面的代码到`.spacemacs`的`dotspacemacs/user-init()`
|
||||
|
||||
```lisp
|
||||
(setq configuration-layer--elpa-archives
|
||||
'(("melpa-cn" . "http://{{ site.hostname }}/elpa/melpa/")
|
||||
("org-cn" . "http://{{ site.hostname }}/elpa/org/")
|
||||
("gnu-cn" . "http://{{ site.hostname }}/elpa/gnu/")))
|
||||
```
|
||||
### develop 分支
|
||||
|
||||
使用 `configuration-layer-elpa-archives` 代替原来的 `configuration-layer--elpa-archives` ( `--` 换成 `-` )
|
||||
|
||||
```lisp
|
||||
(setq configuration-layer-elpa-archives
|
||||
'(("melpa-cn" . "http://{{ site.hostname }}/elpa/melpa/")
|
||||
("org-cn" . "http://{{ site.hostname }}/elpa/org/")
|
||||
("gnu-cn" . "http://{{ site.hostname }}/elpa/gnu/")))
|
||||
```
|
||||
|
||||
Cask 用户
|
||||
---------
|
||||
|
||||
[Cask](https://github.com/cask/cask) 是一个 Emacs Lisp 的项目管理工具。这里还是以 GNU ELPA 和 MELPA 为例,在添加下面的代码到 Cask
|
||||
|
||||
```lisp
|
||||
(source "gnu" "http://{{ site.hostname }}/elpa/gnu/")
|
||||
(source "melpa" "http://{{ site.hostname }}/elpa/melpa/")
|
||||
```
|
||||
|
||||
关于 ELPA 的选择
|
||||
----------------
|
||||
|
||||
(来自[@xuchunyang](https://github.com/xuchunyang))
|
||||
|
||||
假如不清楚需要用哪些 ELPA 的话
|
||||
|
||||
- `gnu` 一般是必备的,其它的 elpa 中的包会依赖 `gnu` 中的包
|
||||
- `nongnu` 建议启用,类似于 `melpa` 但是 Emacs 官方维护的
|
||||
- `melpa` 滚动升级,收录了的包的数量最大
|
||||
- `stable-melpa` 依据源码的 Tag (Git)升级,数量比 `melpa` 少,因为很多包作者根本不打 Tag
|
||||
- `org` 仅仅为了 `org-plus-contrib` 这一个包,org 重度用户使用
|
||||
- `gnu-devel` 收录 `gnu` 中的包的开发中版本,一般不必启用(与 `gnu` 的关系类似于 `melpa` 与 `stable-melpa` 的关系)
|
||||
- `nongnu-devel` 收录 `nongnu` 中的包的开发中版本,一般不必启用
|
||||
|
||||
上游
|
||||
====
|
||||
|
||||
本文档参考了 <http://elpa.emacs-china.org/> 提供的帮助。
|
||||
|
||||
URL Bug
|
||||
=======
|
||||
|
||||
各个仓库的URL末尾一定要加`/`,否则会无法拉取,提示`Failed to download melpa archive`。
|
||||
|
||||
事实上,末尾没有`/`的话,emacs会去尝试取以下链接:
|
||||
|
||||
- <http://{{ site.hostname }}/elpa/melpaarchive-contents>
|
||||
|
||||
而正常的链接应该是
|
||||
|
||||
- <http://{{ site.hostname }}/elpa/melpa/archive-contents>
|
||||
|
||||
这个是emacs自己的bug。在 <https://github.com/melpa/melpa/issues/2139> 中有描述。
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: git-repo
|
||||
---
|
||||
|
||||
## Git Repo 镜像使用帮助
|
||||
|
||||
> Repo is a tool that we built on top of Git. Repo helps us manage the many Git repositories, does the uploads to our revision control system, and automates parts of the Android development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path.
|
||||
|
||||
当前repo主要用于同步AOSP、chromium及chromium OS。
|
||||
|
||||
### 下载
|
||||
|
||||
```
|
||||
curl https://{{ site.hostname }}/git/git-repo -o repo
|
||||
chmod +x repo
|
||||
```
|
||||
|
||||
为了方便可以将其拷贝到你的`PATH`里。
|
||||
|
||||
### 更新
|
||||
|
||||
repo的运行过程中会尝试访问官方的git源更新自己,如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的`~/.bashrc`里
|
||||
|
||||
```
|
||||
export REPO_URL='https://{{ site.hostname }}/git/git-repo'
|
||||
```
|
||||
|
||||
并重启终端模拟器。
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: hackage
|
||||
---
|
||||
|
||||
# hackage 镜像使用帮助
|
||||
|
||||
## 在`cabal`中初次使用
|
||||
|
||||
先执行
|
||||
|
||||
```
|
||||
cabal update
|
||||
```
|
||||
|
||||
待生成`~/.cabal/config`配置文件之后`Ctrl+C`, 然后进行下一步。(注:在 Windows 平台上的配置文件是 `%APPDATA%\cabal\config`)
|
||||
|
||||
### Cabal ≥ 1.2.4 (GHC 8.0)
|
||||
|
||||
修改 `~/.cabal/config`,加入
|
||||
|
||||
```
|
||||
repository {{ site.hostname }}
|
||||
url: http://{{ site.hostname }}/hackage
|
||||
secure: True
|
||||
```
|
||||
|
||||
为了访问速度,可以选择把官方仓库注释掉:
|
||||
|
||||
```
|
||||
repository hackage.haskell.org
|
||||
url: http://hackage.haskell.org/
|
||||
-- secure: False
|
||||
-- root-keys:
|
||||
-- key-threshold:
|
||||
```
|
||||
|
||||
### Cabal < 1.2.4
|
||||
|
||||
修改`~/.cabal/config`, 将此行
|
||||
|
||||
```
|
||||
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
|
||||
```
|
||||
注释掉,改为
|
||||
|
||||
```
|
||||
remote-repo: {{ site.hostname }}:http://{{ site.hostname }}/hackage
|
||||
-- remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
|
||||
```
|
||||
|
||||
注意,此处的注释是两条短线`--`.
|
||||
|
||||
再执行`cabal update`, 即可使用`cabal`安装包了。
|
||||
|
||||
## 在 [`stack`](https://github.com/commercialhaskell/stack) 中使用
|
||||
|
||||
本镜像推荐与 TUNA 的 [Stackage 镜像](https://{{ site.hostname }}/help/stackage/)配合使用。
|
||||
|
||||
### stack >= v2.1.1
|
||||
|
||||
修改`~/.stack/config.yaml`, 加上:
|
||||
|
||||
```yaml
|
||||
package-indices:
|
||||
- download-prefix: http://{{ site.hostname }}/hackage/
|
||||
hackage-security:
|
||||
keyids:
|
||||
- 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d
|
||||
- 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42
|
||||
- 280b10153a522681163658cb49f632cde3f38d768b736ddbc901d99a1a772833
|
||||
- 2a96b1889dc221c17296fcc2bb34b908ca9734376f0f361660200935916ef201
|
||||
- 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3
|
||||
- 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921
|
||||
- 772e9f4c7db33d251d5c6e357199c819e569d130857dc225549b40845ff0890d
|
||||
- aa315286e6ad281ad61182235533c41e806e5a787e0b6d1e7eef3f09d137d2e9
|
||||
- fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0
|
||||
key-threshold: 3 # number of keys required
|
||||
|
||||
# ignore expiration date, see https://github.com/commercialhaskell/stack/pull/4614
|
||||
ignore-expiry: no
|
||||
```
|
||||
|
||||
### stack < v2.1.1
|
||||
|
||||
修改`~/.stack/config.yaml`, 加上:
|
||||
|
||||
```yaml
|
||||
package-indices:
|
||||
- name: Tsinghua
|
||||
download-prefix: http://{{ site.hostname }}/hackage/package/
|
||||
http: http://{{ site.hostname }}/hackage/00-index.tar.gz
|
||||
```
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: nodejs-release
|
||||
---
|
||||
|
||||
## Nodejs Release 镜像使用帮助
|
||||
|
||||
Nodejs Release 为各平台提供预编译的 nodejs 和 npm 等二进制文件,是
|
||||
[https://nodejs.org/dist/](https://nodejs.org/dist/) 的镜像。
|
||||
|
||||
### 使用方法
|
||||
|
||||
可以手工选择下载所需的版本,也可以搭配 `n` 或者 `fnm` 等版本管理器使用,方法如下:
|
||||
|
||||
#### n
|
||||
```
|
||||
# 设定环境变量
|
||||
|
||||
export NODE_MIRROR=https://{{ site.hostname }}/nodejs-release/
|
||||
|
||||
# 然后正常使用 n 即可
|
||||
|
||||
sudo n stable
|
||||
```
|
||||
|
||||
#### fnm
|
||||
```
|
||||
# 设定环境变量
|
||||
|
||||
export FNM_NODE_DIST_MIRROR=https://{{ site.hostname }}/nodejs-release/
|
||||
|
||||
# 然后正常使用 fnm 即可
|
||||
|
||||
fnm install <version>
|
||||
```
|
||||
|
||||
#### volta
|
||||
|
||||
创建或编辑 `~/.volta/hooks.json` (Linux/MacOS),或 `%LOCALAPPDATA%\Volta\hooks.json` (Windows),将内容替换如下
|
||||
|
||||
```
|
||||
{
|
||||
"node": {
|
||||
"index": {
|
||||
"template": "https://{{ site.hostname }}/nodejs-release/index.json"
|
||||
},
|
||||
"distro": {
|
||||
"template": "https://{{ site.hostname }}/nodejs-release/v{% raw %}{{version}}/node-v{{version}}-{{os}}-{{arch}}{% endraw %}.tar.gz"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
之后即可正常使用 `volta`
|
||||
|
||||
```
|
||||
volta install node@<version>
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: termux
|
||||
---
|
||||
|
||||
Termux 镜像使用帮助
|
||||
===================
|
||||
|
||||
Termux 是什么
|
||||
-------------
|
||||
|
||||
> Termux is a terminal emulator and Linux environment bringing powerful terminal access to Android.
|
||||
|
||||
Termux 是运行在 Android 上的 terminal。不需要root,运行于内部存储(不在SD卡上)。
|
||||
|
||||
自带了一个包管理器,可以安装许多现代化的开发和系统维护工具。比如:
|
||||
|
||||
* neovim
|
||||
* tmux
|
||||
* zsh
|
||||
* clang
|
||||
* gcc
|
||||
* weechat
|
||||
* irssi
|
||||
* ...
|
||||
|
||||
如何使用 Termux 镜像
|
||||
------------------
|
||||
|
||||
### 图形界面(TUI)替换
|
||||
|
||||
在较新版的 Termux 中,官方提供了图形界面(TUI)来半自动替换镜像,推荐使用该种方式以规避其他风险。
|
||||
在 Termux 中执行如下命令
|
||||
|
||||
```bash
|
||||
termux-change-repo
|
||||
```
|
||||
|
||||
在图形界面引导下,使用自带方向键可上下移动。
|
||||
第一步使用空格选择需要更换的仓库,之后在第二步选择 TUNA/BFSU 镜像源。确认无误后回车,镜像源会自动完成更换。
|
||||
|
||||
### 命令行替换
|
||||
|
||||
使用如下命令行替换官方源为 TUNA 镜像源
|
||||
|
||||
``` bash
|
||||
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://{{ site.hostname }}/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
|
||||
apt update && apt upgrade
|
||||
```
|
||||
|
||||
### 手动修改
|
||||
|
||||
编辑 `$PREFIX/etc/apt/sources.list` 修改为如下内容
|
||||
|
||||
```
|
||||
# The termux repository mirror from TUNA:
|
||||
deb https://{{ site.hostname }}/termux/apt/termux-main stable main
|
||||
```
|
||||
|
||||
请使用内置或安装在 Termux 里的文本编辑器,例如 `vi` / `vim` / `nano` 等,**不要使用 RE 管理器等其他具有 ROOT 权限的外部 APP** 来修改 Termux 的文件
|
||||
|
||||
### 社区源
|
||||
|
||||
镜像站还提供了如下社区维护的源,如需使用请自行添加:
|
||||
|
||||
- https://{{ site.hostname }}/termux/apt/termux-x11
|
||||
- https://{{ site.hostname }}/termux/apt/termux-root
|
||||
|
||||
|
||||
### 警告
|
||||
|
||||
镜像仅适用于 Android 7.0 (API 24) 及以上版本,旧版本系统使用本镜像可能导致程序错误。
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: alpine
|
||||
---
|
||||
|
||||
Alpine 镜像使用帮助
|
||||
===================
|
||||
|
||||
> Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
|
||||
|
||||
Alpine Linux 是一个面向安全,轻量级的基于musl libc与busybox项目的Linux发行版。
|
||||
|
||||
在终端输入以下命令以替换TUNA镜像源:
|
||||
```
|
||||
sed -i 's/dl-cdn.alpinelinux.org/{{ site.hostname }}/g' /etc/apk/repositories
|
||||
```
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: CTAN
|
||||
---
|
||||
|
||||
CTAN 镜像使用帮助
|
||||
=================
|
||||
|
||||
CTAN (The Comprehensive TeX Archive Network) 是所有 TeX 排版系统相关材料的汇集地,收录了编译引擎、宏包及字体等的源代码与说明文档。目前,绝大多数 LaTeX 宏包会被上传至 CTAN 核心站点,随后同步到遍布全球的各个镜像。
|
||||
|
||||
- CTAN 主页:<https://www.ctan.org/>
|
||||
- TUNA 镜像:<https://{{ site.hostname }}/CTAN/>
|
||||
|
||||
本文提供了 TeX Live 和 MiKTeX 两大主要发行版的镜像配置方法。
|
||||
|
||||
### TeX Live
|
||||
|
||||
TeX Live 是目前使用最为广泛的 TeX 发行版,支持 Windows、Linux 和 macOS。其中,在 macOS 上发行的版本称为 MacTeX。
|
||||
|
||||
#### 安装
|
||||
|
||||
TeX Live 发行版的常见安装方法可以参考[此文档](https://{{ site.hostname }}/CTAN/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf)。
|
||||
|
||||
除每年更新的完整版 ISO 镜像以外,CTAN 镜像中也包含在线安装器。这种方法可以使安装的所有宏包均为最新版本,但受网络连接状况影响较大。操作方法为(*很可能需要管理员权限*):
|
||||
|
||||
1. 下载 [`install-tl.zip`](https://{{ site.hostname }}/CTAN/systems/texlive/tlnet/install-tl.zip) 并解压缩
|
||||
1. Windows 下双击运行其中的 `install-tl.bat`。如果有图形化界面,可以在进入安装器前的右下角按钮指定使用镜像源。
|
||||
|
||||
Linux 下使用如下命令:
|
||||
|
||||
```
|
||||
perl install-tl --repository https://{{ site.hostname }}/CTAN/systems/texlive/tlnet
|
||||
```
|
||||
|
||||
#### 切换镜像
|
||||
|
||||
TeX Live 使用的 CTAN 镜像源可以从内置的包管理器 `tlmgr` 更改(*很可能需要管理员权限*)。
|
||||
|
||||
在命令行中执行
|
||||
|
||||
```
|
||||
tlmgr option repository https://{{ site.hostname }}/CTAN/systems/texlive/tlnet
|
||||
```
|
||||
|
||||
即可永久更改镜像源。
|
||||
|
||||
如果只需要临时切换,可以用如下命令:
|
||||
|
||||
```
|
||||
tlmgr update --all --repository https://{{ site.hostname }}/CTAN/systems/texlive/tlnet
|
||||
```
|
||||
|
||||
其中的 `update --all` 指令可根据需要修改。
|
||||
|
||||
### MiKTeX
|
||||
|
||||
MiKTeX 发行版的特点在于仅安装用户需要的宏包,节省了磁盘空间占用,但在部分实现细节上与 TeX Live 有所出入。该发行版支持 Windows、Linux 和 macOS。
|
||||
|
||||
#### 安装
|
||||
|
||||
MiKTeX 仅提供 Windows 和 macOS 的独立安装包,前往 TeX 排版系统下载页即可。在 Linux 下的安装请参考[官方文档](https://miktex.org/howto/install-miktex-unx)。
|
||||
|
||||
#### 切换镜像
|
||||
|
||||
MiKTeX 使用的 CTAN 镜像源可以从内置的 MiKTeX Console 图形化应用程序进行切换,也可以使用如下命令:
|
||||
|
||||
```
|
||||
mpm --set-repository=https://{{ site.hostname }}/CTAN/systems/win32/miktex/tm/packages/
|
||||
```
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: gentoo-portage
|
||||
---
|
||||
|
||||
## [Gentoo Linux](https://www.gentoo.org/) 的镜像配置方法如下:
|
||||
|
||||
### Gentoo Portage 镜像配置:
|
||||
|
||||
#### `rsync` 方式
|
||||
|
||||
修改 `/etc/portage/repos.conf/gentoo.conf` ,将
|
||||
|
||||
```
|
||||
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
|
||||
```
|
||||
|
||||
修改为
|
||||
|
||||
```
|
||||
sync-uri = rsync://{{ site.hostname }}/gentoo-portage
|
||||
```
|
||||
|
||||
#### `git` 方式
|
||||
|
||||
第一次使用 `git` 同步方式的用户需要进行如下操作:
|
||||
|
||||
- 修改 `/etc/portage/repos.conf/gentoo.conf`
|
||||
- 将 `sync-type` 改为 `git`
|
||||
- 将 `sync-uri` 改为 `https://{{ site.hostname }}/git/gentoo-portage.git`
|
||||
- 删除 `/var/db/repos/gentoo`
|
||||
- 执行 `emerge --sync`
|
||||
|
||||
已经配置 `git` 同步的用户只需:
|
||||
|
||||
- 修改 `/etc/portage/repos.conf/gentoo.conf`
|
||||
- 将 `sync-uri` 改为 `https://{{ site.hostname }}/git/gentoo-portage.git`
|
||||
- 于 `/var/db/repos/gentoo` 下,执行 `git remote set-url origin https://{{ site.hostname }}/git/gentoo-portage.git`
|
||||
- 执行 `emerge --sync`
|
||||
|
||||
### Distfiles 配置:
|
||||
|
||||
在 `/etc/portage/make.conf` 中加入:
|
||||
|
||||
```
|
||||
GENTOO_MIRRORS="https://{{ site.hostname }}/gentoo"
|
||||
```
|
||||
|
||||
配置好以上两项后,执行 `emerge --sync` 进行更新。
|
||||
|
||||
### Gentoo Prefix Bootstrap 镜像配置:
|
||||
|
||||
在运行 Bootstrap 脚本之前,可通过设置以下环境变量选择 Bootstrap 过程中使用的镜像。
|
||||
|
||||
```
|
||||
export GENTOO_MIRRORS="http://{{ site.hostname }}/gentoo"
|
||||
export GNU_URL="http://{{ site.hostname }}/gnu"
|
||||
export SNAPSHOT_URL="http://{{ site.hostname }}/gentoo/snapshots"
|
||||
```
|
||||
|
||||
Bootstrap 成功后,若对 Gentoo Portage 和 Distfiles 换源,可参照以上几节,只需将 `/etc` 换成 `$EPREFIX/etc`
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: flutter
|
||||
---
|
||||
|
||||
# Flutter 镜像安装帮助
|
||||
|
||||
Flutter 是 Google 开源的 UI 工具包,帮助开发者通过一套代码库高效构建多平台精美应用,支持移动、Web、桌面和嵌入式平台。
|
||||
|
||||
获取最新稳定版 Flutter SDK 安装包可从 [镜像站下载](https://{{ site.hostname }}/flutter/flutter_infra/releases/stable/)。
|
||||
|
||||
Flutter 开发依赖于 [SDK 的升级](https://flutter.cn/docs/development/tools/sdk/upgrading) 和 [Dart Package 生态](https://pub.flutter-io.cn/),
|
||||
因此,如果您的网络访问 Google 受阻,需要将您开发设备的如下两个环境变量设置指向 TUNA 镜像站:
|
||||
- `PUB_HOSTED_URL`
|
||||
- `FLUTTER_STORAGE_BASE_URL`
|
||||
|
||||
设定方式如下:
|
||||
|
||||
```bash
|
||||
export FLUTTER_STORAGE_BASE_URL="https://{{ site.hostname }}/flutter"
|
||||
export PUB_HOSTED_URL="https://{{ site.hostname }}/dart-pub"
|
||||
```
|
||||
|
||||
若希望长期使用 TUNA 镜像:
|
||||
|
||||
```bash
|
||||
echo 'export FLUTTER_STORAGE_BASE_URL="https://{{ site.hostname }}/flutter"' >> ~/.bashrc
|
||||
echo 'export PUB_HOSTED_URL="https://{{ site.hostname }}/dart-pub"' >> ~/.bashrc
|
||||
```
|
||||
|
||||
在编译android项目时,flutter还会从 https://storage.googleapis.com/download.flutter.io 下载Java程序库,您可以在 Android 项目目录下的 build.gradle 中添加下面一行下载源,从而使用TUNA镜像。
|
||||
|
||||
```
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven { url 'https://{{ site.hostname }}/flutter/download.flutter.io' }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Flutter SDK 的更新会从 Github 获取,如您的开发设备访问 Github 速度慢,可以在 **开发设备的 Flutter SDK 目录** 运行下面的命令,将 Git 上游设置为 TUNA 镜像:
|
||||
|
||||
```
|
||||
git remote set-url origin https://{{ site.hostname }}/git/flutter-sdk.git
|
||||
```
|
||||
|
||||
或者通过下面的命令,直接从 Master 构建渠道检出 Flutter 的 SDK:
|
||||
|
||||
```
|
||||
git clone -b master https://{{ site.hostname }}/git/flutter-sdk.git
|
||||
./flutter-sdk/bin/flutter --version
|
||||
```
|
||||
|
||||
您也可以替换上述代码中 `git clone -b` 之后的 `master` 为 `beta` 获取 Beta 渠道的构建、替换为 `dev` 获取 Dev 渠道的构建。
|
||||
稳定版的构建可以通过修改 `master` 为 `stable` 获得,也可以帮助文档最上方提到的,通过 [镜像站直接下载](https://{{ site.hostname }}/flutter/flutter_infra/releases/stable/)。
|
||||
|
||||
如果您想单独设定 Dart 语言的包管理器 Pub,其镜像使用方法参见 [Pub 镜像安装帮助](../dart-pub/)。
|
||||
|
||||
更多 Flutter 资源和中文文档,
|
||||
请访问 [Flutter 中文资源网站 (flutter.cn)](https://flutter.cn) 和 [Dart 中文文档网站 (dart.cn)](https://dart.cn/)。
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: gentoo-portage-prefix
|
||||
---
|
||||
|
||||
**注意:Gentoo Prefix Portage tree 已合并进 gentoo.git。如果您是 Linux 用户,请使用 `gentoo-portage` rsync 或 git 镜像。此 repo 专为 macOS 下 prefix 用户而设。**
|
||||
|
||||
## [Gentoo Prefix](https://wiki.gentoo.org/wiki/Project:Prefix) macOS 的镜像配置方法如下:
|
||||
|
||||
### Bootstrap 镜像配置:
|
||||
|
||||
在运行 Bootstrap 脚本之前,可通过设置以下环境变量选择 Bootstrap 过程中使用的镜像。
|
||||
|
||||
```
|
||||
export GENTOO_MIRRORS="http://{{ site.hostname }}/gentoo"
|
||||
export GNU_URL="http://{{ site.hostname }}/gnu"
|
||||
export SNAPSHOT_URL="http://{{ site.hostname }}/gentoo/snapshots"
|
||||
```
|
||||
|
||||
### Gentoo Portage Prefix 镜像配置:
|
||||
|
||||
在 `$EPREFIX/etc/portage` 目录下创建名为 `repos.conf` 的目录,在 `$EPREFIX/etc/portage/repos.conf/gentoo.conf` 中加入如下内容:
|
||||
|
||||
```
|
||||
[gentoo_prefix]
|
||||
sync-uri = rsync://{{ site.hostname }}/gentoo-portage-prefix
|
||||
```
|
||||
|
||||
### Distfiles 配置:
|
||||
|
||||
这部分与在 Gentoo Linux 中配置无异,在 `$EPREFIX/etc/portage/make.conf` 中加入:
|
||||
|
||||
```
|
||||
GENTOO_MIRRORS="https://{{ site.hostname }}/gentoo"
|
||||
```
|
||||
|
||||
配置好以上两项以后,执行 `emerge --sync` 或者 `eix-sync` 进行更新。
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: gentoo-portage.git
|
||||
redirect_help_id: gentoo-portage
|
||||
---
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: julia-releases
|
||||
---
|
||||
|
||||
## Julia 二进制安装程序
|
||||
|
||||
Julia 是一个全新的以科学计算为核心的通用编程语言,其二进制程序可以到 <{{ site.url }}/julia-releases/bin/> 下载。
|
||||
|
||||
这里仅镜像 [JuliaLang Downloads](https://julialang.org/downloads/) 中提供的稳定发行版以及 rc 版本。每日构建的测试版 (nightlies) 以及
|
||||
[Juno](http://junolab.org/)/[Julia Pro](https://juliacomputing.com/products/juliapro)等 IDE 版本不包括在内。
|
||||
|
||||
尽管一些包管理工具(例如 `apt`, `pacman`, `conda`, `choco`) 中提供有 Julia,但是这些工具或多或少都存在一些由二进制
|
||||
依赖导致的问题,因此官方推荐的方式是根据自己的使用平台下载相应的二进制程序,然后通过解压的方式进行手动安装。
|
||||
|
||||
## Julia 一键安装
|
||||
|
||||
对于习惯命令行的用户而言,[jill.py](https://github.com/johnnychen94/jill.py) 是一个社区维护的全平台下一键安装
|
||||
Julia 的命令行工具。
|
||||
|
||||
安装/更新 `jill`: `pip install jill --user -U` (需要 Python `3.6` 或更新的版本)
|
||||
|
||||
* 安装 Julia:`jill install [VERSION] [--upstream UPSTREAM] [--confirm]`
|
||||
* `jill install`:最新的 `x.y.z` 版本
|
||||
* `jill install --confirm`:无需交互确认直接安装
|
||||
* `jill install --upstream BFSU`:从北外镜像下载并安装
|
||||
* `jill install 1.4`:安装最新的 `1.4.z` 版本
|
||||
* 查询现存的上游镜像:`jill upstream`
|
||||
* 帮助文档:`jill [COMMAND] --help`
|
||||
* `jill --help`:查询存在的 `jill` 命令
|
||||
* `jill install --help`:查询 `install` 命令的使用方式
|
||||
|
||||
利用 `jill` 安装完成后即可通过在命令行执行 `julia`/`julia-1`/`julia-1.4` 来启动不同版本的 Julia.
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: CPAN
|
||||
---
|
||||
|
||||
CPAN 镜像使用帮助
|
||||
===================
|
||||
|
||||
[CPAN](https://www.cpan.org/) (The Comprehensive Perl Archive Network) 镜像源的配置文件为 `MyConfig.pm`(一般位于 `~/.cpan/CPAN/MyConfig.pm`),可使用包管理脚本 `cpan` 进行修改。
|
||||
|
||||
### 初次使用
|
||||
|
||||
如果 `MyConfig.pm` 配置文件不存在,在命令行中执行:
|
||||
|
||||
```bash
|
||||
# 自动生成 MyConfig.pm
|
||||
## 对于 Perl 5.36 (或 CPAN 2.29)及以上,使用如下命令
|
||||
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::HandleConfig->edit("pushy_https", 0); CPAN::HandleConfig->edit("urllist", "unshift", "https://{{ site.hostname }}/CPAN/"); mkmyconfig'
|
||||
## 对于较久版本,使用如下命令
|
||||
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::HandleConfig->edit("urllist", "unshift", "https://{{ site.hostname }}/CPAN/"); mkmyconfig'
|
||||
|
||||
# 或不使用默认配置,手动确认各个配置选项
|
||||
perl -MCPAN -e 'mkmyconfig'
|
||||
```
|
||||
|
||||
### 已有配置
|
||||
|
||||
#### 在 CPAN Shell 中手动设置镜像
|
||||
|
||||
在命令行中执行 `cpan` 进入 cpan shell:
|
||||
|
||||
```shell
|
||||
cpan shell -- CPAN exploration and modules installation
|
||||
Enter 'h' for help.
|
||||
|
||||
# 列出当前的镜像设置
|
||||
cpan[1]> o conf urllist
|
||||
|
||||
# 将本站镜像加入镜像列表首位
|
||||
# 注:若已在列表中则可跳过本步直接退出,修改列表不会执行自动去重
|
||||
cpan[2]> o conf urllist unshift https://{{ site.hostname }}/CPAN/
|
||||
|
||||
# 或将本站镜像加入镜像列表末尾
|
||||
# 注:本命令和上面的命令执行一个即可,修改列表不会执行自动去重
|
||||
cpan[3]> o conf urllist push https://{{ site.hostname }}/CPAN/
|
||||
|
||||
# 或清空镜像列表,仅保留本站
|
||||
cpan[4]> o conf urllist https://{{ site.hostname }}/CPAN/
|
||||
|
||||
# Perl 5.36 及以上用户需要关闭 pushy_https 以使用镜像站
|
||||
cpan[5]> o conf pushy_https 0
|
||||
|
||||
# 保存修改后的配置至 MyConfig.pm
|
||||
cpan[6]> o conf commit
|
||||
|
||||
# 退出 cpan shell
|
||||
cpan[7]> quit
|
||||
```
|
||||
|
||||
#### 在命令行中使用脚本设置
|
||||
|
||||
在命令行中执行:
|
||||
|
||||
```bash
|
||||
# 若本站不在镜像列表中则将其加入列表首位
|
||||
if ! (
|
||||
perl -MCPAN -e 'CPAN::HandleConfig->load();' \
|
||||
-e 'CPAN::HandleConfig->prettyprint("urllist")' |
|
||||
grep -qF 'https://{{ site.hostname }}/CPAN/'
|
||||
); then
|
||||
perl -MCPAN -e 'CPAN::HandleConfig->load();' \
|
||||
-e 'CPAN::HandleConfig->edit("urllist", "unshift", "https://{{ site.hostname }}/CPAN/");' \
|
||||
-e 'CPAN::HandleConfig->commit()'
|
||||
fi
|
||||
|
||||
# Perl 5.36 及以上用户还需要关闭 pushy_https
|
||||
perl -MCPAN -e 'CPAN::HandleConfig->load();' \
|
||||
-e 'CPAN::HandleConfig->edit("pushy_https", 0);' \
|
||||
-e 'CPAN::HandleConfig->commit()'
|
||||
```
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: postmarketOS
|
||||
---
|
||||
|
||||
## postmarketOS 镜像使用帮助
|
||||
|
||||
### pmbootstrap
|
||||
|
||||
需要在每个 `pmbootstrap` 命令中都指定镜像
|
||||
|
||||
```console
|
||||
pmbootstrap --mirror-pmOS=http://{{ site.hostname }}/postmarketOS/ --mirror-alpine=http://{{ site.hostname }}/alpine/ init
|
||||
pmbootstrap --mirror-pmOS=http://{{ site.hostname }}/postmarketOS/ --mirror-alpine=http://{{ site.hostname }}/alpine/ install
|
||||
```
|
||||
|
||||
### 安装后的 postmarketOS
|
||||
|
||||
将 `/etc/apk/repositories` 替换为以下的内容
|
||||
|
||||
```
|
||||
http://{{ site.hostname }}/postmarketOS/master
|
||||
http://{{ site.hostname }}/alpine/edge/main
|
||||
http://{{ site.hostname }}/alpine/edge/community
|
||||
```
|
||||
|
||||
可以按照需要使用不同的 channel,例如 `postmarketOS/v21.12`,`alpine/v3.15/main`
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: rosdistro
|
||||
---
|
||||
|
||||
## rosdistro 镜像使用帮助
|
||||
|
||||
在 rosdep 使用流程中,我们会有如下两个步骤
|
||||
|
||||
```bash
|
||||
sudo rosdep init
|
||||
rosdep update
|
||||
```
|
||||
|
||||
我们替换为以下步骤
|
||||
|
||||
```bash
|
||||
# 手动模拟 rosdep init
|
||||
sudo mkdir -p /etc/ros/rosdep/sources.list.d/
|
||||
sudo curl -o /etc/ros/rosdep/sources.list.d/20-default.list https://{{ site.hostname }}/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
|
||||
# 为 rosdep update 换源
|
||||
export ROSDISTRO_INDEX_URL=https://{{ site.hostname }}/rosdistro/index-v4.yaml
|
||||
rosdep update
|
||||
|
||||
# 每次 rosdep update 之前,均需要增加该环境变量
|
||||
# 为了持久化该设定,可以将其写入 .bashrc 中,例如
|
||||
echo 'export ROSDISTRO_INDEX_URL=https://{{ site.hostname }}/rosdistro/index-v4.yaml' >> ~/.bashrc
|
||||
```
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: pkgsrc
|
||||
---
|
||||
## pkgsrc 镜像使用帮助
|
||||
|
||||
**注:该镜像是 pkgsrc 二进制包和 distfile 的镜像。本镜像站同时提供 pkgsrc 源码的镜像,请参考 [pkgsrc.git 镜像使用帮助](https://{{ site.hostname }}/help/pkgsrc.git/)。**
|
||||
|
||||
### 二进制包使用
|
||||
|
||||
执行:
|
||||
|
||||
```bash
|
||||
echo http://{{ site.hostname }}/pkgsrc/packages/NetBSD/<ARCH>/<VERSION>/All > $PKGDIR/etc/pkgin/repositories.conf
|
||||
```
|
||||
|
||||
其中 `<ARCH>` 和 `<VERSION>` 可选范围可参看 <https://{{ site.hostname }}/pkgsrc/packages/NetBSD/>。以 NetBSD amd64 9.3 为例:
|
||||
|
||||
```bash
|
||||
echo http://{{ site.hostname }}/pkgsrc/packages/NetBSD/amd64/9.3/All > /usr/pkg/etc/pkgin/repositories.conf
|
||||
```
|
||||
|
||||
注意该镜像不包括 joyent 内容,即 `MacOS`,`SmartOS`,`Linux` 中二进制包。
|
||||
|
||||
### distfile 使用
|
||||
|
||||
如果想使用该镜像的 distfile 强制替换全部 distfile 的下载路径,编辑`$PKGSRCDIR/mk/defaults/mk.conf`,并添加
|
||||
```
|
||||
MASTER_SITE_BACKUP= https://{{ site.hostname }}/pkgsrc/distfiles/
|
||||
MASTER_SITE_OVERRIDE= https://{{ site.hostname }}/pkgsrc/distfiles/
|
||||
MASTER_SORT= .edu.cn .cn
|
||||
```
|
||||
若只是部分替代,可参考
|
||||
```
|
||||
MASTER_SITE_CYGWIN= https://{{ site.hostname }}/cygwin/
|
||||
MASTER_SITE_GNU= https://{{ site.hostname }}/gnu/
|
||||
MASTER_SITE_PERL_CPAN= https://{{ site.hostname }}/CPAN/modules/by-module/
|
||||
MASTER_SITE_TEX_CTAN= https://{{ site.hostname }}/CTAN/
|
||||
MASTER_SITE_BACKUP= https://{{ site.hostname }}/pkgsrc/distfiles/
|
||||
MASTER_SORT= .edu.cn .cn
|
||||
```
|
||||
Loading…
Reference in New Issue