Follow the steps in this document if you get "No such file or directory" or "not found" error by downloding from the pre-compiled official releses.
This document describes how to install and update IPFS (Kubo, fka go-ipfs) on Alpine Linux and not on Docker container image.
We have found that it is more stable to build from source and update with the gup command.
- Tested on: Alpine 3.16
# Setup
cd ~
mkdir -p /usr/local/go/bin
mkdir -p ~/go
ln -s /usr/local/go/bin ~/go/bin
echo 'export GOPATH="$(go env GOPATH)"' >> /etc/profile
echo 'export PATH="${PATH}:/usr/local/go/bin"' >> /etc/profile
echo 'export PATH="${PATH}:${GOPATH}/bin"' >> /etc/profile
apk add --no-cache alpine-sdk build-base go
reboot# Install updater written in Go
go install github.com/nao1215/gup@latest
# Install kubo (the ipfs command written in Go)
go install github.com/ipfs/kubo/cmd/ipfs@latest
# [Optional](Requires Go 1.19)
go install github.com/ipfs-cluster/ipfs-cluster/cmd/ipfs-cluster-service@latest
go install github.com/ipfs-cluster/ipfs-cluster/cmd/ipfs-cluster-ctl@latest# Check updates of the packages installed by `go install`
gup check
# Update/upgrade all packages installed by `go install`
gup update