About IPFS

The Interplanetary File System (IPFS) is a decentralized file system for building the next generation of the internet. Filecoin (opens new window) and many popular Web3 projects are built on IPFS. Some call it the hard drive for blockchain and Web3, though its power extends much further. Source: https://docs.ipfs.io/#ipfs

Installation

On DebianBullseye worked following to install IPFS update utility and IPFS itself:

cd /tmp && release=$(wget -q https://github.com/ipfs/ipfs-update/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) && sudo wget -Nc https://dist.ipfs.io/ipfs-update/"$release"/ipfs-update_"$release"_linux-amd64.tar.gz
tar -xzf ipfs-update* && cd ipfs-update && sudo bash install.sh && cd -
sudo rm -rf /tmp/ipfs-update*
ipfs-update install latest && ipfs --version && ipfs --help

Initialize the repository ($ ipfs init) and launch IPFS daemon ($ ipfs daemon) or instead of the daemon use the service to keep running and starting after boot:

echo -e "[Unit]\n\nDescription=IPFS Daemon\nAfter=syslog.target network.target remote-fs.target nss-lookup.target\n\n[Service]\nType=simple\nExecStart=$(which ipfs) daemon --init --migrate\nUser=$(whoami)\n\n[Install]\nWantedBy=multi-user.target"|sudo tee -a /etc/systemd/system/ipfs.service
sudo systemctl daemon-reload && sudo systemctl restart ipfs && sudo systemctl status ipfs && systemctl enable ipfs 

Service can be edited in /etc/systemd/system/ipfs.service and pay attention to "User" and "?ExecStart" variables to have correct values.

Update

ipfs-update install latest

Usage

Visit WebUI at http://127.0.0.1:5001/webui/ , run command "ipfs" via CLI.