最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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的評論 (共 條)

分享到微博請遵守國家法律
大石桥市| 根河市| 图木舒克市| 柘城县| 青铜峡市| 自贡市| 静宁县| 沙雅县| 黄石市| 商洛市| 建德市| 增城市| 富裕县| 喜德县| 海兴县| 元阳县| 伊川县| 阳山县| 灵寿县| 临潭县| 苍溪县| 兰考县| 通城县| 玛纳斯县| 张家川| 清新县| 青川县| 金塔县| 锦州市| 清新县| 晴隆县| 行唐县| 鲜城| 都匀市| 平陆县| 城固县| 新乡县| 日照市| 平远县| 潞西市| 陕西省|