One-liner command to install IPFS on Linux 64bit - commands are based on official steps but it really installs latest version instead of finding latest version manually.

sudo is used to delete files from /tmp maybe it is redundant if $HOME/ is used instead.

A) If you do not need ipfs updater to conveniently update ipfs then use this method:
cd /tmp && release=$(wget -q https://github.com/ipfs/go-ipfs/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) && sudo wget -Nc https://github.com/ipfs/go-ipfs/releases/download/"$release"/go-ipfs_"$release"_linux-amd64.tar.gz && tar -xzf go-ipfs* && cd go-ipfs && sudo bash install.sh && cd - && sudo rm -rf /tmp/go-ipfs* && ipfs --version && ipfs --help && echo -e "\nTry to visit http://127.0.0.1:5001/webui/"
B) If you want to use ipfs updater ($ ipfs-update install latest) then possibly go this way (it will install updater and then updater will install go-ipfs)
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 && echo -e "\nAfter initializing, try to visit http://127.0.0.1:5001/webui/"
Setup service that will start IPFS at 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
Setup cronjob that will start IPFS if it was killed:
A) minutely:
f="/etc/cron.d/myjobs" && echo -e '* * * * * root if [ "$(systemctl status ipfs|grep -c killed)" -gt "0" ]; then systemctl start ipfs; fi' >> "$f" && chmod 755 "$f"
B) hourly:
f="/etc/cron.hourly/ipfskeeprunning" && echo -e '#!/bin/bash\nif [[ "$(systemctl status ipfs|grep -c killed)" -gt "0" ]]; then systemctl start ipfs; fi'|sudo tee "$f" && chmod 755 "$f"
If http://127.0.0.1:5001/webui/ is not loading, maybe you need to try:
sudo nano /etc/systemd/system/ipfs.service # and check it or consult search engine with some examples of this file
---- This tutorial also on Debian Wiki.