# IPFS updater
The IPFS updater is a command-line tool originally used to help users update their IPFS version. It has since been upgraded to allow users to install Go-IPFS as well. The easiest way to install the IPFS updater is by using the pre-built binaries, detailed below. See the project repository (opens new window) if you'd prefer to build it from source.
# Install updater
You can download pre-built binaries from dist.ipfs.io (opens new window). Binaries are also available from the IPFS Update GitHub release page (opens new window).
# Windows
Download the Windows binary from
dist.ipfs.io(opens new window).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.zipUnzip the file and move it somewhere handy:
Expand-Archive -Path ipfs-update_v1.7.1_windows-amd64.zip -DestinationPath ~\Apps\ipfs-update_v1.7.1Move into the
ipfs-update_v1.7.1folder and check that theipfs-update.exeworks:cd Apps\ipfs-update_v1.7.1\ipfs-update\ .\ipfs-update.exe --version > ipfs-update version 1.7.1While you can use
ipfs-updateright now, it's better to addipfs-update.exeto yourPATHby using the following steps.Print the current working directory and copy it to your clipboard:
pwd > Path > ---- > C:\Users\Johnny\Apps\ipfs-update_v1.7.1\ipfs-updateCheck if a profile file for PowerShell already exists:
Test-Path $profile > falseIf a profile already file exists, skip the next step and proceed with step 7.
Create a new PowerShell profile file:
New-Item -path $profile -type file –force > Mode LastWriteTime Length Name > ---- ------------- ------ ---- > -a---- 11/5/2020 6:38 PM 0 Microsoft.PowerShell_profile.ps1Add the address you just copied to PowerShell's
PATHby adding it to the end of theMicrosoft.PowerShell_profile.ps1file stored inDocuments\WindowsPowerShell: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')"Close and reopen your PowerShell window. Test that your
PATHis set correctly by going to your home folder and askingipfs-updatefor the version:cd ~ ipfs-update --version > ipfs-update version 1.7.1If you get an error during the next start of PowerShell while loading the profile file, you need to change
ExecutionPolicyof PowerShell toUnrestrictedas described in the Microsoft PowerShell documentation (opens new window).
# macOS
Download the macOS binary from
dist.ipfs.io(opens new window).curl https://dist.ipfs.io/ipfs-update/v1.7.1/ipfs-update_v1.7.1_darwin-amd64.tar.gz --output ipfs-update_v1.7.1_darwin-amd64.tar.gzUnzip the file:
tar -xvzf ipfs-update_v1.7.1_darwin-amd64.tar.gz > x ipfs-update/install.sh > x ipfs-update/ipfs-updateMove into the
ipfs-updatefolder and run the install script:cd ipfs-update sudo bash install.sh > installed /usr/local/bin/ipfs-updateCheck that
ipfs-updateinstalled properly:ipfs-update --version > ipfs-update version 1.7.1
# Linux
Download the Linux binary from
dist.ipfs.io(opens new window).wget https://dist.ipfs.io/ipfs-update/v1.7.1/ipfs-update_v1.7.1_linux-amd64.tar.gzUnzip the file:
tar -xvzf ipfs-update_v1.7.1_linux-amd64.tar.gz > x ipfs-update/install.sh > x ipfs-update/ipfs-updateMove into the
ipfs-updatefolder and run the install script:cd ipfs-update sudo bash install.sh > installed /usr/local/bin/ipfs-updateTest that
ipfs-updatehas installed correctly:ipfs-update --version > ipfs-update version 1.7.1
# Install IPFS
Run ipfs-update install followed by the version of Go-IPFS you want to install:
ipfs-update install 0.9.0
To install the latest release of Go-IPFS use the latest tag:
ipfs-update install latest
ipfs-update install downloads, tests, and installs the specified version of Go-IPFS. If a version of IPFS is already installed, that version is stashed and can be reverted to later.
# Downgrade IPFS
Use the revert function to roll-back to a previous version of Go-IPFS:
ipfs-update revert
ipfs-update revert reverts to the previously installed version of Go-IPFS. This is useful if the newly installed version has issues and you would like to switch back to your older stable installation.
# Uninstall updater
To uninstall IPFS Update, delete the binary and ipfs-update from your PATH variable.
# Windows
Find the location of the
ipfs-update.exefile:gci -recurse -filter ipfs-update.exe -File -ErrorAction SilentlyContinue > Directory: C:\Users\Johnny\Apps\ipfs-update_v1.7.1\ipfs-updateRemove the
ipfs-updatedirectory:Remove-Item -Recurse -Force C:\Users\Johnny\Apps\ipfs-update_v1.7.1Delete the
ipfs-updatedirectory from thePATHvariable. This process differs between Windows installations, so please check the Microsoft documentation for details (opens new window).
# Linux & macOS
Find the location of the
ipfs-updatefile:sudo find / -name ipfs-update /usr/local/bin/ipfs-updateRemove the file:
sudo rm /usr/local/bin/ipfs-update