Homebrew安装简介
来源:互联网 发布:java初始化的局部变量 编辑:程序博客网 时间:2024/06/16 15:46
原文地址:https://brew.sh
安装命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Paste that at a Terminal prompt.
The script explains what it will do and then pauses before it does it. There are more installation options here (needed on 10.5).
What Does Homebrew Do?
Homebrew installs the stuff you need that Apple didn’t.
$ brew install wget
Homebrew installs packages to their own directory and then symlinks their files into
/usr/local
.$ cd /usr/local$ find CellarCellar/wget/1.16.1Cellar/wget/1.16.1/bin/wgetCellar/wget/1.16.1/share/man/man1/wget.1$ ls -l binbin/wget -> ../Cellar/wget/1.16.1/bin/wget
Homebrew won’t install files outside its prefix, and you can place a Homebrew installation wherever you like.
Trivially create your own Homebrew packages.
$ brew create https://foo.com/bar-1.0.tgzCreated /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bar.rb
It's all git and ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
$ brew edit wget # opens in $EDITOR!
Homebrew formulae are simple Ruby scripts:
class Wget < Formula homepage "https://www.gnu.org/software/wget/" url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz" sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd" def install system "./configure", "--prefix=#{prefix}" system "make", "install" endend
Homebrew complements macOS. Install your gems with
gem
, and their dependencies withbrew
.Further Documentation
Community Discussion
Homebrew Blog
Analytics Data
- Homebrew简介及安装
- Homebrew简介及安装
- Homebrew简介及安装
- Homebrew简介及安装
- Homebrew简介与安装
- Homebrew简介及安装
- Homebrew安装简介
- Homebrew 安装使用简介
- Homebrew简介及安装
- Homebrew简介及安装
- Homebrew简介及安装
- MAC OS Homebrew简介及安装
- homebrew简介
- 安装Homebrew
- 安装Homebrew
- 安装 Homebrew
- 安装HomeBrew
- 安装Homebrew
- MapReduce之WordCount
- 《java设计模式》:java内置观察者模式
- KMP
- Java事务处理全解析(五)—— Template模式
- 数据库知识点---事务
- Homebrew安装简介
- HDU 3068 最长回文
- 计算机图形学-实验5-掌握Bezier样条曲面生成思想、复习基本图元绘制、交互操作和几何变换相关内容
- SDIO驱动(4)sdio总线上driver和设备的match
- 常用命令
- 部署Servlet(一)——Servlet2.X
- excel vba 身份证校验
- Java事务处理全解析(六)—— 使用动态代理(Dynamic Proxy)完成事务
- 杨辉三角 算法