Open source mirrors

Open source mirrors

Mirror lists

Operating System

Alpine

1
2
3
4
# https://mirrors.huaweicloud.com/alpine/v3.11/releases/x86_64/alpine-standard-3.11.5-x86_64.iso

cp -a /etc/apk/repositories /etc/apk/repositories.bak
sed -i "s@http://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g" /etc/apk/repositories

Debian

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# https://mirrors.huaweicloud.com/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso
# https://mirrors.huaweicloud.com/debian-cd/current/arm64/iso-cd/debian-10.3.0-arm64-netinst.iso
# https://mirrors.huaweicloud.com/debian-cd/current/s390x/iso-cd/debian-10.3.0-s390x-netinst.iso

deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-proposed-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free

#deb http://mirrors.163.com/debian/ buster main contrib non-free
#deb http://mirrors.163.com/debian/ buster-updates main contrib non-free
#deb http://mirrors.163.com/debian/ buster-proposed-updates main contrib non-free
#deb http://mirrors.163.com/debian/ buster-backports main contrib non-free
#deb http://mirrors.163.com/debian-security/ buster-backports main contrib non-free

#deb http://deb.debian.org/debian/ buster main contrib non-free
#deb http://deb.debian.org/debian/ buster-updates main contrib non-free
#deb http://deb.debian.org/debian/ buster-proposed-updates main contrib non-free
#deb http://deb.debian.org/debian/ buster-backports main contrib non-free
#deb http://security.debian.org/debian-security/ buster/updates main contrib non-free

#deb http://deb.debian.org/debian/ testing main contrib non-free
#deb http://deb.debian.org/debian/ testing-updates main contrib non-free
#deb http://deb.debian.org/debian/ testing-proposed-updates main contrib non-free

#deb http://deb.debian.org/debian/ unstable main contrib non-free

Ubuntu

1
2
3
# https://mirrors.huaweicloud.com/ubuntu-cdimage/releases/18.04/release/ubuntu-18.04.4-server-amd64.iso
# https://mirrors.huaweicloud.com/ubuntu-cdimage/releases/18.04/release/ubuntu-18.04.4-server-arm64.iso
# https://mirrors.huaweicloud.com/ubuntu-cdimage/releases/18.04/release/ubuntu-18.04.4-server-s390x.iso

Languages

Java & maven

1
2
3
4
5
<mirror>
<id>huaweicloud</id>
<mirrorOf>*</mirrorOf>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</mirror>

Node.js & npm

1
2
3
4
5
6
7
# https://mirrors.huaweicloud.com/nodejs/latest-v12.x/
# https://mirrors.huaweicloud.com/node-sass/?C=M&O=D

npm config set registry https://mirrors.huaweicloud.com/repository/npm/
npm config set disturl https://mirrors.huaweicloud.com/nodejs
npm config set sass_binary_site https://mirrors.huaweicloud.com/node-sass
npm cache clean -f

Python & PyPI

1
2
3
4
pip install \
--trusted-host https://mirrors.huaweicloud.com \
-i https://mirrors.huaweicloud.com/repository/pypi/simple \
<packages>
1
2
3
4
5
6
# ~/.pip/pip.conf
# C:\Users\<UserName>\pip\pip.ini
[global]
index-url = https://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120

Ruby & RubyGems

1
2
3
4
5
gem update --system
gem sources -l

gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l

Go & Modules

1
2
# https://proxy.golang.org
export GOPROXY=https://mirrors.aliyun.com/goproxy/