Homebrew本身环境安装

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Homebrew环境的安装

需求选项规则参数指定命令方向
Homebrew是终端的配置使用工具,用来管理在终端下操作的程序码及在终端下操作的软件包依赖性,使Mac电脑可以快速配置开发环境。终端窗口通过Homebrew环境管理tar/giz等软件包。

Homebrew安装环境已经配置完成
brew help
brew list  //列出全部已经安装的软件包

brew search **  //查找某个软件包(通过Homebrew管理)
brew install ** //安装某个软件包(稳定版本)
brew uninstall **//卸载某个软件包
brew upgrade ** //更新某个软件包
brew info ** //查看指定软件包的信息说明
brew cache clean//清理缓存
brew update

//测试brew使用, 执行brew install expect


备注:

官网链接:   https://brew.sh

Homebrew配置使用工具包对应GitHub开源库(云开源库)

Homebrew本地映射位置:
/usr/local/Homebrew/

————————————————————————————————————
HostNameSummary主机名摘要

haijunyan@haijunyan ~ % git config --global --unset http.proxy 

haijunyan@haijunyan ~ % git config --global --unset https.proxy

haijunyan@haijunyan ~ % git config --global http.proxy "http://127.0.0.1:1087"

haijunyan@haijunyan ~ % git config --global https.proxy "http://127.0.0.1:1087"
haijunyan@haijunyan ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

sudo killall -STOP -c usbd //手机设备与电脑设备频繁断开
top //进程cpu消耗排序
sudo mkdir /usr/local/git 
sudo mkdir /usr/local/git/share 
sudo mkdir /usr/local/git/share/git-core
sudo mkdir /usr/local/git/share/git-core/templates
sudo chmod -R 755 /usr/local/git/share/git-core/templates
open /usr/local 
pwd 
open /usr/local    
sudo chmod -R 755 /usr/local/git/share/git-core/templates
brew tap oclint/formulae   
git config --global --unset http.proxy
git config --global --unset https.proxy
brew tap oclint/formulae 
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
brew update
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/usr/bin/ruby -e "(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
 du -sh *
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sudo gem install redis
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
git config --global --list
vim ~/.gitconfig   
git config --global http.proxy http://127.0.0.1:1080                                           
git config --global https.proxy http://127.0.0.1:1080                                  
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Ping github.com
Ping  fastly.net
config.json
git config --global http.proxy "http://127.0.0.1:1087"
git config --global https.proxy "http://127.0.0.1:1087"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew help
brew tap oclint/formulae
brew install oclint     
 brew update  
 brew upgrade oclint   
oclint --help 
oclint --version   
sudo gem install -n /usr/local/bin  xcpretty

参考链接

你可能感兴趣的:(经验,Homebrew本身环境搭建)