Skip to content

ipfs

install

Download Kubo (Go implementation) binaries on dist.ipfs.tech

$ wget https://dist.ipfs.tech/kubo/vx.y.z/kubo_vx.y.z_linux-amd64.tar.gz
$ tar xvfz kubo_vx.y.z_linux-amd64.tar.gz
$ cd kubo
# ./install.sh
# ipfs --version
# sysctl -w net.core.rmem_max=2048000   // UDP buffer size
$ tmux new -s ipfs
$ ipfs init
$ ipfs daemon
<Ctrl-D>
$ ipfs swarm peers

usage

$ ipfs add <filename>
$ ipfs get <CID-hash>
$ ipfs pin add <CID-hash>
$ ipfs pin ls
$ ipfs pin rm <CID-hash>                // unpin
$ ipfs repo gc                          // delete unpinned files