各种仓库国内镜像
只是想让它快一点
Maven
阿里云仓库
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
pip
阿里云镜像
- 创建文件
linux
vi ~/.pip/pip.conf
windows:
%HOMEPATH%\pip\pip.ini
- 写入镜像
[global]
trusted-host = mirrors.aliyun.com
index-url = https://mirrors.aliyun.com/pypi/simple
sbt
创建文件
touch ~/.sbt/repositories
修改文件
[repositories]
local
aliyun: https://maven.aliyun.com/repository/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
npm
淘宝镜像
npm config set registry https://registry.npm.taobao.org --global |
yarn
淘宝镜像
yarn config set registry https://registry.npm.taobao.org/ |
ntp
阿里云
ntp.cloud.aliyuncs.com |
brew
清华大学镜像
替换
Homebrew(Mac)
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
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.gitLinuxbrew(Linux)
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/linuxbrew-core.git
更换后测试工作是否正常
brew update |
复原
Homebrew(Mac)
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://github.com/Homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://github.com/Homebrew/homebrew-cask-drivers.gitLinuxbrew(Linux)
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/linuxbrew-core.git
更换后测试工作是否正常
brew update |
flutter sdk
原始链接:
https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.12.13+hotfix.9-stable.zip |
将storage.googleapis.com
替换为storage.flutter-io.cn
:
https://storage.flutter-io.cn/flutter_infra/releases/stable/macos/flutter_macos_v1.12.13+hotfix.9-stable.zip |
Flutter
PUB_HOSTED_URL
: Dart
依赖包FLUTTER_STORAGE_BASE_URL
: Flutter
依赖文件
Flutter中文社区
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn清华大学 TUNA 协会
export PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter腾讯云
export PUB_HOSTED_URL=https://mirrors.cloud.tencent.com/dart-pub
export FLUTTER_STORAGE_BASE_URL=https://mirrors.cloud.tencent.com/flutter
go
阿里云
go env -w GO111MODULE=on |
Docker
docker中国镜像
{ |
- ubuntu 20.04
sudo mkdir -p /etc/docker |
Centos 8 Yum
阿里云
- 备份旧的
cd /etc/yum.repos.d/ |
- 下载新的
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo |
Ubuntu 20.04
阿里云
- 备份
mv /etc/apt/sources.list /etc/apt/sources.list.bak |
/etc/apt/sources.list
写入
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse |
- 更新
sudo apt update |
本文标题:各种仓库国内镜像
文章作者:Shea
原始链接:https://di1shuai.com/各种仓库国内镜像.html
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!