国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

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

分享到微博請遵守國家法律
井陉县| 瓮安县| 平塘县| 合水县| 昌邑市| 乌拉特后旗| 金华市| 西吉县| 东光县| 同心县| 石嘴山市| 米脂县| 辽阳市| 鄂温| 张家口市| 闽清县| 上栗县| 芷江| 台前县| 奉节县| 墨脱县| 丽水市| 阳新县| 娄烦县| 富阳市| 防城港市| 淄博市| 休宁县| 鄂伦春自治旗| 廉江市| 滦平县| 西昌市| 伊宁县| 宾阳县| 册亨县| 沛县| 潍坊市| 北流市| 吉木乃县| 临城县| 阳新县|