开源软件镜像
换源工具
手动换源会面临镜像失效,手工成本复杂等,后续会更多使用工具来完成。
Github
hub.fastgit.org
git clone https://hub.fastgit.org/author/repo
ghproxy.com
git clone https://hub.fastgit.org/https://github.com/author/repo
Linux's software mirrors
Docker Hub
Config
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://<my-docker-mirror-host>"]
}
Mirrors
Hugging Face
Home-brew
Config
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
Mirrors
links
官方主页: http://brew.sh/
Bottles 介绍: http://docs.brew.sh/Bottles.html
NPM
Config
vim ~/.npmrc
registry=https://registry.npmmirror.com/
# proxy=http://127.0.0.1:7890/
cmd
# original registry: https://registry.npmjs.org/
# reference: https://zhuanlan.zhihu.com/p/272474048
# yarn registry
yarn config set registry https://registry.npmmirror.com
# npm registry
npm config set registry https://registry.npmmirror.com
Mirrors
PIP 3
cmd
pip3 install pygame -i https://pypi.mirrors.ustc.edu.cn/simple/
# --trusted-host pypi.douban.com
Config
# vim ~/.pip/pip.conf
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple/
# [install]
# trusted-host=pypi.douban.com
Mirrors
- 中国科技大学(推荐) https://pypi.mirrors.ustc.edu.cn/simple/
- 豆瓣 http://pypi.douban.com/simple/
- 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
- 阿里云 http://mirrors.aliyun.com/pypi/simple/
Maven
Config
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>aliyunmaven</id>
<mirrorOf>central</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
</settings>
mvn -s aliyun.xml