Skip to content

Commit

Permalink
Merge pull request #1125 from mrodriguez3313/patch-1
Browse files Browse the repository at this point in the history
Update ipfs-updater.md
  • Loading branch information
johnnymatthews authored Apr 28, 2022
2 parents b27c6b5 + 47cc4a7 commit 3d98bea
Showing 1 changed file with 16 additions and 16 deletions.
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

0 comments on commit 3d98bea

Please sign in to comment.