国内主要系统、软件、开发框架镜像地址,包括 NPM、Centos、Ubuntu、Docker、PIP、Homebrew等。
Conda镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
Docker镜像地址
/etc/docker/daemon.json
{
"registry-mirrors": ["https://pyfrm5p0.mirror.aliyuncs.com"]
}
Ubuntu 镜像下载地址
https://old-releases.ubuntu.com/releases
Centos 7.9 下载地址
https://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/
NPM 淘宝镜像地址
npm config set registry http://registry.npmmirror.com
或添加命令行参数npm install --registry=http://registry.npmmirror.com
PIP 镜像
#阿里云镜像地址
http://mirrors.aliyun.com/pypi/simple/
#mac 上全局设置,~/.config/pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple
#命令行参数
pip install xxx -i <镜像源>
Homebrew
如果安装时使用镜像,可以参考说明地址 https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"