การติดตั้ง brew ใน macos
Back to articles

การติดตั้ง brew ใน macos

การติดตั้ง brew ใน macos

Linux Updated: February 20, 2026

การติดตั้ง Homebrew ใน macOS

  1. เปิดแอป Terminal ซึ่งตั้งอยู่ในโฟลเดอร์ Applications > Utilities.
  1. คัดลอกและวางคำสั่งต่อไปนี้ลงใน Terminal และกด Enter:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. ปฏิบัติตามคำแนะนำบนหน้าจอ หลังจากติดตั้งเสร็จสิ้น คุณจะสามารถใช้คำสั่ง brew ใน Terminal ได้ทันที.
  1. เพื่อตรวจสอบว่าการติดตั้งเสร็จสิ้นและใช้งานได้ ให้ลองพิมพ์คำสั่ง:

    brew --version

ถ้าการติดตั้งสำเร็จ คุณจะเห็นเลขเวอร์ชันของ Homebrew แสดงขึ้นบนหน้าจอ.

  1. หลังจากติดตั้งเสร็จ คือประสบการณ์ที่ดีที่จะอัปเดต Homebrew และแพ็คเกจฐานของมัน โดยใช้คำสั่ง:

    brew update && brew upgrade
  1. และด้วยคำสั่งนี้ คุณสามารถติดตั้งซอฟต์แวร์ผ่าน Homebrew:

    brew install [ชื่อแพ็คเกจ]

เช่น brew install wget จะช่วยในการติดตั้ง wget ผ่าน Homebrew.

หมายเหตุ: คำสั่งที่ให้ในการติดตั้ง Homebrew อาจมีการเปลี่ยนแปลงตามเวลาและการปรับปรุงของ Homebrew ดังนั้น ควรเข้าไปตรวจสอบที่เว็บไซต์อย่างเป็นทางการของ Homebrew เพื่อข้อมูลที่เป็นปัจจุบัน.

D

DriteStudio | ไดรท์สตูดิโอ

Cloud, VPS, Hosting and Colocation provider in Thailand

Operated by Craft Intertech (Thailand) Co., Ltd.

Manage your cookie settings

We use different types of cookies to optimize your experience on our website. Click on the categories below to learn more and customize your preferences. Note that blocking some types of cookies may impact your experience.

Necessary Cookies

These cookies are essential for the website to function properly. They enable basic functions like page navigation and access to secure areas.

View cookies used
  • Session cookies (session management)
  • Security cookies (CSRF protection)
Always On

Functional Cookies

These cookies enable personalized features like language preferences and theme settings. Without these, some features may not work properly.

View cookies used
  • lang (language preference)
  • theme (dark/light mode)

Analytics Cookies

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

View cookies used
  • _ga (Google Analytics)
  • _gid (Google Analytics)

Marketing Cookies

These cookies are used to track visitors across websites to display relevant advertisements based on your interests.

View cookies used
  • Advertising cookies
  • Remarketing pixels

Privacy Policy