Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Homebrew lässt sich auf einem unterstützten Mac über das offizielle Installationsskript einrichten. Entscheidend sind die richtige Mac-Architektur, die Xcode Command Line Tools und die anschließende Shell-Konfiguration. Diese Anleitung führt durch Installation, Prüfung, erste Pakete und die häufigsten Fehler.

Stand der Angaben zur macOS-Unterstützung: 18. August 2026.

Die Installation in Kurzform

Erfahrene Nutzer benötigen normalerweise diese Schritte:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Führen Sie anschließend genau die beiden brew shellenv-Befehle aus, die der Installer am Ende ausgibt. Der Pfad hängt von Ihrem Mac ab:

#1 Best Overall
Sale
Anker USB-C Hub for MacBook, 7-in-2 Mac Dock with 4K@60Hz HDMI
  • Massive Expansion: Expand your MacBook's 2 USB-C ports into 1 multi-function USB-C port, 1 USB-C data port, 2 USB-A ports, 1 HDMI port, 1 SD card slot, and 1 microSD card slot—all from one ultra-compact hub.
  • High-Speed, High-Def: A multi-function USB-C port supports huge charging power up to 100W, data transfer up to an astounding 40 Gb/s, and media display at resolutions up to 5K.
  • Multi-Monitor Display: The HDMI port supports a resolution of 4K@60Hz while the multi-function port supports 5K@60Hz. Connect to both simultaneously to enjoy crystal-clear streaming or mirroring across 2 displays. Note: M1, M2 and M3 MacBooks do not support dual external display.
  • Designed for the Latest MacBooks: Works with the latest MacBook Air and MacBook Pro, and is designed specially to avoid obstructing your MacBook's MagSafe port. Note: this hub is not compatible with MacBook Neo.
  • What You Get: Anker 547 USB-C Hub (7-in-2, for MacBook), welcome guide, worry-free 18-month warranty, and friendly customer service.
  • Apple Silicon: /opt/homebrew
  • Intel: /usr/local

Der offizielle Installationsweg ist auf der Homebrew-Installationsseite dokumentiert.

Was ist Homebrew?

Homebrew ist ein Paketmanager für macOS. Damit installieren, aktualisieren und entfernen Sie Kommandozeilenprogramme, Bibliotheken und Entwicklungsumgebungen über das Terminal. Über sogenannte Casks lassen sich außerdem viele grafische macOS-Apps installieren.

brew install wget
brew install --cask firefox

Homebrew ergänzt den Mac App Store, ersetzt ihn aber nicht. Verfügbar sind Pakete aus den offiziellen Homebrew-Quellen und gegebenenfalls aus zusätzlich eingebundenen Taps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Voraussetzungen prüfen

Sie benötigen:

  • einen Mac mit Apple-Silicon- oder 64-Bit-Intel-Prozessor,
  • eine unterstützte macOS-Version,
  • Administratorzugang,
  • eine Internetverbindung und
  • die Xcode Command Line Tools oder vollständiges Xcode.

Nach der aktuellen Homebrew-Dokumentation ist macOS Sonoma 14 oder höher auf offiziell unterstützter Apple-Hardware die unterstützte Konfiguration. Catalina 10.15 bis Ventura 13 können teilweise funktionieren, gelten aber nicht als offiziell unterstützt. macOS Mojave 10.14 und ältere Versionen laufen mit aktuellen Homebrew-Versionen nicht zuverlässig beziehungsweise werden nicht unterstützt. Prüfen Sie vor der Installation die aktuelle Supportliste, da sich diese Grenzen ändern können.

Apple Silicon oder Intel feststellen

Über macOS

  1. Öffnen Sie das Apple-Menü.
  2. Wählen Sie Über diesen Mac.
  3. Bei Apple Silicon sehen Sie einen Eintrag wie Chip: Apple M….
  4. Bei Intel-Macs steht dort Prozessor, etwa „Intel Core i7“.

Apple beschreibt die Unterscheidung in seiner Dokumentation zu Mac-Prozessoren.

Über das Terminal

uname -m

Typische Ergebnisse sind:

arm64    # Apple Silicon
x86_64   # Intel oder eine Intel-Shell unter Rosetta

Auf einem Apple-Silicon-Mac kann das Terminal im Intel-Modus laufen. Dann meldet uname -m möglicherweise x86_64, obwohl der Mac physisch einen Apple-Chip besitzt. Das kann zu einer zweiten Homebrew-Installation unter /usr/local führen.

