Installation
Install Legra and verify your environment.
Prerequisites
- macOS (Apple Silicon), Linux (x86_64 / arm64), or Windows (x86_64)
Quick install
On Ubuntu, install Legra from the Snap Store:
sudo snap install legraThe legra install command is the repair and reinstall entry point after Legra
is present on the machine. On Ubuntu it installs or refreshes the Snap package
by default.
On macOS, Debian, RPM-based Linux distributions, or Windows, use the platform installer from the download page or one of the package-manager options below.
The shell installer remains available for non-interactive Linux installs:
curl -fsSL https://legra.ai/install.sh | shOn Windows (PowerShell):
irm https://legra.ai/install.ps1 | iexPackage managers
Snap (Ubuntu)
sudo snap install legraAPT (Debian / Ubuntu administrators)
curl -fsSL https://releases.legra.ai/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/legra-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/legra-archive-keyring.gpg] https://releases.legra.ai/apt stable main" | sudo tee /etc/apt/sources.list.d/legra.list
sudo apt update && sudo apt install legraThe APT repository publishes signed metadata for amd64 and arm64. Use this
path for managed Debian/Ubuntu fleets that intentionally avoid Snap.
Homebrew (macOS / Linux)
brew install legra-ai/tap/legrawinget (Windows)
winget install DataRoad.LEGRANative installers
Download the installer for your platform directly:
| Platform | Installer | Command |
|---|---|---|
| macOS (Apple Silicon) | legra.pkg | Double-click, or sudo installer -pkg legra.pkg -target / |
| Linux x86_64 (deb) | legra_amd64.deb | Use APT above for normal installs; local .deb files are for manual testing |
| Linux arm64 (deb) | legra_arm64.deb | Use APT above for normal installs; local .deb files are for manual testing |
| Linux x86_64 (rpm) | legra.x86_64.rpm | sudo rpm -i legra.x86_64.rpm |
| Linux arm64 (rpm) | legra.aarch64.rpm | sudo rpm -i legra.aarch64.rpm |
| Windows (x86_64) | legra.msi | Double-click, or msiexec /i legra.msi |
Upgrade
Once installed, use the built-in upgrade command to stay current:
legra system upgrade # Upgrade to the latest version
legra system upgrade --check # Check if an upgrade is available
legra system upgrade --version X # Install a specific version
legra system upgrade --rollback # Roll back to the previous versionVerify the installation
legra system versionYou should see version and protocol information printed to the terminal.
Next steps
Continue to the Quickstart to initialize a node and run your first query.