๐Ÿ’ฌ ETC../๐Ÿ’ป macOS

Mac OS ์šฉ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž, HomeBrew ์„ค์น˜

iseunghan 2022. 1. 17. 23:47
๋ฐ˜์‘ํ˜•

 

HomeBrew ๋ž€?

Mac OS ์šฉ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. Apple ๋˜๋Š” Linux์—์„œ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š” ์œ ์šฉํ•œ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

HomeBrew๋ฅผ ํ†ตํ•ด ์ด๋Ÿฐ ๊ฒƒ๋“ค์„ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. homebrew-core — Homebrew Formulae

HomeBrew๋ฅผ ์ด์šฉํ•˜๋ฉด ๊ทธ๋ƒฅ ์ปค๋งจ๋“œ ํ•˜๋‚˜๋กœ ์„ค์น˜๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ˆ ๊ฐ„ํŽธํ•ฉ๋‹ˆ๋‹ค!

 

HomeBrew install

macOS ์šฉ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž — Homebrew
Terminal์„ ์—ด๊ณ  ์•„๋ž˜ ์ปค๋งจ๋“œ๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋ฉด ๋!

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

(ํ˜น์‹œ HomeBrew ์„ค์น˜ํ•˜๋‹ค๊ฐ€ ์˜ค๋ฅ˜ ๋‚˜์‹œ๋Š” ๋ถ„๋“ค์€ AppStore์—์„œ Xcode๋ฅผ ์„ค์น˜ํ•ด๋ณด์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.)

 

๊ฐ„๋‹จํ•˜๊ฒŒ ์„ค์น˜ํ•ด๋ณด๊ธฐ

๋‹ค์šด๋ฐ›๊ณ  ์‹ถ์€ ํŒจํ‚ค์ง€๊ฐ€ ์žˆ๋Š”์ง€ ๋จผ์ € ์กฐํšŒ (search)!

$ brew search mysql

 

๋‹ค์šด ๋ฐ›๊ณ  ์‹ถ์€ ํŒจํ‚ค์ง€๋ฅผ ๊ณจ๋ผ์„œ ์„ค์น˜ํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

$ brew install mysql    # ์ €๋Š” ๊ทธ๋ƒฅ ์ตœ์‹  ๋ฒ„์ „์„ ๋‹ค์šด ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค.

 

์„ค์น˜๋œ ์œ„์น˜

HomeBrew๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ•œ ํŒจํ‚ค์ง€๋“ค์€ /opt/homebrew/ ์•„๋ž˜์— ์„ค์น˜๋˜๊ณ , /usr/local ์œ„์น˜์— ์‹ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค.

 

REFERENCE

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

 

Homebrew(ํ™ˆ๋ธŒ๋ฅ˜) ์„ค์น˜ ๋ฐ ์‚ฌ์šฉ๋ฒ•, MacOS์—์„œ ํ”„๋กœ๊ทธ๋žจ์„ ์‰ฝ๊ฒŒ ๋‹ค์šด๋กœ๋“œ ๋ฐ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ๋Š” ํŒจํ‚ค์ง€ ๊ด€

Homebrew ์„ค์น˜ ๋ฐ ์‚ฌ์šฉ๋ฒ• macOS๋ฅผ ์ƒˆ๋กญ๊ฒŒ ๊ตฌ์ž… ๋˜๋Š” ํด๋ฆฐ ์„ค์น˜๋ฅผ ํ•˜๊ณ  ๋‚˜์„œ ๊ฐ€์žฅ ๋จผ์ € ์„ค์น˜ํ•˜๋Š” MacOS ์šฉ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž์ž…๋‹ˆ๋‹ค! ๋งŽ์€ ๋งฅ ์œ ์ €๋ถ„๋“ค์ด ์•„์ง Homebrew๋ฅผ ํ„ฐ๋ฏธ๋„์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ์‹์ด ์ต์ˆ™ํ•˜

whitepaek.tistory.com

๋ฐ˜์‘ํ˜•