Installation
This guide will help you install gflow on your system.
Prerequisites
- Operating System: Linux (tested on Ubuntu 20.04+)
- tmux: Required for job execution
- NVIDIA GPU (optional): For GPU job scheduling
- NVIDIA drivers (optional): If using GPU features
Installing Prerequisites
Ubuntu/Debian
# Install tmux
sudo apt-get update
sudo apt-get install tmuxFedora/RHEL
# Install tmux
sudo dnf install tmuxInstallation Methods
Method 1: Install via PyPI (Recommended)
Install gflow using uv (recommended for CLI tools):
uv tool install runqdOr using pipx:
pipx install runqdOr using pip:
pip install runqdThis will install pre-built binaries for Linux (x86_64, ARM64).
Install Nightly Build
To try the latest development version, install from TestPyPI:
pip install --index-url https://test.pypi.org/simple/ runqdMethod 2: Install via Cargo
Build and install from crates.io:
cargo install gflowOr install from the main branch:
cargo install --git https://github.com/AndPuQing/gflow.git --lockedThis will compile and install all binaries to ~/.cargo/bin/, which should be in your PATH.
Method 3: Build from Source
If you want to build from the latest source code:
Clone the repository:
bashgit clone https://github.com/AndPuQing/gflow.git cd gflowBuild the project:
bashcargo build --releaseThe executables will be in
target/release/.Install to system (optional):
bashcargo install --path .
Verify Installation
After installation, verify that gflow is properly installed:
# Check if commands are available
which gflowd ginfo gbatch gqueue gcancel
# Verify version
gflowd --versionSanity Check
1. tmux
Make sure tmux works:
tmux new-session -d -s test
tmux has-session -t test && echo "tmux is working!"
tmux kill-session -t test2. Daemon + GPU detection (Optional)
If you have NVIDIA GPUs, verify they're detected:
# (Optional) Create a config file with sensible defaults
gflowd init
# Start the daemon
gflowd up
# Verify it started
gflowd statusCheck system info and GPU allocation:
ginfoThe daemon shows GPU information if NVIDIA GPUs are available.
File Locations
gflow uses the following directories:
| Location | Purpose |
|---|---|
~/.config/gflow/gflow.toml | Configuration file (optional) |
~/.local/share/gflow/state.json | Persistent job state |
~/.local/share/gflow/logs/ | Job output logs |
Troubleshooting
Issue: Command not found
If you get "command not found" after installation:
Check if
~/.cargo/binis in your PATH:bashecho $PATH | grep -o ~/.cargo/binAdd to PATH if missing (add to
~/.bashrcor~/.zshrc):bashexport PATH="$HOME/.cargo/bin:$PATH"Reload shell:
bashsource ~/.bashrc # or ~/.zshrc
Issue: GPU not detected
Check NVIDIA drivers:
bashnvidia-smiVerify NVML library:
bashldconfig -p | grep libnvidia-mlIf GPU detection fails, gflow will still work but won't manage GPU resources.
Updating gflow
If installed via cargo:
cargo install gflow --forceIf built from source:
cd gflow
git pull
cargo build --release
cargo install --path . --forceUninstallation
To remove gflow:
# Stop the daemon first
gflowd down
# Uninstall binaries
cargo uninstall gflow
# Remove configuration and data (optional)
rm -rf ~/.config/gflow
rm -rf ~/.local/share/gflowNext Steps
Now that gflow is installed, head to the Quick Start Guide to learn how to use it!
Previous: Introduction | Next: Quick Start