Git Product home page Git Product logo

homebrew's Introduction

Mac开发必备工具——Homebrew国内源

介绍

Homebrew是一款包管理工具,目前支持macOSLinux系统。

由于官方提供下载地址,经常安装等待一段时间之后遇到下面提示

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

// 报错
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out

经过多次测试,发现raw.githubusercontent.com访问很不稳定,我们**大陆用户访问的话经常容易访问不到其资源。

好奇为什么官方不通过JSDelivr等免费的CDN解决该问题?

所以在此基于官方的源码上修改其中raw.githubusercontent.com切换成中科大镜像,亲测速度还不错,哈哈放心食用。

快速安装

JSDelivr

/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/qqlcx5/homebrew/install.sh)"

码云

/bin/bash -c "$(curl -fsSL https://gitee.com/qqlcx5/homebrew/raw/master/install.sh)"

卸载

JSDelivr

/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/qqlcx5/homebrew/uninstall.sh)"

码云

/bin/bash -c "$(curl -fsSL https://gitee.com/qqlcx5/homebrew/raw/master/uninstall.sh)"

常用命令

  • brew help 查看帮助
  • brew list 列出已安装的软件包
  • brew install <package name> 安装软件包
  • brew uninstall <package name> 卸载软件包
  • brew search <package name> 查找软件包
  • brew info <package name> 查看软件包信息
  • brew -v 查看brew版本
  • brew update 更新brew
  • brew outdated 列出需要更新的软件包
  • brew upgrade [<package name>]可选指定更新某个软件包,默认更新所有软件包

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.