macbook安装homebrew并更换清华源

1、官网brew.sh复制安装脚本。

2、自动安装完成后,更换为清华源来加快速度。网址为:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew

3、更换homebrew

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

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

brew update

更换homebrew-bottles

长期更换
echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles‘ >> ~/.bash_profile
source ~/.bash_profile
临时更换
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

原文地址:https://www.cnblogs.com/litifeng/p/9348936.html

时间: 2024-08-08 21:35:27

macbook安装homebrew并更换清华源的相关文章

Mac系统下 brew 更换清华源

成功安装brew后,输入如下命令: 1.官网brew.sh复制安装脚本. 2.自动安装完成后,更换为清华源来加快速度.网址为:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew 3.更换homebrew cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(br

ubunut18.04 下安装 gitlab ce版,使用清华源

gitlab官方的ubuntu安装说明 https://about.gitlab.com/install/#ubuntu 该安装说明介绍的是gitlab-ee版本 按照该说明也能安装gitlab-ce版本. 用清华源安装,有些不同. 首先信任 GitLab 的 GPG 公钥: curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null 我是ubuntu18.04, 16.0

安装软件,提高速度,可以使用清华源

目录 安装软件,提高速度,可以使用清华源 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn +模块名(需要的模块名和版本号) 在cmd命令行里面,直接敲上述代码,回车即可! 可参考的下载模块: pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tun

通过安装HomeBrew来安装Python3

首先说什么是HomeBrew? 下面引用简书上一个博客的解释:(博客链接:http://www.jianshu.com/p/d229ac7fe77d) 为什么要使用Homebrew Mac OS X是基于Unix的,它可以使用非常多Linux平台上开源的优秀工具,比如wget,比如dos2unix脚本工具等.但是OS X系统本身却缺少Linux下得包管理器.比如Fedora的yum与dnf,比如Ubuntu的apt-get,比如ArchLinux的Pacman等.于是这些优秀的开源软件在Mac上

ubuntu更换apt-get源&apt命令使用手册

ubuntu更换apt-get源 # cp /etc/apt/sources.list /etc/apt/sources.list.bak # vim /etc/apt/sources.list deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubu

Centos6.5更换163源 epel源

想必大家都遇到过,安装新的centos系统,使用yum去安装软件的时候,要么找不到,要么慢的让人发疯. 网上其实办法很多,直接更换163源就ok,但是基本所有的文章都是直接wget下163的源,但是不知道为什么,wget下来的repo文件各种不好使,还得自己修改一下.这里,我把自己修改好的源复制到这里,大家换源的时候直接复制粘贴就ok了. [base] name=CentOS-$releasever - Base - 163.com baseurl=http://mirrors.163.com/

MAC上安装Homebrew、Nginx、PHP、Mysql

准备工作 新版的 Mac OS 内置了Apache 和 PHP,可以通过以下命令查看Apache和PHP的版本号: # httpd -v # php -v 安装Homebrew Mac下的Homebrew相当于Linux下的apt-get.yum,可以获得最新版的各种安装包. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装完成后,运

开发环境——RHEL7更换yum源

开发环境--RHEL7更换yum源 一.删除RHN注册和订阅提示 查找subscription-manager相关组件:rpm -qa|grep subscription-manager删除subscription-manager相关组件:sudo yum remove subscription-manager查找rhn相关组件:rpm -qa|grep rhn删除rhn相关组件:sudo yum remove rhn-check 二.yum安装 1.yum卸载 查询当前RHEL7.3的yum安

MSYS2更换软件源

MSYS2更换软件源 方法 更新软件源,只需要将msys64\etc\pacman.d 目录下的三个文件改为需要配置的软件源即可. mirrorlist.msys mirrorlist.mingw64 mirrorlist.mingw32 由于时而有更新,所以软件源网址有时候也更新,如果出现以下问题,可能配置就不正确. 错误:无法从 mirrors.ustc.edu.cn : The requested URL returned error: 404 获取文件 'mingw64.db' 错误:无