FreeBSD¶
The current package source targets amd64 on FreeBSD 14 and 15. Existing rehearsal recipes select 14.5 and 15.1; other releases/architectures do not inherit a qualification result.
Source instructions and release qualification
These instructions reflect the checked-in 1.8.0 package/service sources. Existing CI recipes and historical rehearsals are not proof that a particular published package, repository signature or installed host has passed current qualification. Select and verify the exact released version, architecture, SKU and installed binary; 1.8.0 publication and full package lifecycle evidence remain separate release gates.
Repository setup¶
As an administrator, obtain and review the repository setup source before running it. On a minimal FreeBSD host, fetch avoids requiring curl/sudo:
fetch -o trident-repo-setup.sh https://pkg.trident-cache.com/setup
# Review the approved script and trust policy before executing as root:
su -m root -c 'sh ./trident-repo-setup.sh'
Or download the same file with curl -fsSL and execute the reviewed local copy. This prepares the repository; it is not installed-package, catalog-signature or service acceptance.
Manual repository selection¶
As root, create /usr/local/etc/pkg/repos/trident.conf. Select your actual supported major version:
MAJOR=$(uname -r | cut -d. -f1)
case "$MAJOR" in 14|15) ;; *) echo 'Unsupported FreeBSD major' >&2; exit 1 ;; esac
case "$(uname -m)" in amd64|x86_64) ;; *) echo 'Unsupported architecture' >&2; exit 1 ;; esac
mkdir -p /usr/local/etc/pkg/repos
cat > /usr/local/etc/pkg/repos/trident.conf <<EOF
trident: {
url: "https://pkg.trident-cache.com/freebsd/${MAJOR}/amd64",
enabled: yes
}
EOF
pkg update -f
pkg install -U trident
-U skips another automatic catalog refresh during that install; refresh explicitly first. The source uses this sequence, but no current live catalog-format, authenticity or signature result is inferred from it. Verify the selected repository/package through your release trust process.
Files, configuration and permissions¶
The package installs /usr/local/bin/trident, /usr/local/bin/trident-cli, /usr/local/etc/trident/config.toml and /usr/local/etc/rc.d/trident. It creates /var/db/trident and /var/log/trident; configure each state's actual path for FreeBSD rather than assuming a copied Linux path is rewritten. The current config manifest preserves edited config.toml; changed defaults may arrive as .pkgnew.
Use trident_config in /etc/rc.conf for a different file. JSON must have a .json extension; rc.d does not consult systemd's /etc/default/trident. Configure admin secrets and any required license.path with directories/files readable by the actual service user. A core unlicensed PASS response is not proof of caching.
Enable and verify¶
As root, after reviewing configuration and permissions:
sysrc trident_enable="YES"
service trident configtest
service trident start
service trident status
/usr/local/bin/trident --version
/usr/local/bin/trident-cli --config /usr/local/etc/trident/config.toml admin status
The packaged admin address is loopback 6085; the in-code fallback is 9000. Use the selected config, check /admin/ready on the admin listener and validate exact public/private/MISS/HIT bodies. The rc.d configuration test runs in the management context, so separately verify actual service-user read/write access. See Service Management.
Upgrade and rollback¶
Retain the old package and operator configuration. Check the new candidate before upgrade, then run service trident configtest and a planned service trident restart; the current rc.d restart preflight stops nothing if configuration is refused. Package upgrade itself does not restart the process. The systemd checked-upgrade helper is not a FreeBSD procedure.
The historical 1.7 package had configuration-directory permissions, overwrite and rc.d process-discovery defects. Do not assume modern hook behavior repairs those before the old package's removal scripts run. Follow the exact source 1.7→1.8 upgrade/recovery guide on a disposable target first. Rollback needs compatible configuration and starts cold; verify process identity, readiness and bodies before returning traffic.