Skip to content

Commit c5b7983

Browse files
ElPaisanolidel
andauthored
Kubo install: update Mac instructions (#1655)
Co-authored-by: Marcin Rataj <[email protected]>
1 parent a3bccac commit c5b7983

File tree

1 file changed

+7
-60
lines changed

1 file changed

+7
-60
lines changed

docs/install/command-line.md

Lines changed: 7 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For installation instructions for your operating system, select the appropriate
103103
$GO_IPFS_LOCATION = pwd
104104
```
105105

106-
1. Create a powershell profile:
106+
1. Create a PowerShell profile:
107107

108108
```powershell
109109
if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }
@@ -147,66 +147,14 @@ For installation instructions for your operating system, select the appropriate
147147

148148
### macOS
149149

150-
1. Decide which macOS binary to download from [`dist.ipfs.tech`](https://dist.ipfs.tech/#kubo) by determining whether your system uses an Apple or Intel CPU. On most macOS systems, you can find systems specs by doing the following:
150+
> The `brew` installation method supports both Intel and Apple Silicon hardware. If you prefer a manual installation, `darwin-amd64` (Intel) and `darwin-arm64` (Apple Silicon) artifacts available [here](https://dist.ipfs.tech/kubo/v0.21.0/).
151151
152-
1. In the upper left hand corner of your screen, click the "Apple" icon.
153-
1. In the drop-down menu displayed, select _About this Mac_.
154-
1. A window with information about your Mac is displayed.
155-
- If your system uses Apple Silicon, the specific chip displays, such as _Apple M1 Pro_.
156-
- If your system uses an Intel CPU, the specific processor displays, such as _2.3 GHz 8-Core Intel Core i9_.
152+
1. Navigate to a terminal.
157153

154+
1. Use `brew` to install Kubo:
158155

159-
1. Download the appropriate macOS binary from [`dist.ipfs.tech`](https://dist.ipfs.tech/#kubo) based on your hardware. For example:
160-
161-
```bash
162-
curl -O https://dist.ipfs.tech/kubo/v0.22.0/kubo_v0.22.0_darwin-amd64.tar.gz
163-
```
164-
165-
> :warning:
166-
> Ensure that you download and install the appropriate binary, as the binary for an Intel-based system won't work on a system with Apple Silicon, and vice-versa.
167-
168-
- _If you are using hardware with Apple Silicon, download the `darwin-arm64` binary._ For example, to download the IPFS binary for `Kubo v0.22.0` for an Apple-based system, run the following command:
169-
170-
```bash
171-
curl -O https://dist.ipfs.tech/kubo/v0.22.0/kubo_v0.22.0_darwin-arm64.tar.gz
172-
```
173-
174-
- _If you are using hardware with an Intel Processor, download the `darwin-amd64` binary._ For example, to download the IPFS binary for `Kubo v0.22.0` for an Intel-based system, run the following command:
175-
176-
```bash
177-
curl -O https://dist.ipfs.tech/kubo/v0.22.0/kubo_v0.22.0_darwin-amd64.tar.gz
178-
```
179-
180-
1. Unzip the file. For example, to unzip `Kubo v0.22.0` for an Intel-based system:
181-
182-
```bash
183-
tar -xvzf kubo_v0.22.0_darwin-amd64.tar.gz
184-
```
185-
186-
The following output displays:
187-
188-
```bash
189-
x kubo/
190-
x kubo/ipfs
191-
x kubo/install.sh
192-
```
193-
194-
1. Navigate to the `kubo` directory:
195-
196-
```bash
197-
cd kubo
198-
```
199-
200-
1. Run the install script:
201-
202-
```bash
203-
sudo bash install.sh
204-
```
205-
206-
On successful install, the following displays:
207-
208-
```bash
209-
> Moved ./ipfs to /usr/local/bin
156+
```shell
157+
brew install ipfs
210158
```
211159

212160
1. Confirm your Kubo installation:
@@ -220,7 +168,6 @@ For installation instructions for your operating system, select the appropriate
220168
```bash
221169
> ipfs version 0.22.0
222170
```
223-
224171
:::
225172

226173
::: tab linux id="install-kubo-linux"
@@ -389,7 +336,7 @@ When an IPFS command executes without parameters, the CLI client checks whether
389336

390337
- If an `$IPFS_PATH` is in the default location (for example, `~/.ipfs` on Linux), then it works automatically and the IPFS CLI client talks to the locally running `ipfs` daemon without any extra configuration.
391338

392-
- If an `$IPFS_PATH` isn't in the default location, use the `--api <rpc-api-addr>` command-line argument. Alternatively, you can set the environment variable to `IPFS_PATH`. `IPFS_PATH` will point to a directory with the api file with the existing `ipfs` daemon instance.
339+
- If an `$IPFS_PATH` isn't in the default location, use the `--api <rpc-api-addr>` command-line argument. Alternatively, you can set the environment variable to `IPFS_PATH`. `IPFS_PATH` will point to a directory with the `$IPFS_PATH/api` file pointing at the Kubo RPC of the existing `ipfs` daemon instance.
393340

394341
#### Most common examples
395342

0 commit comments

Comments
 (0)