Point your FreeBSD VMs at one Poudrine repository on your trusted LAN or private VPN. Every VM uses the same address for pkg install and pkg upgrade. Behind that address, Poudrine combines packages built on your server with packages from FreeBSD.
One repository. Your builds. Every VM.
Get started · Latest release · Operations guide
I built Poudrine to make keeping my servers up to date fast and easy, especially when security patches are available before FreeBSD publishes updated packages.
In one real deployment, Poudrine offered newer versions of 51 out of 301 packages compared with the FreeBSD repository. For 31 of those packages, the version distributed by FreeBSD had known security vulnerabilities. That snapshot is why I wanted an easier way to build and deliver updates.
flowchart LR
accTitle: One package repository for all your FreeBSD VMs
accDescr: Web, database and test VMs use the same Poudrine repository. Poudrine reads local Poudriere builds and fetches and caches packages from FreeBSD. Downloads register ports for recurring builds, which publish updated packages back to the repository.
subgraph clients["Your FreeBSD VMs"]
web["Web VM"]
db["Database VM"]
test["Test VM"]
end
subgraph server["Your server"]
repo["Poudrine<br/>One address · signed catalog"]
builds["Poudriere<br/>Automatic scheduled builds"]
cache["Shared download cache"]
end
web --> repo
db --> repo
test --> repo
repo -.->|Register downloaded ports| builds
builds -->|Publish packages| repo
repo -->|Reuse downloads| cache
cache -->|Fetch once| freebsd["FreeBSD packages"]
classDef primary fill:#c62828,color:#fff,stroke:#c62828,stroke-width:2px
classDef source fill:#fceeee,color:#24222c,stroke:#d99a9a
class repo primary
class builds,cache,freebsd source
Run pkg install and pkg upgrade as usual. Poudrine offers the newer package from your local builds or FreeBSD, preferring local builds on a tie. FreeBSD downloads are cached for your other VMs.
In the background, Poudriere builds tracked ports and publishes ready packages as their dependencies become available. Packages with custom build options use matching local builds only.
Use a FreeBSD/amd64 RELEASE host with jail support and space for ports, builds and packages. Run the server commands below as root in a sh shell on a fresh installation.
fetch -o poudrine-freebsd-amd64.tar.gz https://github.com/inkeliz/poudrine/releases/latest/download/poudrine-freebsd-amd64.tar.gz
tar -xzf poudrine-freebsd-amd64.tar.gz
cd poudrine
make installsysrc poudrine_enable=YES
service poudrine start
service poudrine statusPoudrine starts automatically at boot and listens on IPv6 by default: 8080 for packages and 8181 for the website. Initial jail and ports setup can take a while; the website may open before packages are ready.
In your browser, visit https://[SERVER_IPV6]:8181/, replacing SERVER_IPV6 with your server’s IPv6 address and keeping the brackets. You can also use https://buildhost:8181/ if that hostname resolves to the server’s IPv6 address.
Alternatively, open an SSH tunnel from your workstation. Replace admin with your SSH username and SERVER_IPV6 with the server’s IPv6 address:
ssh -6 -N -L '8181:[::1]:8181' admin@SERVER_IPV6Leave that terminal open, then visit https://localhost:8181/. Do not put brackets around the IPv6 address after admin@.
On the server, display the website certificate fingerprint and your one-time setup token:
openssl x509 -in /var/db/poudrine/web-tls.crt -noout -sha256 -fingerprint
cat /usr/local/etc/poudrine.json.setup-tokenCompare the certificate’s SHA-256 fingerprint with the server output before accepting the self-signed certificate.
- On the website, click the Management tab.
- Paste the setup token and click Create administrator key.
- Click Copy private key and save the entire key in your password manager, including its PEM header and footer. This is your sign-in credential.
- Click I’ve saved my key · Sign in, then paste the saved key to sign in.
- Check the Package repository URL in the setup screen and choose Done, or Save settings if you changed it.
Click the website’s Client tab, then Copy setup commands. Paste them into a root sh shell on each FreeBSD VM. You can then use pkg install and pkg upgrade as usual. FreeBSD continues to provide OS updates.
See the installation guide for custom listeners, SSH access and source builds.
Use Management to monitor builds, browse package inventory and see client activity. Open Service settings → Poudriere builds to customize packages, set working hours and adjust parallel builds.
- Troubleshoot: inspect build logs and retry failed packages with their dependents.
- Upgrade: install the new binaries, then run
service poudrine restart. Supported supervisors preserve the active build; older installations need a one-time stop/start. - Configure: edit settings in Management or
/usr/local/etc/poudrine.json.
See the operations guide for package overlays, configuration, upgrades and the signed API.
Keep the repository and Management on a trusted LAN or private VPN. Defaults bind all IPv6 interfaces. Restrict access with a firewall; ordinary clients can trigger resource-intensive build work.
The network-facing service holds the repository signing key. Protect its host and backups, save your administrator key securely, and use a VPN or restricted HTTPS proxy for confidentiality. Client inventory is self-reported; the download cache limit does not limit build storage.
Read the security guide for key recovery, client identity and network placement.
Run make test and make build on FreeBSD. See the development guide for local setup, FreeBSD integration tests and releases.