Homebrew
Homebrew官網(wǎng)入口網(wǎng)址,homebrew,mac軟件包的管理器,國(guó)內(nèi)源安裝
標(biāo)簽:AI助手 ai工具集ai助手,Homebrew ai導(dǎo)航 ai工具集,HomebrewHomebrew官網(wǎng)
homebrew,mac軟件包的管理器,國(guó)內(nèi)源安裝
網(wǎng)站服務(wù):Homebrew,ai導(dǎo)航。
The Missing Package Manager for macOS (or Linux).
homebrew官網(wǎng),mac軟件包的管理器,國(guó)內(nèi)源安裝
什么是homebrew?
簡(jiǎn)而言之,就是一個(gè)應(yīng)用市場(chǎng),就好比 win 上的軟件管家(不是安全管家哈,這個(gè)只有安裝、刪除等管理軟件包的功能)官方定義的是:macOS 缺失的軟件包的管理器
homebrew官網(wǎng): https://brew.sh/
Homebrew國(guó)內(nèi)源
- 清華源
- https://mirrors.tuna.tsinghua.edu.cn/help/homebrew
- 中科大源
- http://mirrors.ustc.edu.cn/help/brew.git.html
Homebrew 是一款及開放源代碼的軟件包管理系統(tǒng),用以簡(jiǎn)化 macOS 和 linux 系統(tǒng)上的軟件安裝過(guò)程。它擁有安裝、卸載、更新、查看、搜索等很多實(shí)用的功能,通過(guò)簡(jiǎn)單的一條指令,就可以實(shí)現(xiàn)包管理,十分方便快捷。
Homebrew
主要有四個(gè)部分組成: brew
、homebrew-core
、homebrew-bottles
、homebrew-cask
。
名稱 | 說(shuō)明 |
---|---|
brew | Homebrew 源代碼倉(cāng)庫(kù) |
homebrew-core | Homebrew 核心軟件倉(cāng)庫(kù) |
homebrew-bottles | Homebrew 預(yù)編譯二進(jìn)制軟件包 |
homebrew-cask | 提供 macOS 應(yīng)用和大型二進(jìn)制文件 |
HomeBrew安裝
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
建議使用:中科院
卸載
/bin/zsh?-c?"$(curl?-fsSL?https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
HomeBrew換源
中科大(建議使用)
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
brew update
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles' >> ~/.bash_profile
source ~/.bash_profile
阿里云
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
brew update
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
清華
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
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles' >> ~/.bash_profile
source ~/.bash_profile
騰訊
git -C "$(brew --repo)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-cask.git
brew update
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles/bottles' >> ~/.bash_profile
source ~/.bash_profile
初始默認(rèn)鏡像(國(guó)外源)
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
HomeBrew常用命令
軟件搜索
brew search TEXT|/REGEX/
查看軟件相關(guān)信息(顯示軟件的各種信息(包括版本、源碼地址、依賴等等)
brew info [FORMULA|CASK...]
安裝軟件
brew install FORMULA|CASK...
卸載軟件
brew uninstall FORMULA|CASK...
查看安裝列表
brew list [FORMULA|CASK...]
查看包信息
brew info [FORMULA|CASK...]
查看哪些包可以更新
brew outdated
更新包 Homebrew 會(huì)安裝新版本的包,但舊版本依然會(huì)保留
brew upgrade [FORMULA|CASK...]
brew 自身更新
brew update
清理舊版本和緩存
brew cleanup # 清理所有包的舊版本
brew cleanup [FORMULA ...] # 清理指定包的舊版本
brew cleanup -n # 查看可清理的舊版本包,不執(zhí)行實(shí)際操作
鎖定不想更新的包
brew pin [FORMULA ...] # 鎖定某個(gè)包
brew unpin [FORMULA ...] # 取消鎖定
tips:因?yàn)閡pdate會(huì)一次更新所有的包的,當(dāng)我們想忽略的時(shí)候可以使用這個(gè)命令
軟件服務(wù)管理
brew services list # 查看使用brew安裝的服務(wù)列表
brew services run formula|--all # 啟動(dòng)服務(wù)(僅啟動(dòng)不注冊(cè))
brew services start formula|--all # 啟動(dòng)服務(wù),并注冊(cè)
brew services stop formula|--all # 停止服務(wù),并取消注冊(cè)
brew services restart formula|--all # 重啟服務(wù),并注冊(cè)
Homebrew網(wǎng)址入口
OpenI小編發(fā)現(xiàn)Homebrew網(wǎng)站非常受用戶歡迎,請(qǐng)?jiān)L問(wèn)Homebrew網(wǎng)址入口試用。
數(shù)據(jù)統(tǒng)計(jì)
數(shù)據(jù)評(píng)估
本站OpenI提供的Homebrew都來(lái)源于網(wǎng)絡(luò),不保證外部鏈接的準(zhǔn)確性和完整性,同時(shí),對(duì)于該外部鏈接的指向,不由OpenI實(shí)際控制,在2023年 9月 7日 下午3:19收錄時(shí),該網(wǎng)頁(yè)上的內(nèi)容,都屬于合規(guī)合法,后期網(wǎng)頁(yè)的內(nèi)容如出現(xiàn)違規(guī),可以直接聯(lián)系網(wǎng)站管理員進(jìn)行刪除,OpenI不承擔(dān)任何責(zé)任。