Installing IPFS

IPFS can be installed by following this process:

  1. Download the IPFS package using the following command:
$ curl https://dist.ipfs.io/go-ipfs/v0.4.4/go- ipfs_v0.4.4_linux-amd64.tar.gz -O 
  1. Decompress the .gz file:
$ tar xvfz go-ipfs_v0.4.4_linux-amd64.tar.gz 
  1. Move the ipfs file to an appropriate folder in order to make it available in the path:
$ mv go-ipfs/ipfs /usr/local/bin/ipfs 
  1. Initialize the IPFS node:
$ ipfs init initializing ipfs node at /home/imran/.ipfs generating 2048-bit RSA keypair...done 
peer identity: Qmbc726pLS9nUQjUbeJUxcCfXAGaXPD41jAszXniChJz62 to get started, enter: 
ipfs cat 
/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme 
  1. Enter the following command to ensure that IPFS has been successfully ...

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.