Install IPFS kubo_v0.20.0 LINUX for arm arm64 & amd64

This commit is contained in:
fred 2024-02-26 12:06:59 +01:00
parent 4831125504
commit 5a19b71d02
1 changed files with 37 additions and 0 deletions

37
install.kubo_v0.20.0_linux.sh Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1
mkdir -p ~/.zen/tmp
cd ~/.zen/tmp
# Check processor architecture
architecture=$(uname -m)
# Download appropriate version of kubo
if [ "$architecture" == "x86_64" ]; then
wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-amd64.tar.gz
# /ipfs/QmPA3PLy3pCFssr9vFn9SY2amegWT3GyFYS1g4T5hJwW4d
elif [ "$architecture" == "aarch64" ]; then
wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-arm64.tar.gz
# /ipfs/QmaLDWNLLUpTSZUE9YaZq3id6bNDcZsEmaW7xQFrzhD7Yy
elif [ "$architecture" == "armv7l" ]; then
wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-arm.tar.gz
# /ipfs/QmWA5L51H7ALodxWv3nT1XhWbRLdFVjC1SPENCFMH9nQAc
else
echo "Error: Unknown architecture"
exit 1
fi
tar -xvzf kubo.tar.gz
cd kubo
# Install
sudo bash install.sh
# Test & clean
[[ $(ipfs --version) ]] \
&& rm -Rf ~/.zen/tmp/kubo* \
|| echo "problem occured"
exit 0