This directory contains the scripts and metadata required to build standard .deb packages for StarRocks (FE, BE, and CN).
- Bash 4.0+
- dpkg (providing
dpkg-debversion >= 1.19.0 for--root-owner-groupsupport) - StarRocks build artifacts: You must build StarRocks from source first to generate the
out/directories.
Run the build script from this directory:
./build.sh <version> [path_to_fe_out] [path_to_be_out] [arch] [path_to_cn_out]
Example:
./build.sh 4.0.4 ../../out/fe ../../out/be amd64 ../../out/be
Install the generated packages using apt:
sudo apt install ./starrocks-fe_4.0.4_amd64.deb
Note:
starrocks-beandstarrocks-cnare mutually exclusive and cannot be installed on the same host simultaneously.
The packages include systemd units for easy management:
sudo systemctl start starrocks-fesudo systemctl enable starrocks-besudo systemctl status starrocks-cn
/etc/starrocks/<comp>: Configuration files (Root-owned, 640/750 permissions)/usr/lib/starrocks/<comp>: Binaries and shared libraries/var/lib/starrocks/<comp>: Metadata (FE) or Data Storage (BE/CN)/var/log/starrocks/<comp>: Component-specific logs