본문 바로가기

Apple

[Mac OS X] 애플리케이션 설치시

앱스토어가 생겨서 앱을 간단히 설치하고 업데이트를 할 수 있게 되었지만 아직 모든 앱이 앱스토어에 등록되지 않았다.

맥에서는 애플리케이션이 .app 의 형태로 패키징이 되어 있어 애플리케이션 디렉터리에 드래그앤 드롭하면 땡이다.

하지만 터미널에서 이런 작업을 대체할 수 있는 방법이 있다.


바로 brew cask를 사용하면 되는데, brew는 Homebrew라는 Mac OS X를 위한 패키지 관리자다. (리눅스의 yum이나 rpm, apt 처럼)


단계는 간단하다.

1. 터미널을 띄운다. (Spotlight에서 '터미널' 타이핑)

2. Homebrew 설치

 $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3. cask 설치

 $ brew install caskroom/cask/brew-cask

4. 맥 애플리케이션 설치 (예. 크롬 브라우저)

 $ brew cask install google-chrome


설치할 수 있는 애플리케이션 조회는 search 명령이다.

기본 텍스트 에디터를 대체할 만한 서브라임 텍스트의 설치를 위해 sublime이라는 키워드로 검색해보면 'sublime-text'가 나온다.

$ brew cask search sublime

==> Partial matches

sublime-text

$ brew cask install sublime-text

==> Caveats

Cask sublime-text installs files under "/usr/local".  The presence of such

files can cause warnings when running "brew doctor", which is considered

to be a bug in homebrew-cask.


==> Downloading http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2.dmg

######################################################################## 100.0%

==> Symlinking App 'Sublime Text 2.app' to '/Users/namo/Applications/Sublime Tex

==> Symlinking Binary 'subl' to '/usr/local/bin/subl'

🍺  sublime-text staged at '/opt/homebrew-cask/Caskroom/sublime-text/2.0.2' (124 files, 26M)

$