hankviv / blog_issue

issue
2 stars 0 forks source link

mac brew 手册 #2

Open hankviv opened 5 years ago

hankviv commented 5 years ago

阿里云源

替换brew.git

cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

替换homebrew-core.git

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

刷新源

brew update

hankviv commented 3 years ago

$ man brew #完整命令帮助

$ brew install git #安装软件包(这里是示例安装的Git版本控制)

$ brew uninstall git #卸载软件包

$ brew search git #搜索软件包

$ brew list #显示已经安装的所有软件包

$ brew update #同步远程最新更新情况,对本机已经安装并有更新的软件用*标明

$ brew outdated #查看已安装的哪些软件包需要更新

$ brew upgrade git #更新单个软件包

$ brew info git #查看软件包信息

$ brew home git #访问软件包官方站

$ brew cleanup #清理所有已安装软件包的历史老版本

$ brew cleanup git #清理单个已安装软件包的历史版本

brew services list # 查看使用brew安装的服务列表 brew services run xxx # 启动服务(仅启动不注册) brew services start xxx # 启动服务,并注册 brew services stop xxx # 停止服务,并取消注册 brew services restart xxx # 重启服务,并注册 brew services cleanup # 清除已卸载应用的无用的配置