镜像列表&使用帮助

#关于

njuer.org 2017~2019
自用服务,兴趣搭建。
常用镜像,每日更新。

#加入我们

QQ群
640321963

#已收录镜像列表

archlinux
archlinuxarm
archlinuxcn
centos
centos-altarch
cydia
deepin
docker
homebrew
kali
linuxmint
npm
openwrt
pypi
pythonxy
raspberrypi
raspbian
steamos
tensorflow
ubuntu

#cydia: apt.saurik.com镜像使用帮助

----临时使用
cydia中新增软件源头:
http://mirror.njuer.org/apt.saurik.com

#npm 镜像使用帮助

----临时使用
npm install <包名> -registry=http://mirror.njuer.org:7001


----设为默认 
npm config set registry http://mirror.njuer.org:7001
亦可 编辑 ~/.npmrc 加入下面内容
registry = registry=http://mirror.njuer.org:7001
亦可写入 .zshrc
echo '\n#alias for cnpm\nalias cnpm="npm --registry=http://mirror.njuer.org:7001 \
 --cache=$HOME/.npm/.cache/cnpm \
 --disturl=https://npm.taobao.org/mirrors/node \
 --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc

#pypi 镜像使用帮助

----临时使用
pip install -i http://mirror.njuer.org/pypi/web/simple --trusted-host mirror.njuer.org some-package  


----设为默认 修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url,例如
[global]
index-url = http://mirror.njuer.org/pypi/web/simple
format = columns
[install]
trusted-host = mirror.njuer.org

#ubuntu 1704 apt 镜像使用帮助

使用下面的四行覆盖掉 /etc/apt/source.list
 
deb http://mirror.njuer.org/ubuntu/ zesty main restricted universe multiverse
deb http://mirror.njuer.org/ubuntu/ zesty-updates main restricted universe multiverse
deb http://mirror.njuer.org/ubuntu/ zesty-backports main restricted universe multivese
deb http://mirror.njuer.org/ubuntu/ zesty-security main restricted universe multiverse

#Homebrew 源

替换我的镜像:

cd "$(brew --repo)"
git remote set-url origin http://mirror.njuer.org/homebrew/brew.git
echo 'export HOMEBREW_BOTTLE_DOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-cask.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-core.git


替换nju镜像:

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

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.nju.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc

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

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




 重置为官方地址:

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

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

#Homebrew 源代码仓库

Homebrew 源代码仓库
 使用说明

替换镜像:

cd "$(brew --repo)"
 git remote set-url origin http://mirror.njuer.org/homebrew/brew.git

重置为官方地址:

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

#Homebrew预编译二进制软件包

Homebrew Bottles 源使用帮助
 Homebrew 预编译二进制软件包

对于 bash 用户:

echo 'export HOMEBREW_BOTTLE_DOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.bash_profile
 source ~/.bash_profile

对于 zsh 用户:

echo 'export HOMEBREW_BOTTLE_DOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.zshrc
 source ~/.zshrc

#Homebrew Cask 源使用帮助

Homebrew Cask 源使用帮助
 Homebrew cask 软件仓库,提供 macOS 应用和大型二进制文件
 替换镜像:

cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask
 git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-cask.git

重置为官方地址:

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

#Homebrew Core 源使用帮助

Homebrew Core 源使用帮助
 说明

Homebrew 核心软件仓库
 使用说明

替换镜像:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
 git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-core.git

重置为官方地址:

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

#Kali 源使用帮助

使用下面的覆盖掉 /etc/apt/source.list
 
deb http://mirror.njuer.org/kali kali-rolling contrib main non-free