五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

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

分享到微博請遵守國家法律
遂川县| 大竹县| 吉木乃县| 台山市| 灯塔市| 新绛县| 高青县| 永靖县| 彭阳县| 兴和县| 衡南县| 宝山区| 大兴区| 孟连| 白城市| 临泉县| 方城县| 新余市| 安徽省| 宣威市| 淮安市| 黔东| 桂林市| 北票市| 淄博市| 集贤县| 浦东新区| 分宜县| 贵德县| 东丽区| 仙游县| 甘南县| 从化市| 襄城县| 股票| 彝良县| 比如县| 聂荣县| 河北省| 曲麻莱县| 鄂伦春自治旗|