Brew 替换为国内源Mac

# 替换brew.git

cd "$(brew --repo)"

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

# 替换homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

# 刷新源

brew update

Fish

# 替换brew.git

cd (brew --repo)

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

# 替换homebrew-core.git

cd (brew --repo)/Library/Taps/homebrew/homebrew-core

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

# 刷新源

brew update

原文地址:https://www.cnblogs.com/JamyWong/p/11437516.html

时间: 2024-08-30 17:51:55

Brew 替换为国内源Mac的相关文章

brew更换为国内源

转自 https://www.jianshu.com/p/4721ef4c7a0e # 替换brew.git: cd "$(brew --repo)" # 中国科大: git remote set-url origin https://mirrors.ustc.edu.cn/brew.git # 清华大学: git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git # 替换h

Maven国内源设置

Maven国内源设置 目前国外的maven源访问非常慢,作为一个Java开发者,是一件很痛苦的事,而国内的maven源,oschina已经关闭,目前最好的方式,就是使用阿里云的镜像: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/&

让Ubuntu使用阿里云国内源,解决下载速度慢问题。

阿里云镜像官方地址 http://mirrors.aliyun.com/ 软件包管理中心(推荐) 在软件包管理中心"软件源"中选择"中国的服务器"下mirros.aliyun.com即可自动使用 在终端中修改方法: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup            #备份当前也就是默认官方的源列表 sudo gedit /etc/apt/sources.list        

5周第2次课 yum更换国内源 yum下载rpm包 源码包安装

1. yum 更换国内源 系统内置的源很多时候都是官方的,大部分在国外,使用起来不是很快,也很难下载,这时候最好使用国内的源,如163 1.1 删除系统中自带的 yum源配置文件 mv CentOS-Base.repo CentOS-Base.repo.bak 1.2 下载网易 yum 源的配置文件 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 或者curl -O http://mirrors.163.com/.help/Cent

ruby 编译安装,gem国内源ruby.taobao.org

centos6.6final 一.安装依赖包(使用默认CENTOS更新源): # yum install openssl* openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel 二.关闭iptables和SELINUX # service iptables stop # setenforce 0 # vi /etc/sysconfig/selin

7.6 yum更换国内源 7.7 yum下载rpm包 7.8/7.9 源码包安装

7.6 yum更换国内源 7.7 yum下载rpm包 7.8/7.9 源码包安装 扩展 1. 配置yum源优先级 http://ask.apelearn.com/question/7168 2. 把源码包打包成rpm包 http://www.linuxidc.com/Linux/2012-09/70096.htm # 7.6  yum更换国内源 ![mark](http://oqxf7c508.bkt.clouddn.com/blog/20170812/154757717.png?imagesl

Parrot 国内源

[资源] Parrot Security OS 国内源 指令 sudo leafpad /etc/apt/sources.list 源 deb http://mirrors.ustc.edu.cn/parrot/ parrot main contrib non-freedeb http://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free 寻找方式 每次都记不住,可手动去下面的几个镜像站去看是否有支持想要的源 mi

pip和conda国内源更新module

pip国内源 在这个路径创建pip.ini文件 [global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com conda国内源 下创建.condarc文件 channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - defaults show_channel_urls: true

python 国内源

pipy国内镜像目前有: http://pypi.douban.com/  豆瓣 http://pypi.hustunique.com/  华中理工大学 http://pypi.sdutlinux.org/  山东理工大学 http://pypi.mirrors.ustc.edu.cn/  中国科学技术大学 手动指定源,可以在pip后面跟-i 来指定源,比如用豆瓣的源来安装web.py框架: pip install web.py -i http://pypi.douban.com/simple