DEV Community

Ngobrolin IT
Ngobrolin IT

Posted on

2 1

Tutorial Install Homebrew di Mac OS

Haloo dev đź‘‹

Pada tutorial kali ini aku mau share tutorial cara install homebrew di Mac OS. Nah buat temen-temen yang belum tau apa itu homebrew, jadi homebrew merupakan pengelola paket aplikasi pihak ketiga di Mac OS. Seperti di ubuntu ada apt untuk pengelolaan paket aplikasi.

Kalau kita install aplikasi di Mac OS kan harus melalui App Store, nah ada beberapa paket aplikasi yang bisa diinstall melalui homebrew. Misal jika kamu seorang web developer, kamu bisa menginstall MySQL, PHP, Node JS, Composer, dan lain-lain melalui homebrew.

Install Homebrew

Nah cara menginstallnya mudah, tinggal buka terminal kemudian jalankan script berikut ini:

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

Scriptnya didapat dari official websitenya homebrew di brew.sh

Install Aplikasi

Untuk menginstall sebuah aplikasi, cukup menggunakan perintah:

brew install
Enter fullscreen mode Exit fullscreen mode

Keuntungan menggunakan homebrew kamu bisa lebih cepat dalam menginstall aplikasi. Bahkan sekali command line untuk menginstall paket aplikasi beserta dependency nya.

brew install phpbrew install php@8.0brew install mysql@5.7brew install node
Enter fullscreen mode Exit fullscreen mode

Install GUI Apps

Selain aplikasi berbasis CLI, kamu juga menginstall aplikasi GUI juga. Install Cask terlebih dahulu. Cask digunakan untuk menginstall aplikasi-aplikasi GUI melalui homebrew.

brew install cask
Enter fullscreen mode Exit fullscreen mode

Setelah Cask berhasil terinstall kamu gunakan untuk menginstall aplikasi GUI. Misal kamu mau menginstall Google Chrome, cukup gunakan perintah:

brew cask install google-chrome
Enter fullscreen mode Exit fullscreen mode

Nah mudah banget kan. Jadi menurutku homebrew aplikasi wajib yang digunakan oleh developer terutama pengguna Mac OS.

Uninstall Homebrew

Cara menghapus Homebrew sangat mudah. Di official github homebrew dijelaskan cara uninstall homebrew. Gunakan perintah ini terminal:

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

Pada dasarnya script diatas adalah menjalankan file uninstall.sh.

Selamat mencoba temen-temen developer.

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

đź‘‹ Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay