Skip to content

Mirrors and registries in Mainland China

Notifications You must be signed in to change notification settings

dautovri/mirrors-china

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 

Repository files navigation

Mirrors / Repositories in China 🇨🇳

In Mainland China, using local mirrors is essential due to the GF, which can significantly slow down or even block access to servers outside of China. By connecting to mirrors within Mainland China, you can get faster update speeds and a more reliable connection when downloading or updating software packages. Additionally, local mirrors are often synchronized with the main repositories, ensuring that you have access to the latest updates and security patches.

Python

pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

conda

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes


conda update conda 

Docker

Quay.io: https://quay.azk8s.cn

GCR: https://gcr.azk8s.cn

K8S GCR images: https://registry.aliyuncs.com/google_containers

Docker Hub official: https://registry.docker-cn.com

Docker Hub Azure: https://dockerhub.azk8s.cn

Helm

Azure Helm/Kubernetes: http://mirror.azure.cn/kubernetes/

Alibaba Cloud: https://mirrors.aliyun.com/kubernetes-new/

Terraform

Alibaba Cloud Terraform: http://mirrors.aliyun.com/terraform/

Jenkins

Azure Jenkins: http://mirror.azure.cn/jenkins/

Add brew mirror

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git

brew update

Maven (Java, Scala)

Alibaba repo http://maven.aliyun.com/nexus/content/groups/public/

<repositories>
        <repository>
            <id>aliyun</id>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </repository>
</repositories>

SBT

~/.sbt/repositories

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

More mirrors