1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > MAC必装软件之HomeBrew HomeBrew-Cask

MAC必装软件之HomeBrew HomeBrew-Cask

时间:2020-08-23 00:07:40

相关推荐

MAC必装软件之HomeBrew HomeBrew-Cask

MAC必装软件之HomeBrew

安装brew命令HomeBrew-cask 安装HomeBrew Cask常用命令

安装

1.拉取脚本

curl -fsSL /Homebrew/install/master/install >> brew_install

2.更改脚本中的资源链接

BREW_REPO = “/Homebrew/brew“.freeze更改为:BREW_REPO = “https://mirrors./brew.git “.freeze注意: 新版本HomeBrew可能没有CORE_TAP_REPO这句代码,如果没有不用新增。 如果这个镜像有问题的话,可以换成其他源。

3.执行脚本

/usr/bin/ruby brew_install

4.然后把homebrew-core的镜像地址也设为中科院的国内镜像

cd "$(brew --repo)"git remote set-url origin https://mirrors./brew.gitcd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors./homebrew-core.git

5.执行更新

brew update --verbose

6.检查无错误,就算完成了。

brew doctor

7.直接使用 Homebrew 还需要更改默认源

替换核心软件仓库cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors./homebrew-core.git替换 cask 软件仓库cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-caskgit remote set-url origin https://mirrors./homebrew-cask.git替换 Bottles 源1、bash(默认 shell)用户:echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors./homebrew-bottles' >> ~/.bash_profilesource ~/.bash_profile2、用户:echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors./homebrew-bottles' >> ~/.zshrcsource ~/.zshrc

brew命令

1.安装

brew install wget

2.查看软件包信息

brew info wget

3.搜索软件

brew search wget

4.更新所有软件

brew update

5.卸载软件

brew uninstall wget

6.更新特定软件

brew upgrade wget

7.查看所有以安软件

brew list

8.查看需要更新的软件

brew outdated

9.现实包依赖

brew reps

10.帮助

brew help

HomeBrew-cask 安装

1.安装brew-cask

brew install brew-cask-completion

2.检查是否安装cask

brew cask

3.出现help信息表示安装成功

Commands:--cache display the file used to cache the Caskauditverifies installability of Caskscat dump raw source of the given Cask to the standard outputcreatecreates the given Cask and opens it in an editordoctorchecks for configuration issuesedit edits the given Caskfetchdownloads remote application files to local cachehome opens the homepage of the given Caskinfo displays information about the given Caskinstall installs the given Casklist with no args, lists installed Casks; given installed Casks, lists staged filesoutdated list the outdated installed Casksreinstall reinstalls the given Caskstylechecks Cask style using RuboCopuninstall uninstalls the given Caskupgrade upgrades all outdated caskszap zaps all files associated with the given Cask

HomeBrew Cask常用命令

1.搜索app

brew cask info qqmusic

2.安装app

brew cask install qqmusic

3.app列表

brew cask list

4.更新app

brew cask upgrade 或者brew cask upgrade qqmusic推荐第二种

5.卸载app

brew cask uninstall qqmusic

6.了解更多操作

brew cask

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。