mac 에서 homebrew 설치 하기

homebrew 란?

mac용 패키지 관리자 입니다.

homebrew 설치

  • terminal을 열고 다음을 입력하면 설치가 완료 됩니다.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
  • 설치 확인
$ brew -v
Homebrew 1.1.2
Homebrew/homebrew-core (git revision 88cf; last commit 2016-12-05)

homebrew 사용

  • homebrew 도움말

대충 훓어 보면 어떻게 사용하는지 알 수 있다.

$ brew --help
Example usage:
  brew search [TEXT|/REGEX/]
  brew (info|home|options) [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]

Troubleshooting:
  brew config
  brew doctor
  brew install -vd FORMULA

Developers:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
  https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md

Further help:
  man brew
  brew help [COMMAND]
  brew home
  • 패키지 설치 예제

homebrew를 이용하여 wget패키지를 설치 해보자.

$ brew install wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.18.sierra.bottle.tar.gz
Already downloaded: /Users/tb.kwon/Library/Caches/Homebrew/wget-1.18.sierra.bottle.tar.gz
==> Pouring wget-1.18.sierra.bottle.tar.gz
?  /usr/local/Cellar/wget/1.18: 9 files, 1.6M

$ brew list
openssl     pkg-config  readline    wget <--- wget 설치가 확인됨.

댓글 남기기