Skip to content

Instantly share code, notes, and snippets.

@adriens
Last active December 20, 2023 11:03
Show Gist options
  • Save adriens/74a2fd8adc6fd508d970bc1cb2419395 to your computer and use it in GitHub Desktop.
Save adriens/74a2fd8adc6fd508d970bc1cb2419395 to your computer and use it in GitHub Desktop.
# ❔ duckdb_cli-linux-amd64 install shell script
# ☝️ shell (sudo required)
cd
DUCKDB_VERSION=v0.7.1
echo $DUCKDB_VERSION
# 📦 Get the binary
wget https://github.com/duckdb/duckdb/releases/download/${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip
clear
file duckdb_cli-linux-amd64.zip
unzip duckdb_cli-linux-amd64.zip
file duckdb
# ⚙️ Install the binary
sudo mkdir /opt/duckdb
sudo cp duckdb /opt/duckdb
sudo chmod +x /opt/duckdb/duckdb
sudo ln -s /opt/duckdb/duckdb /usr/bin/duckdb
# 🚀 Test install
clear
duckdb --version
duckdb --help
# 🧽 Cleanup
cd
rm duckdb duckdb_cli-linux-amd64.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment