NWAFU Mirrors Help

注解

为了保障 Mirrors@NWAFU 的服务质量,校外用户在访问我们提供的服务时会被限速。
限速策略为:最多3个并发连接,每个连接传输速度不超过 400 KB/s 。
有计划在未来向公网用户不限速地提供服务。
To ensure the service quality of Mirrors@NWAFU, users outside the campus will be limited while accessing this service.
Limit policy is: 3 concurrent connections, 400 KB/s each connection at maximum.
We have plans to provide unlimited service for public users.

Homebrew 源代码仓库

说明

Homebrew 源代码仓库

使用说明

替换镜像:

cd "$(brew --repo)"
git remote set-url origin https://mirrors.nwafu.edu.cn/brew.git

重置为官方地址:

cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

相关链接

官方主页

http://brew.sh/

brew 文档

http://docs.brew.sh/

CentOS 软件包仓库

说明

CentOS 软件源.

收录架构

x86_64, i386

收录版本

CentOS 官方正在提供支持的版本。

使用说明

首先备份 CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载对应版本的 CentOS-Base.repo , 放入 /etc/yum.repos.d/

这是 CentOS 5 的:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/addons/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
gpgcheck=1
gpgkey=https://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

这是 CentOS 6 的:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

这是 CentOS 7 的:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

运行 sudo yum makecache 生成缓存。

Docker CE 软件包仓库

说明

Docker CE 仓库镜像

收录架构

所有 Docker CE 官方支持的架构

收录版本

所有 Docker CE 官方支持的版本

收录平台

所有 Docker CE 官方支持的平台(包括 Linux、Windows、macOS), 具体请查看 官方说明

使用说明

安装 Docker CE,请按照 官方安装文档 ,选择你对应的系统。 以 Ubuntu 为例,参考 官方 Ubuntu 安装 Docker CE 手册 进行安装。 在阅读官方安装手册时,只要把 download.docker.com 地址换成 mirrors.nwafu.edu.cn/docker-ce 即可。

CentOSFedora 等用户在下载 docker-ce.repo 文件后, 还需要将该文件中的 download.docker.com 地址换成 mirrors.nwafu.edu.cn/docker-ce

小技巧

以上 Docker CE 的官方文档有中文版,但更新可能不如英文版及时,请移步 https://docs.docker-cn.com/engine/installation/

相关链接

Docker 官网

https://www.docker.com/

Docker Store

https://store.docker.com/

Docker Hub

https://hub.docker.com/

Homebrew Cask Versions 索引仓库

说明

Homebrew Cask Versions 仓库提供了 Homebrew Cask 索引仓库 仓库中部分软件的其他版本。

使用说明

替换镜像:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-cask-versions.git

重置为官方地址:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://github.com/Homebrew/homebrew-cask-versions

相关链接

Homebrew

https://brew.sh/

Homebrew Cask 索引仓库

说明

Homebrew Cask 软件仓库,提供 macOS 应用和大型二进制文件

使用说明

替换镜像:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-cask.git

重置为官方地址:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://github.com/Homebrew/homebrew-cask

注解

Caskroom 的 Git 地址在 2018 年 5 月 25 日从 https://github.com/caskroom/homebrew-cask 迁移到了 https://github.com/Homebrew/homebrew-cask 。如果需要 homebrew-cask-versions 的镜像,参见 Homebrew Cask Versions 索引仓库

相关链接

官方主页

https://caskroom.github.io

Homebrew

https://brew.sh/

Homebrew Core 索引仓库

说明

Homebrew 核心软件仓库

使用说明

替换镜像:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-core.git

重置为官方地址:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core

相关链接

官方主页

http://brew.sh/

brew 文档

http://docs.brew.sh/

IUS Community 软件包仓库

说明

IUS Community 软件包仓库

收录架构

x86_64, i386

Kali Linux 软件包仓库

说明

Kali Linux 软件源

支持的系统架构

amd64, armel, armhf, i386

使用说明

编辑 /etc/apt/sources.list 文件, 将文件内容替换为:

deb https://mirrors.nwafu.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.nwafu.edu.cn/kali kali-rolling main non-free contrib

更改完 sources.list 文件后请运行 sudo apt-get update 更新索引以生效。

PyPI 镜像

说明

Python 软件包索引

使用说明

临时使用:

pip install -i https://mirrors.nwafu.edu.cn/pypi some-package

若要更换默认源,请先将 pip 升级到最新版(>=10.0.0)后执行:

pip install pip -U
pip config set global.index-url https://mirrors.nwafu.edu.cn/pypi

相关链接

Python

https://www.python.org/

PyPI

https://pypi.org/

清华大学开源镜像站

https://mirrors.tuna.tsinghua.edu.cn/

注意

根据清华大学和中国科学技术大学开源镜像站的汇报,bandersnatch 同步 pypi 镜像会导致部分软件包安装、使用出现异常。

鸣谢

PyPI 是以反向代理 清华大学开源镜像站提供的PyPI镜像 的方式提供的。 尽管我们的服务器上设置了对资源进行缓存,反向代理的方式依然会持续对上游服务器产生压力。 在此,感谢清华大学开源镜像站的支持。

Ubuntu 软件包仓库

说明

Ubuntu 软件源

收录架构

AMD64 (x86_64), Intel x86

收录版本

所有 Ubuntu 当前支持的版本,包括开发版,具体版本见 https://wiki.ubuntu.com/Releases

使用说明

警告

操作前请做好相应备份

一般情况下,将 /etc/apt/sources.list 文件中 Ubuntu 默认的源地址 http://archive.ubuntu.com/ 替换为 https://mirrors.nwafu.edu.cn 即可。

可以使用如下命令:

sudo sed -i 's/archive.ubuntu.com/mirrors.nwafu.edu.cn/g' /etc/apt/sources.list

小技巧

如果你在安装时选择的语言不是英语,默认的源地址通常不是 http://archive.ubuntu.com/ , 而是 http://<country-code>.archive.ubuntu.com/ubuntu/ ,如 http://cn.archive.ubuntu.com/ubuntu/ , 此时只需将上面的命令进行相应的替换即可,即 sudo sed -i 's/cn.archive.ubuntu.com/mirrors.nwafu.edu.cn/g' /etc/apt/sources.list

也可以直接编辑 /etc/apt/sources.list 文件(需要使用 sudo)。以下是 Ubuntu 18.04 参考配置内容:

# 默认注释了源码仓库,如有需要可自行取消注释
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

更改完 sources.list 文件后请运行 sudo apt-get update 更新索引以生效。

小技巧

使用 HTTPS 可以有效避免国内运营商的缓存劫持。

镜像下载

如果需要下载 Ubuntu 的 ISO 镜像以便安装,请参考 Ubuntu Releases

Ubuntu Releases

说明

Ubuntu 镜像

收录架构

x86_64

收录版本

Ubuntu 发布的最近一个或两个短期支持版本和长期支持版本,目前是 18.04.* 和 18.10 。

使用说明

Ubuntu 当前支持的版本的 ISO 镜像,下载请直接前往 https://mirrors.nwafu.edu.cn/ubuntu-releases/

Homebrew Source Code Repository

Usage

Replace to mirror URL:

cd "$(brew --repo)"
git remote set-url origin https://mirrors.nwafu.edu.cn/brew.git

Reset to official URL:

cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

See also

Official Website

http://brew.sh/

brew Documentation

http://docs.brew.sh/

CentOS Software Repository

Architectures

x86_64, i386

Versions

All versions supported by RedHat.

Usage

Backup CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

Download the correct CentOS-Base.repo of your version, put it inside /etc/yum.repos.d/ .

This is the CentOS-Base.repo for CentOS 5:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/addons/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
gpgcheck=1
gpgkey=https://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-5

This is for CentOS 6:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.nwafu.edu.cn
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nwafu.edu.cn/centos/RPM-GPG-KEY-CentOS-6

And this is for CentOS 7:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=https://mirrors.nwafu.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

After that, run sudo yum makecache to apply them.

Docker CE Software Repository

Architectures and versions

All architectures and versions supported by Docker Inc.

Platforms

All platforms supported by Docker Inc, includes Linux, Windows and macOS. For further information, see Official Documentation

Usage