Command Line Tools installieren

Für Homebrew ist das vollständige Xcode in der Regel nicht nötig. Die separaten Xcode Command Line Tools enthalten die benötigte Toolchain, SDKs und Manpages. Vollständiges Xcode benötigen Sie nur für Xcode-spezifische Werkzeuge oder Entwicklungsaufgaben.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Öffnen Sie das Terminal, etwa über Spotlight, und starten Sie:

Rank #2
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
xcode-select --install

Bestätigen Sie im macOS-Dialog Installieren, akzeptieren Sie die Lizenzbedingungen und warten Sie bis zum Abschluss. Prüfen Sie die Installation anschließend:

xcode-select --print-path

Eine mögliche Ausgabe lautet:

/Library/Developer/CommandLineTools

Wenn vollständiges Xcode aktiv ist, kann stattdessen beispielsweise /Applications/Xcode.app/Contents/Developer erscheinen. Apple erklärt die Installation und Konfiguration in der Dokumentation zu den Command Line Tools.

Homebrew mit dem offiziellen Installer installieren

Kopieren Sie ausschließlich den Befehl aus der offiziellen Homebrew-Installerquelle:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Der Befehl lädt das aktuelle offizielle Installationsskript von GitHub und führt es mit Bash aus. Das Skript zeigt vor dem Start unter anderem das Zielverzeichnis, anzulegende Verzeichnisse und geplante Änderungen an. Prüfen Sie diese Angaben und bestätigen Sie mit der Eingabetaste.

macOS kann anschließend nach dem Administratorpasswort fragen. Während der Eingabe erscheinen im Terminal keine Zeichen und oft auch keine Sternchen. Das ist normal. Geben Sie das Passwort ein und drücken Sie die Eingabetaste.

Eine Standardinstallation verwendet diese Präfixe:

Mac Homebrew-Präfix
Apple Silicon /opt/homebrew
64-Bit-Intel /usr/local

Diese Pfade sind nicht zufällig gewählt: Homebrew kann dort bevorzugt vorgefertigte Binärpakete, sogenannte Bottles, verwenden. Benutzerdefinierte Pfade können dagegen häufiger Quellcode-Kompilierungen, zusätzliche Abhängigkeiten und schwerer reproduzierbare Fehler verursachen. Verwenden Sie deshalb nach Möglichkeit den Standardpfad; siehe auch die Homebrew-FAQ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Homebrew zur Shell hinzufügen

Nach der Installation kann Homebrew bereits vorhanden sein, ohne dass der Befehl brew gefunden wird. Ursache ist meist, dass das Homebrew-Präfix noch nicht in der Shell-Umgebung steht.

Rank #3
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Am zuverlässigsten: Übernehmen Sie die beiden Zeilen, die der Installer am Ende ausgibt. Für die standardmäßige zsh-Shell sehen die Beispiele typischerweise so aus.

Apple Silicon mit zsh

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Intel mit zsh

echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/usr/local/bin/brew shellenv)"

Kopieren Sie nicht blind den Apple-Silicon-Befehl auf einen Intel-Mac oder umgekehrt. Verwenden Sie den tatsächlichen Pfad aus der Installer-Ausgabe. Bei anderen Shells können andere Startdateien relevant sein, etwa ~/.bash_profile oder ~/.bashrc. Die Homebrew-Manpage beschreibt auch brew shellenv für verschiedene Shells.

Installation überprüfen

Öffnen Sie bei Bedarf ein neues Terminalfenster und führen Sie aus:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
brew --version
brew --prefix
brew doctor

Erwartet werden:

  • eine ausgegebene Homebrew-Version,
  • /opt/homebrew auf einer nativen Apple-Silicon-Installation oder /usr/local auf einem Intel-Mac und
  • eine Diagnoseausgabe von brew doctor.

brew doctor ist ein Diagnosewerkzeug. Eine Warnung bedeutet nicht automatisch, dass Homebrew unbrauchbar ist. Lesen Sie die vollständige Meldung und beheben Sie nur das konkret genannte Problem.

Das erste Paket installieren

Installieren Sie zum Test ein Kommandozeilenprogramm:

brew install wget

Weitere Beispiele:

brew install git
brew install node
brew install python

Eine grafische App installieren Sie als Cask:

