Homebrew란?
- Mac OS를 새롭게 구입 또는 클린 설치를 하고 나서 가장 먼저 설치하는 MacOS 용 패키지 관리자이다.
- 터미널에서 명령어를 작성하여 자신이 필요한 프로그램을 설치, 삭제, 업데이트를 손쉽게 관리할 수 있다.
Homebrew 사용하는 이유?
- 손쉽고 깔끔하게 프로그램을 설치, 삭제, 업데이트 할 수 있는 강력한 MacOS 용 패키지 관리자 이기 때문에 프로그램 사용이 많은 개발자가 손쉽게 패키지를 관리하기 위해서 사용하는 도구 중 하나이다.
Homebrew
The Missing Package Manager for macOS (or Linux).
brew.sh
1. Homebrew 홈페이지에 들어가서 아래와 같은 코드를 복사 후 맥북 터미널에 이 주소를 그대로 복사&붙여넣기 후 enter를 누른다.
2. 그럼 아래와 같이 뜨는데, 맥북 비밀번호를 입력한다.
(비밀번호를 입력해도 아무것도 나오지 않으니 그냥 천천히 잘 입력하면 된다)
3. "Press RETURN to continue or any other key to abort" 이런 문구가 나오면 Enter(return)키를 입력하면 된다.
4. 그러면 이것저것 설치가 되는데 나는 중간에 warning이 떴다.
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/dev-parkjieun/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
https://docs.brew.sh
4-1. warning 해결하는 방법
- warning을 자세히ㅣ 보면, next steps에 두줄을 커멘드에 add라고 나와있다.
- 아래 명령어를 그대로 복사해서 붙여넣으면 된다. [user] 이 부분은 사용자마다 다르기 때문에 주의해야한다.
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/dev-parkjieun/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
5. 설치 확인
brew --version
끝!!
'Linux' 카테고리의 다른 글
vscode에서 ssh key로 비밀번호 없이 로그인 하기 (0) | 2023.10.04 |
---|---|
네트워크를 다룰 때 사용하는 명령어 (0) | 2023.10.03 |
리눅스 명령어(계속 추가할 예정) (0) | 2023.09.27 |
리눅스에 대해 (0) | 2023.09.24 |
VI / VIM? 단축키 정리 (0) | 2023.09.22 |