Installation methods
oForum can be installed in three ways:- Install script (recommended) - Quick installation via curl
- Pre-built binaries - Download and install manually
- From source - Build from the Go source code
System requirements
Before installing, ensure you have:PostgreSQL
Any recent version (12+)
Go 1.25+
Only required if building from source
Linux or macOS
amd64 or arm64 architecture
Disk space
~10MB for the binary
Method 1: Install script
The fastest way to install oForum is using the official install script:How it works
The script automatically:- Detects your operating system (macOS/Linux)
- Detects your CPU architecture (amd64/arm64)
- Downloads the latest release from GitHub
- Installs the binary to
/usr/local/bin/oforum - Installs the man page to
/usr/local/share/man/man1 - Makes the binary executable and available system-wide
Script output example
Script output example
Custom install directory
If you don’t have sudo access or want to install to a different location:~/.local/bin is in your PATH:
~/.bashrc, ~/.zshrc, or equivalent to make it permanent.
Verify installation
Check that oForum is installed correctly:Method 2: Pre-built binaries
Download pre-built binaries manually from the releases page.Available platforms
- macOS (Intel and Apple Silicon)
oforum-{version}-darwin-amd64oforum-{version}-darwin-arm64
- Linux (x86-64 and ARM64)
oforum-{version}-linux-amd64oforum-{version}-linux-arm64
Installation steps
Method 3: Build from source
If you want to modify oForum or build the latest development version, you can compile it from source.Prerequisites
- Go 1.25 or later
- Git
- PostgreSQL (for running/testing)
Build steps
Build the binary
oforum.Build for all platforms
To cross-compile for all supported platforms:dist/ directory for:
- Linux (amd64, arm64)
- macOS (amd64, arm64)
Platform-specific instructions
macOS
Install PostgreSQL on macOS
Install PostgreSQL on macOS
Using Homebrew:Create the database:
Fix 'unidentified developer' warning
Fix 'unidentified developer' warning
If macOS blocks the binary, run:Or allow it in System Preferences → Security & Privacy.
Linux
Install PostgreSQL on Ubuntu/Debian
Install PostgreSQL on Ubuntu/Debian
Install PostgreSQL on Fedora/RHEL
Install PostgreSQL on Fedora/RHEL
Install PostgreSQL on Arch Linux
Install PostgreSQL on Arch Linux
Verification steps
After installation, verify everything works:Updating oForum
Keep oForum up to date with the built-in update command:The update command requires the same permissions as installation. If you installed with
sudo, run sudo oforum update.Troubleshooting
Command not found: oforum
Command not found: oforum
The binary is not in your
PATH. Either:-
Add the install directory to your PATH:
-
Or run with the full path:
Permission denied when installing
Permission denied when installing
You need write access to
/usr/local/bin. Either:-
Use sudo:
-
Or install to your home directory:
Cannot connect to PostgreSQL
Cannot connect to PostgreSQL
Make sure PostgreSQL is running:Test the connection:
Build fails with Go version error
Build fails with Go version error
Ensure you have Go 1.25 or later:If your version is older, update Go:
- Official Go downloads
- Or use your package manager (Homebrew, apt, etc.)
Architecture not supported
Architecture not supported
oForum supports:If you’re on an unsupported platform, you can try building from source with:
- macOS: amd64 (Intel), arm64 (Apple Silicon)
- Linux: amd64 (x86-64), arm64 (aarch64)
Installation script fails to download
Installation script fails to download
If the GitHub API is blocked or rate-limited:
- Download the binary manually from releases
- Install it using Method 2 (pre-built binaries) above
Next steps
Quickstart
Get oForum running with a step-by-step guide
Environment variables
Learn about environment variables and settings
Self-hosting
Deploy oForum to production environments
Development setup
Set up a local development environment