1 min readMar 29, 2026by jakub
FreeBSD
Install Trident on FreeBSD using pkg.
Note
FreeBSD packages are currently available for amd64 only.
Automatic Setup
The repository setup script handles everything:
Bash
curl -sSL https://pkg.trident-cache.com/setup | sudo shFreeBSD-native variant (works on minimal hosts without curl/sudo):
Bash
fetch -qo - https://pkg.trident-cache.com/setup | su -m root -c shThen install:
Bash
sudo pkg install -U tridentManual Setup
1. Add the repository
Create /usr/local/etc/pkg/repos/trident.conf:
trident: {
url: "https://pkg.trident-cache.com/freebsd/<MAJOR>/amd64",
enabled: yes
}Use your FreeBSD major version for <MAJOR>:
- FreeBSD 14.x:
14 - FreeBSD 15.x:
15
Example:
Bash
MAJOR=$(uname -r | cut -d. -f1)
sudo tee /usr/local/etc/pkg/repos/trident.conf >/dev/null <<EOF
trident: {
url: "https://pkg.trident-cache.com/freebsd/${MAJOR}/amd64",
enabled: yes
}
EOF2. Install
Bash
sudo pkg update -f
sudo pkg install -U trident-U skips package catalog auto-refresh during install. This avoids a known
pkg metadata-format issue while Trident's FreeBSD repository is publishing
legacy packagesite.txz metadata.
Verify Installation
Bash
trident --versionNext Steps
- Configuration -- edit
/usr/local/etc/trident/config.toml - Service Management -- enable the rc.d service
Was this page helpful?