Getting started with poudriere – with latest packages and OpenZFS reddit / freebsd ---------------------------------------------------------------------- grahamperrin · 2022-06-12 01:15 1. `pkg install --quiet --yes ports-mgmt/poudriere-devel` 2. `mkdir -p /usr/local/etc/pkg/repos` 3. `ee /usr/local/etc/pkg/repos/FreeBSD.conf` 4. `ee /usr/local/etc/pkg/repos/poudriere.conf` 5. `ee /usr/local/etc/poudriere.conf` 6. `poudriere jail -c -v 13.1-RELEASE -j thirteen` 7. `poudriere ports -c` ## Hints ### Step 3 The `FreeBSD.conf` file can comprise four lines: FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", priority: 2 } ### Step 4 For a jail named *thirteen*, the `poudriere.conf` file for the repository can comprise these lines: { "poudriere": { "url": "file:///usr/local/poudriere/data/packages/thirteen-default", "enabled": true, "REPO_AUTOUPDATE": true, "priority": 3 } } ### Step 5 Edit this: `#ZPOOL=zroot` * remove `#` from the beginning of the line * if the name of your ZFS pool is something other than *zroot*, then change the `zroot` part of the line. Edit this: `#PACKAGE_FETCH_BRANCH=latest` * remove `#` from the beginning of the line. ### Further information and more. ---------------------------------------------------------------------- grahamperrin · 2022-06-12 01:28 ### Updating the ports tree * `poudriere ports -u` ### Packaging stuff An example, [emulators/virtualbox-ose- kmod](https://www.freshports.org/emulators/virtualbox-ose-kmod/): * `poudriere bulk -j thirteen -Ct emulators/virtualbox-ose-kmod` The result: * ---------------------------------------------------------------------- infostud · 2022-06-12 09:43 For advanced usage consider https://www.digitalocean.com/community/tutorials/how-to-build-and- deploy-packages-for-your-freebsd-servers-using-buildbot-and-poudriere It works for a file listing hundreds of packages. Fails when building LLVM or Node which blows swap space. I only have 16GB RAM. Also I get runaway process timeouts with multi-GB fetches. I only have 25Gbps download. ---------------------------------------------------------------------- grahamperrin · 2022-06-12 12:44 Thanks, > advanced There are many such guides to using poudriere. I created a separate post for one: [Poudriere: A complete guide](https://old.reddit.com/r/f reebsd/comments/vam3oa/poudriere_a_complete_guide/). # Getting started Here, I kept things as brief as possible. The ideal is: * for a newcomer to be *fearless* * for the person to simply get *started* – nothing more. ---------------------------------------------------------------------- grahamperrin · 2022-06-12 13:29 ### Installing things that are packaged by poudriere An example: * `pkg install virtualbox-ose` The result: root@fuji:~ # pkg install virtualbox-ose Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating poudriere repository catalogue... poudriere repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 5 package(s) will be affected (of 0 checked): New packages to be INSTALLED: aalib: 1.4.r5_13 [poudriere] libIDL: 0.8.14_5 [poudriere] sdl: 1.2.15_15,2 [poudriere] virtualbox-ose: 6.1.34 [poudriere] virtualbox-ose-kmod: 6.1.34_1 [poudriere] Number of packages to be installed: 5 The process will require 169 MiB more space. Proceed with this action? [y/N]: ### Explanation The poudriere repository was chosen because it has a higher *priority* (`3`) than the FreeBSD repository (`2`). Priorities that were set when getting started. ### Hint `pkg -vv | grep -e url -e enabled -e priority`