FreeBSD Packaging


Example

Manual packaging

You can make your own package based on ports.

cd /usr/ports/www/apache24
make package BATCH=yes

This command will store your package in /usr/ports/packages/All.

Using poudriere

poudriere is currently the official package builder for FreeBSD.

Installing poudriere

pkg install poudriere
# or
cd /usr/ports/ports-mgmt/poudriere
make
make install

Configuring poudriere

poudriere configuration is stored in /usr/local/etc/poudriere.conf and /usr/local/etc/poudriere.d

Deploying poudriere jail

poudriere jail -c -j myjail

Updating poudriere jail

poudriere jail -u -j myjail

Deploying poudriere ports tree

poudriere ports -c -p myports

Updating poudriere ports tree

poudriere ports -u -p myports

Bulk build

poudriere bulk -j myjail -p myports www/apache24