brew install --cask firefox

Installierte Pakete können Sie auflisten:

brew list
brew list --formula
brew list --cask

Die wichtigsten Homebrew-Befehle

Befehl Funktion
brew search suchbegriff Verfügbare Formulae und Casks suchen
brew info paketname Informationen zu einem Paket anzeigen
brew update Homebrew-Definitionen und Metadaten aktualisieren
brew outdated Veraltete installierte Pakete anzeigen
brew upgrade Installierte Pakete aktualisieren
brew uninstall paketname Ein Paket entfernen
brew cleanup Alte Versionen und nicht mehr benötigte Caches bereinigen

brew update und brew upgrade sind nicht dasselbe: Der erste Befehl aktualisiert die Paketinformationen, der zweite die bereits installierten Pakete.

Häufige Fehler beheben

„brew: command not found“

Prüfen Sie zunächst, ob Homebrew in einem der Standardpfade liegt:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ls /opt/homebrew/bin/brew
ls /usr/local/bin/brew

Führen Sie anschließend den passenden Befehl aus:

Rank #4
Sale
USB C Hub Adapter for MacBook Pro/Air M5 M4 M3 M2 M1 2026-2018 13" 15" 16", Mac Multiport Adapter, 8 in 2 MacBook Accessories Dongle with HDMI 4K@60hz, Thunderbolt, USB C&A Data Ports, SD Card Reader
  • [Macbook USB-C Adapter 8 IN 2 ] This MacBook Air USB adapter is specially designed for 13''-16'' MacBook Pro (2016-2026) and MacBook Air (2018-2026).Expand your MacBook into 1 HDMI port(4K@60Hz), Thunderbolt 3 port, 2*USB 3.0 ports/USB-C port/USB 2.0, SD Micro and SD card readers. Note: The piece will not fit if there is a case at the bottom of the MacBook.
  • [MacBook HDMI Adapter] This Macbook Pro Air USB C hub HDMI port supports the resolution of 4K @60Hz, Thunderbolt 3 port supports 5K @60Hz. Supports dual monitor display to mirror or extend the display of your laptop to TV, monitor or projector. Note: For MacBook M1 chips do not support the display of 2 external monitors. One of them will show a blackout screen.
  • [Fast Power Delivery] The 100W PD charging Mac adapter for MacBook Air features a versatile Thunderbolt 3 port. Supports not only 5K@60Hz display and 40Gbps data transfer, but also 100W PD charging, allowing the MacBook to charge quickly and efficiently, with an input of 100W and an output of 85W to ensure charging performance. This makes it an all-in-one accessory for both power and connectivity needs.
  • [High Speed File Data Transfer ] The MacBook USB C Hub offers Thunderbolt 3 data transfer up to 40Gbps, USB 2.0 up to 480Mbps, and USB 3.0/USB-C up to 5Gbps.You can easily connect a USB keyboard, mouse, drive, and hard disk to your laptop using this MacBook Air adapter. Note: For stable connection, avoid using this MacBook adapter with high-power devices. It supports one hard drive and is not compatible with the Apple USB SuperDrive.
  • [SD/Micro SD Card Reader Hub ] With the MacBook HDMI adapter, both SD and SD card readers can be read at the same time, with speeds up to 104Mb/s. You can instantly browse photos on your USB C smartphone laptop anytime, anywhere, quickly and easily, and download hundreds of photos to your Macbook laptop in seconds.
eval "$(/opt/homebrew/bin/brew shellenv)"

oder:

eval "$(/usr/local/bin/brew shellenv)"

Damit die Änderung dauerhaft bleibt, übernehmen Sie die entsprechende Zeile in die passende Shell-Startdatei, bei zsh normalerweise ~/.zprofile.

Command-Line-Tools- oder Xcode-Fehler

Prüfen Sie das aktive Entwicklerverzeichnis:

xcode-select --print-path

Starten Sie die Installation beziehungsweise Aktualisierung erneut:

xcode-select --install

Nach einem macOS-Upgrade können die Command Line Tools veraltet oder inkompatibel sein. Suchen Sie dann über die macOS-Softwareaktualisierung beziehungsweise softwareupdate nach einer passenden Version. Einzelne Werkzeuge wie xcodebuild gehören zu vollständigem Xcode und nicht zwingend zum separaten Command-Line-Tools-Paket.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Falsche Architektur oder falscher Präfix