Install Docker CE as descripted in Official Installation Documentation. For Ubuntu/Debian users, just replace download.docker.com with mirrors.nwafu.edu.cn/docker-ce while installing. For CentOS/Fedora users, edit docker-ce.repo and replace download.docker.com with mirrors.nwafu.edu.cn/docker-ce.

See also

Docker Website

https://www.docker.com/

Docker Store

https://store.docker.com/

Docker Hub

https://hub.docker.com/

Homebrew Cask Versions Index Repository

Description

Homebrew Cask Versions repository provides alternative versions of some softwares in Homebrew Cask Index Repository.

Usage

Replace with mirror URL:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-cask-versions.git

Reset to official URL:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://github.com/Homebrew/homebrew-cask-versions

See also

Homebrew

https://brew.sh/

Homebrew Cask Index Repository

Description

Homebrew Cask Repository, includes macOS applications and large softwares

Usage

Replace with mirror URL:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-cask.git

Reset to official URL:

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://github.com/Homebrew/homebrew-cask

See also

Official Website

https://caskroom.github.io

Homebrew

https://brew.sh/

Homebrew Core Index Repository

Description

Homebrew Core software repository

Usage

Replace with mirror URL:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.nwafu.edu.cn/homebrew-core.git

Reset to official URL:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core

See also

Official Website

http://brew.sh/

brew Docs

http://docs.brew.sh/

Kali Linux Software Repository

Architectures

amd64, armel, armhf, i386

Usage

Edit /etc/apt/sources.list:

deb https://mirrors.nwafu.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.nwafu.edu.cn/kali kali-rolling main non-free contrib

After editing sources.list, run sudo apt-get update to apply changes.

See also

Kali Linux Official Website

https://www.kali.org/

Kali Forum

http://forums.kali.org/

Kali Docs

https://www.kali.org/kali-linux-documentation/

PyPI Mirror

Description

Python Package Index

Usage

For temporary usage:

pip install -i https://mirrors.nwafu.edu.cn/pypi some-package

To use this as default index, upgrade your pip to the latest version (>=10.0.0) and execute following commands:

pip install pip -U
pip config set global.index-url https://mirrors.nwafu.edu.cn/pypi

See also

Python

https://www.python.org/

PyPI

https://pypi.org/

Tsinghua University OSS Mirrors

https://mirrors.tuna.tsinghua.edu.cn/

Notice

OSS Mirrors of Tsinghua University and University of Science and Technology of China have reported that pypi mirrors (mirrored by bandersnatch) can cause malfunctions when installing or using packages.

Acknowledgement

This PyPI mirror is reverse-proxying PyPi mirror provided by Tsinghua University Open Source Software Mirrors . Although we have configured the server to cache resources, this method will continuously create network traffic to the upstream. So, we hereby acknowledge the help and support of the maintenance team of Tsinghua University Open Source Software Mirrors.

Ubuntu Software Repository

Architecture

AMD64 (x86_64), Intel x86

Versions

All versions supported by Canonical Inc. See https://wiki.ubuntu.com/Releases .

Usage

警告

Backup /etc/apt/sources.list before editing it.

Edit /etc/apt/sources.list, replace http://archive.ubuntu.com/ with https://mirrors.nwafu.edu.cn.

You can use this command to do that:

sudo sed -i 's/archive.ubuntu.com/mirrors.nwafu.edu.cn/g' /etc/apt/sources.list

小技巧

Sometimes, your default mirror may be http://<country-code>.archive.ubuntu.com/ instead of http://archive.ubuntu.com/`, such as ``http://cn.archive.ubuntu.com/. Now, you need to use this command: sudo sed -i 's/cn.archive.ubuntu.com/mirrors.nwafu.edu.cn/g' /etc/apt/sources.list

This is the /etc/apt/sources.list file of Ubuntu 18.04 LTS.

# Source code repository are commented by default.
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

# Pre-release, not suggested
# deb https://mirrors.nwafu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.nwafu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

After editing sources.list, run sudo apt-get update to apply changes.

小技巧

We highly recommend you to use HTTPS to access mirror.

Ubuntu Releases

Architectures

x86_64

Versions

Latest STS and LTS. Currently 18.04.* and 18.10.