Prepare Package Environment
Prerequisites
- A Linux-based operating system
wgetorcurlfor downloading filestarfor extracting the packagesudoprivileges for system-wide installation
Check System Architecture
-
Check your system architecture:
uname -mThe output will help you determine which package to download:
- If the output is
x86_64, download the x86_64 package - If the output is
aarch64, download the aarch64 package
- If the output is
Download the Package
-
Visit the Databend GitHub Releases page.
-
Choose the latest stable release version. For example, if you want to install version v1.2.755-nightly, you'll need to download:
databend-v1.2.755-nightly-x86_64-unknown-linux-gnu.tar.gzfor x86_64 Linux systemsdatabend-v1.2.755-nightly-aarch64-unknown-linux-gnu.tar.gzfor aarch64 Linux systems
-
Download the package using wget (replace
v1.2.755-nightlywith your desired version):wget https://github.com/databendlabs/databend/releases/download/v1.2.755-nightly/databend-v1.2.755-nightly-x86_64-unknown-linux-gnu.tar.gzOr using curl (replace
v1.2.755-nightlywith your desired version):curl -L -O https://github.com/databendlabs/databend/releases/download/v1.2.755-nightly/databend-v1.2.755-nightly-x86_64-unknown-linux-gnu.tar.gzNote: Make sure to replace
v1.2.755-nightlyin both the URL and filename with your desired version number.
Extract the Package
- Extract the package in the current directory:
tar xzf databend-v1.2.755-nightly-x86_64-unknown-linux-gnu.tar.gz
Verify the Installation
-
Check the extracted files:
ls --treeYou should see the following directory structure:
.
├── bin
│ ├── bendsql
│ ├── databend-bendsave
│ ├── databend-meta
│ ├── databend-metactl
│ └── databend-query
├── configs
│ ├── databend-meta.toml
│ └── databend-query.toml
├── readme.txt
├── scripts
│ ├── postinstall.sh
│ └── preinstall.sh
└── systemd
├── databend-meta.default
├── databend-meta.service
├── databend-query.default
└── databend-query.service -
Verify the binaries are executable:
./bin/databend-meta --version
./bin/databend-metactl --version
./bin/databend-query --version
./bin/bendsql --version
Create Databend User
-
Run the preinstall script to create the databend user and group:
sudo ./scripts/preinstall.shThis script will:
- Create a
databenduser and group if they don't exist - Set up necessary system configurations
- Create required directories with proper permissions
- Create a
Next Steps
Now that you have prepared the environment, you can proceed to: