无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

在Linux中使用brew

2021-12-26 15:01 作者:beyondware  | 我要投稿

安裝

1、安裝依賴

sudo apt install build-essential procps curl file git

2、安裝brew

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

刪除brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

3、查看源

git -C "$(brew --repo)" remote -v

git -C "$(brew --repo homebrew/core)" remote -v

git -C "$(brew --repo homebrew/cask)" remote -v

4、替換源

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

brew update

還原源

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

brew update

5、bottles替換源

bash用戶

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile

source ~/.bash_profile

zsh用戶

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

source ~/.zshrc

常用命令

查看版本

brew -v

查看幫助

brew help

在瀏覽器打開官網(wǎng)

brew home?

驗證brew能否正常

brew doctor

安裝軟件

brew install 軟件名

卸載軟件

brew uninstall 軟件名

或者

brew remove 軟件名

刪除不需要的依賴

brew autoremove

查詢軟件

brew search 軟件名

查看已安裝軟件列表

brew list 軟件名

查看包信息

brew info [包名]

更新brew

brew update

更新所有[包名]

brew upgrade [包名]

查詢可更新包

brew outdated

顯示包依賴信息

brew deps [包名]

清理所有包的舊版本

brew cleanup?

清理指定包的舊版本

brew cleanup [包名]

查看可清理的舊版本包,不執(zhí)行實(shí)際操作

brew cleanup -n?

后臺運(yùn)行

brew services start 軟件名

brew services stop 軟件名

brew services restart 軟件名


在Linux中使用brew的評論 (共 條)

分享到微博請遵守國家法律
南安市| 文水县| 双江| 延边| 洪洞县| 青岛市| 恭城| 襄樊市| 福建省| 双江| 青冈县| 贵港市| 灵台县| 桦川县| 多伦县| 静乐县| 东阿县| 肇东市| 织金县| 光泽县| 定州市| 弥勒县| 濮阳市| 包头市| 文山县| 灵石县| 鄂伦春自治旗| 安泽县| 商城县| 岗巴县| 门源| 靖州| 南和县| 清新县| 蒲江县| 尉犁县| 鲁甸县| 滨海县| 青川县| 房山区| 太仓市|