Merge branch 'master' of github.com:tuna/mirror-web

This commit is contained in:
Xavier Yao 2019-07-21 13:20:50 +08:00
commit 388cfc145e
9 changed files with 115 additions and 33 deletions

View File

@ -577,7 +577,7 @@
},
{
"name": "solus",
"desc": "SolusOS 的软件仓库,致力于制作对新手友好的发行版"
"desc": "Solus 的软件仓库,致力于制作对新手友好的发行版"
},
{
"name": "stackage",

View File

@ -23,7 +23,7 @@ curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/de
<label>你的Debian/Ubuntu版本: </label>
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
<option data-os="debian" data-release="wheezy">Debian 7 (Wheezy)</option>
<option data-os="debian" data-release="jessie" selected>Debian 8 (Jessie)</option>
<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>

View File

@ -4,9 +4,9 @@ layout: help
mirrorid: hackage
---
## hackage 镜像使用帮助
# hackage 镜像使用帮助
### 初次使用
## 在`cabal`中初次使用
先执行
@ -53,7 +53,33 @@ remote-repo: mirrors.tuna.tsinghua.edu.cn:http://mirrors.tuna.tsinghua.edu.cn/ha
再执行`cabal update`, 即可使用`cabal`安装包了。
### 在 [`stack`](https://github.com/commercialhaskell/stack) 中使用
## 在 [`stack`](https://github.com/commercialhaskell/stack) 中使用
### stack >= v2.1.1
修改`~/.stack/config.yaml`, 加上:
```yaml
package-indices:
- download-prefix: http://mirrors.tuna.tsinghua.edu.cn/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`, 加上:

View File

@ -11,25 +11,9 @@ mirrorid: homebrew
### 替换现有上游
```
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
```
### 使用homebrew-science或者homebrew-python
(已经deprecated了)
```
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-science"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-science.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-python"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-python.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
```
@ -39,11 +23,9 @@ brew update
_(感谢Snowonion Lee提供说明)_
```
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core
brew update
```

View File

@ -39,6 +39,8 @@ Raspbian 是树莓派的开发与维护机构 The Raspbeery Pi Foundation
*  wheezy
*  jessie
* stretch
* buster
Raspbian 系统由于从诞生开始就基于为了armhf也必须基于当时还是
testing 版本的 7.0/wheezy所以 Raspbian 不倾向于使用 stable/testing
@ -53,7 +55,8 @@ testing 版本的 7.0/wheezy所以 Raspbian 不倾向于使用 stable/testing
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
<option data-release="wheezy">Debian 7 (wheezy)</option>
<option data-release="jessie">Debian 8 (jessie)</option>
<option data-release="stretch" selected>Debian 9 (stretch)</option>
<option data-release="stretch">Debian 9 (stretch)</option>
<option data-release="buster" selected>Debian 10 (buster)</option>
</select>
</div>
</form>
@ -67,7 +70,7 @@ deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ {{release_name}} main
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ {{release_name}} main non-free contrib
# 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ {{release_name}} main
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ {{release_name}} main ui
</script>
{% endraw %}

View File

@ -6,6 +6,20 @@ mirrorid: stackage
## stackage 镜像使用帮助
本镜像推荐与 TUNA 的 [Hackage 镜像](https://mirrors.tuna.tsinghua.edu.cn/help/hackage/)配合使用。
### stack >= v2.1.1
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`, 加上:
```yaml
setup-info: "http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml"
urls:
latest-snapshot: http://mirrors.tuna.tsinghua.edu.cn/stackage/snapshots.json
```
### stack < v2.1.1
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`, 加上:
```yaml
@ -15,5 +29,3 @@ urls:
lts-build-plans: http://mirrors.tuna.tsinghua.edu.cn/stackage/lts-haskell/
nightly-build-plans: http://mirrors.tuna.tsinghua.edu.cn/stackage/stackage-nightly/
```
推荐与 TUNA 的 [Hackage 镜像](https://mirrors.tuna.tsinghua.edu.cn/help/hackage/)配合使用。

View File

@ -45,5 +45,14 @@ pkg up
# The termux repository mirror from TUNA:
deb https://mirrors.tuna.tsinghua.edu.cn/termux stable main
```
请使用内置或安装在 Termux 里的文本编辑器,例如 `vi` / `vim` / `nano` 等,**不要使用 RE 管理器等其他具有 ROOT 权限的外部 APP** 来修改 Termux 的文件
### 报错与修复
在Android P上使用TUNA源在upgrade的时候会出现报错
```
CANNOT LINK EXECUTABLE "dpkg-deb": library "libz.so.1" not found
dpkg: error processing archive
```
此时退出 termux的进程重新打开并`pkg up`即可修复。
请使用内置或安装在 Termux 里的文本编辑器,例如 `vi` / `vim` / `nano` 等,**不要使用 RE 管理器等其他具有 ROOT 权限的外部 APP** 来修改 Termux 的文件

View File

@ -15,7 +15,22 @@ Arch4edu 是面向高校用户推出的非官方软件仓库,
### 使用方法
`/etc/pacman.conf` 文件末尾添加以下内容:
* 导入 GPG key
```
$ pacman-key --recv-keys 7931B6D628C8D3BA
$ pacman-key --finger 7931B6D628C8D3BA
$ pacman-key --lsign-key 7931B6D628C8D3BA
```
* 在 `/etc/pacman.conf` 文件末尾添加以下内容:
```
[arch4edu]
Server = https://mirrors.tuna.tsinghua.edu.cn/arch4edu/$arch
```
* [**不推荐**] 不导入 GPG key并直接在 `/etc/pacman.conf` 文件末尾添加以下内容:
```
[arch4edu]

View File

@ -0,0 +1,35 @@
---
category: help
layout: help
mirrorid: solus
---
## Solus 镜像使用帮助
Solus 是一个界面美观,对新手友好的 Linux 发行版,使用 `eopkg` 作为包管理器。
* 项目地址:<https://getsol.us>
*  镜像地址:<https://mirrors.tuna.tsinghua.edu.cn/solus>
### 使用方法
执行以下命令
```
sudo eopkg add-repo Tuna https://mirrors.tuna.tsinghua.edu.cn/solus/shannon/eopkg-index.xml.xz
```
此后,之行以下命令以启用 Tuna 源,禁用官方源
```
sudo eopkg enable-repo Tuna
sudo eopkg disable-repo Solus
```
或者用 Tuna 源直接覆盖官方源
```
sudo eopkg add-repo Solus https://mirrors.tuna.tsinghua.edu.cn/solus/shannon/eopkg-index.xml.xz
```
关于 `eopkg` 命令的详细用法,请执行 `eopkg help` 查看帮助。