Skip to content

Install Hydra With Homebrew

This tutorial walks through installing Hydra with Homebrew.

Tap the Hydra Homebrew repository first:

brew tap hydra-gitops/homebrew-tap https://github.com/hydra-gitops/homebrew-tap

macOS recommended:

brew trust --formula hydra-gitops/tap/hydra
brew install hydra-gitops/tap/hydra

Linux recommended:

brew trust --formula hydra-gitops/tap/hydra-bin
brew install hydra-gitops/tap/hydra-bin

To uninstall later:

brew uninstall hydra-gitops/homebrew-tap/hydra
# or
brew uninstall hydra-gitops/homebrew-tap/hydra-bin
brew untap hydra-gitops/tap

Hydra provides both a source formula (hydra) and a binary package (hydra-bin). On Linux, hydra-bin is recommended and downloads the released binary from GitHub. On Linux, self-compiling from source with hydra-gitops/tap/hydra also works. On macOS, hydra-gitops/tap/hydra is recommended.

Step 1: Check Whether hydra Is Already Installed

Start by checking whether hydra is available:

command -v hydra

Step 2: Install Hydra With Homebrew

Use the command for your platform. If you did not already add the tap, run:

brew tap hydra-gitops/homebrew-tap https://github.com/hydra-gitops/homebrew-tap

Then install Hydra:

macOS recommended:

brew trust --formula hydra-gitops/tap/hydra
brew install hydra-gitops/tap/hydra

Linux recommended:

brew trust --formula hydra-gitops/tap/hydra-bin
brew install hydra-gitops/tap/hydra-bin

Step 3: Check Again

After the installation, verify that hydra is now available:

command -v hydra

Step 4: Verify The CLI

hydra version

Demo Videos