To try CockroachDB Cloud instead of running CockroachDB yourself, refer to the Cloud Quickstart.
See Release Notes for what's new in the latest release, v22.2.19. To upgrade to this release from an older version, see Cluster Upgrade.
On macOS ARM systems, spatial features are disabled due to an issue with macOS code signing for the GEOS libraries. Users needing spatial features on an ARM Mac may instead use Rosetta to run the Intel binary or use the Docker image distribution. Refer to GitHub tracking issue for more information.
Use one of the options below to install CockroachDB.
Use Homebrew
For CockroachDB v22.2.x and above, Homebrew installs binaries for your system architecture, either Intel or ARM (Apple Silicon).
For previous releases, Homebrew installs Intel binaries. Intel binaries can run on ARM systems, but with a significant reduction in performance. CockroachDB on ARM for macOS is experimental and is not yet qualified for production use and not eligible for support or uptime SLA commitments.
-
Instruct Homebrew to install CockroachDB:
$ brew install cockroachdb/tap/cockroachKeep up-to-date with CockroachDB releases and best practices:
cockroach process on the node. When upgrading to a new major version, you must complete additional steps to finalize the upgrade. If you need to upgrade through multiple major versions, you must complete each major-version upgrade separately, including finalizing the upgrade, before beginning the next one.Before starting the upgrade, review the release notes, including temporary limitations during the upgrade.
To upgrade CockroachDB via HomeBrew:
brew update
brew update
brew upgrade cockroach