Posts Homebrew ( macOS 패키지 관리자 )
Post
Cancel

Homebrew ( macOS 패키지 관리자 )

masOS용 패키지 관리자

Homebrew

1. 설치

1
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

2. 패키지 설치

터미널으로 사용하고 패키지 설치 ( 루비 / zsh 등등 )

1
$ brew install rbenv

UI가 있는 Application 설치 ( 슬랙 / 텔레그램 / 제플린 등등 )

1
$ brew cask install slack

3. 패키지 Update

1
2
$ brew update rbenv
$ brew cask update slack

4. 패키지 삭제

1
2
$ brew remove rbenv
$ brew cask remove slack

5. 설치한 패키지 List 만들기

1
2
3
$ brew list --formula > brewList.txt  # 맥에 설치된 brew list을 파일로 작성

$ brew list --cask > brewCaskList.txt # 맥에 설치된 brew cask list을 파일로 작성

6. 패키지 List 설치

1
2
3
4
5
6
$ brew install $(cat brewList.txt)
$ brew install cask $(cat brewList.text)
or

$ brew install $(<brewList.txt)
$ brew install cask $(<brewList.text)

7. 참고

https://whitepaek.tistory.com/3

This post is licensed under CC BY 4.0 by the author.