Mac

Homebrew 명령어 - cask install

배고파.. 2022. 1. 29. 03:53

dmg, pkg 이미지 파일로 설치하지 않고 Homebrew를 통해 설치한 GUI 기반 어플리케이션 (ex. 파이어폭스 등) 을 설치할 때 cask를 이용하여 설치할 수 있습니다.

 

  • 기본 설치 명령어 
    brew install --cask [어플리케이션 이름]
    # Example -
    # brew install --cask firefox (파이어폭스 설치)​
  • 파이어폭스 설치해보기 
    my@MacBook ~ % brew install --cask firefox
    Running `brew update --preinstall`...
    ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
      https://github.com/Homebrew/brew#donations
    ==> Auto-updated Homebrew!
    Updated 1 tap (homebrew/core).
    ==> New Formulae
    atlas
    ==> Updated Formulae
    Updated 2 formulae.
    
    ==> Tapping homebrew/cask
    Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
    remote: Enumerating objects: 619267, done.
    remote: Total 619267 (delta 0), reused 0 (delta 0), pack-reused 619267
    Receiving objects: 100% (619267/619267), 284.48 MiB | 2.17 MiB/s, done.
    Resolving deltas: 100% (437994/437994), done.
    Tapped 3958 casks (4,029 files, 304.3MB).
    ==> Downloading https://download-installer.cdn.mozilla.net/pub/firefox/releases/
    ######################################################################## 100.0%
    ==> Installing Cask firefox
    ==> Moving App 'Firefox.app' to '/Applications/Firefox.app'
    🍺  firefox was successfully installed!​
  • 다운로드 및 설치 경로
    - /usr/local/Caskroom에 최신 버전을 받고 심볼릭링크를 이용하여 Applications 폴더에 설치 된 것을 확인 할 수 있습니다.
    my@MacBook Caskroom % cd /usr/local/Caskroom
    my@MacBook Caskroom % ls -al
    total 0
    drwxrwxr-x   3 chaeyeon  admin   96  1 29 02:25 .
    drwxr-xr-x  14 root      wheel  448  1 29 00:28 ..
    drwxr-xr-x   4 chaeyeon  admin  128  1 29 02:25 firefox
    my@MacBook Caskroom % cd firefox 
    my@MacBook firefox % ls -al
    total 0
    drwxr-xr-x  4 chaeyeon  admin  128  1 29 02:25 .
    drwxrwxr-x  3 chaeyeon  admin   96  1 29 02:25 ..
    drwxr-xr-x  4 chaeyeon  admin  128  1 29 02:25 .metadata
    drwxr-xr-x@ 3 chaeyeon  admin   96  1 29 02:25 96.0.3
    my@MacBook 96.0.3 % ls -al
    total 0
    drwxr-xr-x@ 3 chaeyeon  admin   96  1 29 02:25 .
    drwxr-xr-x  4 chaeyeon  admin  128  1 29 02:25 ..
    lrwxr-xr-x  1 chaeyeon  admin   25  1 29 02:25 Firefox.app -> /Applications/Firefox.app

 

 

 

'Mac' 카테고리의 다른 글

Homebrew로 macOS에 MariaDB Server 사용하기  (0) 2022.02.17
Homebrew 명령어 - install  (0) 2022.01.29
Homebrew 설치 (macOS 용 패키지 관리자)  (0) 2022.01.29