Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ipfs-updater.md #1125

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/install/ipfs-updater.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#

```powershell
cd ~
wget https://dist.ipfs.io/ipfs-update/v1.7.1/ipfs-update_v1.7.1_windows-amd64.zip -Outfile ipfs-update_v1.7.1_windows-amd64.zip
wget https://dist.ipfs.io/ipfs-update/v1.8.0/ipfs-update_v1.8.0_windows-amd64.zip -Outfile ipfs-update_v1.8.0_windows-amd64.zip
```

2. Unzip the file and move it somewhere handy:

```powershell
Expand-Archive -Path ipfs-update_v1.7.1_windows-amd64.zip -DestinationPath ~\Apps\ipfs-update_v1.7.1
Expand-Archive -Path ipfs-update_v1.8.0_windows-amd64.zip -DestinationPath ~\Apps\ipfs-update_v1.8.0
```

3. Move into the `ipfs-update_v1.7.1` folder and check that the `ipfs-update.exe` works:
3. Move into the `ipfs-update_v1.8.0` folder and check that the `ipfs-update.exe` works:

```powershell
cd Apps\ipfs-update_v1.7.1\ipfs-update\
cd Apps\ipfs-update_v1.8.0\ipfs-update\
.\ipfs-update.exe --version

> ipfs-update version 1.7.1
> ipfs-update version 1.8.0
```

While you can use `ipfs-update` right now, it's better to add `ipfs-update.exe` to your `PATH` by using the following steps.
Expand All @@ -44,7 +44,7 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#

> Path
> ----
> C:\Users\Johnny\Apps\ipfs-update_v1.7.1\ipfs-update
> C:\Users\Johnny\Apps\ipfs-update_v1.8.0\ipfs-update
```

5. Check if a profile file for PowerShell already exists:
Expand All @@ -70,7 +70,7 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#
7. Add the address you just copied to PowerShell's `PATH` by adding it to the end of the `Microsoft.PowerShell_profile.ps1` file stored in `Documents\WindowsPowerShell`:

```powershell
Add-Content C:\Users\Johnny\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 "[System.Environment]::SetEnvironmentVariable('PATH',`$Env:PATH+';;C:\Users\Johnny\Apps\ipfs-update_v1.7.1\ipfs-update')"
Add-Content C:\Users\Johnny\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 "[System.Environment]::SetEnvironmentVariable('PATH',`$Env:PATH+';;C:\Users\Johnny\Apps\ipfs-update_v1.8.0\ipfs-update')"
```

8. Close and reopen your PowerShell window. Test that your `PATH` is set correctly by going to your home folder and asking `ipfs-update` for the version:
Expand All @@ -79,7 +79,7 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#
cd ~
ipfs-update --version

> ipfs-update version 1.7.1
> ipfs-update version 1.8.0
```

If you get an error during the next start of PowerShell while loading the profile file, you need to change `ExecutionPolicy` of PowerShell to `Unrestricted` as described in the [Microsoft PowerShell documentation](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7).
Expand All @@ -89,13 +89,13 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#
1. Download the macOS binary from [`dist.ipfs.io`](https://dist.ipfs.io/#ipfs-update).

```bash
curl -O https://dist.ipfs.io/ipfs-update/v1.7.1/ipfs-update_v1.7.1_darwin-amd64.tar.gz
curl -O https://dist.ipfs.io/ipfs-update/v1.8.0/ipfs-update_v1.8.0_darwin-amd64.tar.gz
```

2. Unzip the file:

```bash
tar -xvzf ipfs-update_v1.7.1_darwin-amd64.tar.gz
tar -xvzf ipfs-update_v1.8.0_darwin-amd64.tar.gz

> x ipfs-update/install.sh
> x ipfs-update/ipfs-update
Expand All @@ -115,21 +115,21 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#
```bash
ipfs-update --version

> ipfs-update version 1.7.1
> ipfs-update version 1.8.0
```

### Linux

1. Download the Linux binary from [`dist.ipfs.io`](https://dist.ipfs.io/#ipfs-update).

```bash
wget https://dist.ipfs.io/ipfs-update/v1.7.1/ipfs-update_v1.7.1_linux-amd64.tar.gz
wget https://dist.ipfs.io/ipfs-update/v1.8.0/ipfs-update_v1.8.0_linux-amd64.tar.gz
```

2. Unzip the file:

```bash
tar -xvzf ipfs-update_v1.7.1_linux-amd64.tar.gz
tar -xvzf ipfs-update_v1.8.0_linux-amd64.tar.gz

> x ipfs-update/install.sh
> x ipfs-update/ipfs-update
Expand All @@ -149,7 +149,7 @@ You can download pre-built binaries from [`dist.ipfs.io`](https://dist.ipfs.io/#
```bash
ipfs-update --version

> ipfs-update version 1.7.1
> ipfs-update version 1.8.0
```

## Install IPFS
Expand Down Expand Up @@ -189,13 +189,13 @@ To uninstall IPFS Update, delete the binary and `ipfs-update` from your `PATH` v
```powershell
gci -recurse -filter ipfs-update.exe -File -ErrorAction SilentlyContinue

> Directory: C:\Users\Johnny\Apps\ipfs-update_v1.7.1\ipfs-update
> Directory: C:\Users\Johnny\Apps\ipfs-update_v1.8.0\ipfs-update
```

2. Remove the `ipfs-update` directory:

```powershell
Remove-Item -Recurse -Force C:\Users\Johnny\Apps\ipfs-update_v1.7.1
Remove-Item -Recurse -Force C:\Users\Johnny\Apps\ipfs-update_v1.8.0
```

3. Delete the `ipfs-update` directory from the `PATH` variable. This process differs between Windows installations, so please check the [Microsoft documentation for details](https://docs.microsoft.com/en-us/cpp/build/setting-the-path-and-environment-variables-for-command-line-builds?view=msvc-160).
Expand Down