Nutzen Sie alle vier Prüfungen:

arch
uname -m
command -v brew
brew --prefix

Typische native Kombinationen sind arm64 mit /opt/homebrew sowie x86_64 mit /usr/local. Andere Kombinationen sind nicht automatisch defekt, deuten aber häufig auf Rosetta, eine gemischte Umgebung oder eine alte Installation hin.

Zwei Homebrew-Installationen

Löschen Sie nicht sofort eine Installation. Sichern Sie bei einer alten Intel-Installation auf Apple Silicon zunächst den Paketbestand:

arch -x86_64 /usr/local/bin/brew bundle dump --file=~/intel-Brewfile

Prüfen Sie die erzeugte Datei, installieren Sie die benötigten Pakete in der nativen Installation neu und entfernen Sie die alte Installation erst danach. Weitere Hinweise zu Rosetta und parallelen Installationen stehen in den Homebrew Common Issues.

Netzwerk-, GitHub- oder curl-Fehler

Der Installer lädt von GitHub. DNS-Probleme, Proxyserver, Unternehmensfirewalls oder eingeschränkte Netzwerke können den Download verhindern. Verwenden Sie keine zufälligen Drittanbieter-Skripte und deaktivieren Sie nicht vorschnell Sicherheitsfunktionen.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Für spezielle Netzwerkinfrastrukturen dokumentiert Homebrew Git-Remote-Mirrors über HOMEBREW_BREW_GIT_REMOTE und HOMEBREW_CORE_GIT_REMOTE. Das ist eine fortgeschrittene Vertrauensentscheidung und kein normaler Installationsschritt.

Best Value
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Berechtigungsprobleme

Verwenden Sie für normale Installationen nicht:

sudo brew install paketname

Das Administratorpasswort kann während der Ersteinrichtung erforderlich sein. Die vorgesehenen Standardpräfixe sind jedoch so ausgelegt, dass normale Homebrew-Befehle anschließend ohne sudo funktionieren. Nachträgliche Root-Befehle können Besitz- und Rechteprobleme verursachen.

Warnungen von brew doctor

Beheben Sie die konkrete Ursache und erstellen Sie keine manuellen Symlinks für versionierte Bibliotheken. Solche Verknüpfungen können unvollständige Aktualisierungen verdecken und dazu führen, dass inkompatible Bibliotheken geladen werden. Die vollständige Fehlermeldung und die Hinweise in den Common Issues sind maßgeblich.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Homebrew aktualisieren

Ein einfacher Wartungsablauf lautet:

brew update
brew outdated
brew upgrade
brew cleanup

Führen Sie brew cleanup nur aus, wenn Sie alte Versionen und Caches nicht mehr benötigen.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Homebrew entfernen

Für die offizielle Deinstallation verwenden Sie den Uninstaller:

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

Der Uninstaller stammt aus dem offiziellen Homebrew-Installer-Repository. Für eine bestimmte Installation kann der Pfad angegeben werden:

curl -fsSLO https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh
/bin/bash uninstall.sh --path /usr/local

Ersetzen Sie /usr/local nur durch das tatsächlich zu entfernende Präfix. Bei einer Migration sollten Sie vorher den Paketbestand sichern.

Wichtige Sonderfälle

Benötige ich Rosetta?

Nein, nicht für eine native Apple-Silicon-Homebrew-Installation. Rosetta wird nur benötigt, wenn Sie Intel-Software auf Apple Silicon ausführen müssen. Eine unter Rosetta gestartete Shell kann jedoch eine separate Intel-Homebrew-Installation verwenden.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Kann Homebrew auf einem externen Laufwerk installiert werden?

Technisch sind abweichende Installationspfade möglich, Homebrew empfiehlt jedoch den Standardpfad. Ein eigener Pfad kann die Verfügbarkeit von Bottles beeinträchtigen und Kompilierungen aus dem Quellcode erzwingen. Für eine normale Installation ist der Standardpfad die robustere Wahl.

Was passiert mit der Homebrew-API?

Aktuelle Standardinstallationen verwenden Formulae und Casks nicht zwingend über lokale vollständige Checkouts, sondern können die Homebrew-API nutzen. HOMEBREW_NO_INSTALL_FROM_API=1 ist eine fortgeschrittene Einstellung und sollte nicht ohne konkreten Grund global aktiviert werden.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.