homebrew 설치 방법

채윤·2022년 6월 2일
0

윈도우 wsl 환경에서 homebrew를 설치하기 위해선 아래와 같은 방식으로 설치해주면 된다.

https://docs.microsoft.com/ko-kr/windows/wsl/install-manual#step-6---install-your-linux-distribution-of-choice

링크 순서대로 따라서 실행해본다.

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

그 다음 Microsoft store을 열고 ubuntu 설치해준다.

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

homebrew 설치해준다.

echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/[유저명]/.zprofile

eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)

brew install hello

설치가 되었나 확인해준다.

brew --version

마지막으로 버전을 확인해주면 끝!!

profile
프론트엔드 개발자

0개의 댓글