[Mac] Homebrew 설치예

Published by onesixx on

 

sudo chown -R onesixx /usr/local

 

설치예 wget

Brew를 통한 설치 절차

0) 현재 설치 여부 확인 –version
1) 설치가능한 팩키지 목록 update 
2) 팩키지 검색 brew search XX, 설치전 옵션 확인 brew options XX
3) 설치 brew install XX
4) 설치 확인 brew info XX, brew list 

0) 현재 설치 여부 확인 –version

$ wget --version
zsh: command not found: wget

1) 설치가능한 팩키지 목록 update 

$ brew update
Already up-to-date.

2) 팩키지 검색 brew search XX, 설치전 옵션 확인 brew options XX

$ brew search ; brew option wget

3) 설치 brew install XX

$ brew install wget

/usr/local/bin아래  wget 가 relink 된다.  (원래 Link는 /Cellar/wget/1.19.1/bin/wget)

4) 설치 확인 brew info XX, brew list 

$ brew list wget

 

 

설치예 git

Brew를 통한 설치 절차

1) 현상태 확인–version 
2) Package 검색 brew search XX, 설치전 옵션 확인 brew options XX
3) 설치 brew install XX
4) 설치 확인 brew info XX, brew list 
5) Profile 수정 
6) 확인–version

0) 현상태 확인 (설치 여부)

현재 apple이 제공하는 git 사용중 

$ git --version
git version 2.9.3 (Apple Git-75)

1) Package 검색 brew search XX, 설치전 옵션 확인 brew options XX

팩키지 유무확인 (search 명령)하고

$ brew search git

설치 옵션 확인 

$ brew options git
--with-blk-sha1
	Compile with the block-optimized SHA1 implementation
--with-brewed-curl
	Use Homebrew's version of cURL library
--with-brewed-openssl
	Build with Homebrew OpenSSL instead of the system version
--with-brewed-svn
	Use Homebrew's version of SVN
--with-gettext
	Build with gettext support
--with-pcre
	Build with pcre support
--with-persistent-https
	Build git-remote-persistent-https from 'contrib' directory
--without-completions
	Disable bash/zsh completions from 'contrib' directory
--HEAD
	Install HEAD version

2) 설치 brew install XX

설치옵션 활용

$ brew install git --with-brewed-openssl --with-pcre
==> Installing dependencies for git: pcre
==> Installing git dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.39.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.39: 203 files, 5.4M
==> Installing git
==> Using the sandbox
==> Downloading https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.xz
######################################################################## 100.0%
==> make install prefix=/usr/local/Cellar/git/2.10.2 sysconfdir=/usr/local/etc CC=clang CFLAGS= LDFLAGS=
==> make CC=clang CFLAGS= LDFLAGS=
==> make clean
==> make CC=clang CFLAGS= LDFLAGS=
==> Downloading https://www.kernel.org/pub/software/scm/git/git-manpages-2.10.2.tar.xz
######################################################################## 100.0%
==> Downloading https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.10.2.tar.xz
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.10.2: 1,446 files, 32.7M, built in 52 seconds

3) 설치 확인 brew info XX, brew list 

설치내용 확인, 설치된 팩키지 리스트 확인

$ brew info git
git: stable 2.10.2 (bottled), HEAD
Distributed revision control system
https://git-scm.com
/usr/local/Cellar/git/2.10.2 (1,446 files, 32.7M) *
  Built from source on 2016-11-02 at 00:22:55 with: --with-brewed-openssl --with-pcre
From: https://github.com/Homebrew/homebrew-core/blob/master/Formulas/git.rb
==> Dependencies
Optional: pcre ✔, gettext ✘
==> Options
--with-blk-sha1
	Compile with the block-optimized SHA1 implementation
--with-brewed-curl
	Use Homebrew's version of cURL library
--with-brewed-openssl
	Build with Homebrew OpenSSL instead of the system version
--with-brewed-svn
	Use Homebrew's version of SVN
--with-gettext
	Build with gettext support
--with-pcre
	Build with pcre support
--with-persistent-https
	Build git-remote-persistent-https from 'contrib' directory
--without-completions
	Disable bash/zsh completions from 'contrib' directory
--HEAD
	Install HEAD version
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git

 

4) 설치된 팩키지 정보 확인

제대로 설치되었는지 확인 

$ git --version
git version 2.10.2

 

Categories: R Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x