2023-11-20 22:50:17 +01:00
---
title: Install zrok in macOS
sidebar_label: macOS
---
import { AssetsProvider } from '@site/src/components/assets-context';
import DownloadCard from '@site/src/components/download-card';
import styles from '@site/src/css/download-card.module.css';
2023-11-23 18:43:23 +01:00
## Darwin Binary
2023-11-20 22:50:17 +01:00
<AssetsProvider>
<div className={styles.downloadContainer}>
<DownloadCard
osName="macOS"
osLogo="/img/logo-apple.svg"
/>
</div>
</AssetsProvider>
Download the binary distribution for your macOS architecture. For Intel Macs use the `amd64` distribution. For Apple Silicon Macs use the `arm64` distribution.
2023-11-23 05:21:28 +01:00
1. Unarchive the distribution in a temporary directory.
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
```text
2024-03-14 14:31:46 +01:00
cd ~/Downloads && mkdir -p /tmp/zrok && tar -xf ./zrok*darwin*.tar.gz -C /tmp/zrok
2023-11-23 05:21:28 +01:00
```
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
1. Install the `zrok` executable.
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
```text
mkdir -p ~/bin && install /tmp/zrok/zrok ~/bin/
```
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
1. Add `~/bin` to your shell's executable search path. Optionally add this to your ~/.zshenv to persist the change.
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
```text
2023-11-23 18:43:23 +01:00
PATH=~/bin:$PATH
2023-11-23 05:21:28 +01:00
```
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
1. With the `zrok` executable in your path, you can then execute the `zrok` command from your shell:
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
```text
zrok version
```
2023-11-20 22:50:17 +01:00
2023-11-23 05:21:28 +01:00
```buttonless title="Output"
_
_____ __ ___ | | __
|_ / '__/ _ \| |/ /
/ /| | | (_) | <
/___|_| \___/|_|\_\
v0.4.0 [c889005]
```