[Bug 278631] pkg update fails when explicitly providing ABI (since 1.21.2)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Apr 2024 13:50:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278631

--- Comment #6 from Markus Stoff <markus@stoffdv.at> ---
I'm using this feature to provision jails, which may run a different FreeBSD
release (i.e. running 13-RELEASE jails on a 14-RELEASE host).

To avoid fetching the package database for each and every jail separately, I'm
using a distinct package database, set via PKG_DBDIR, for every ABI used in
jails.

Essentially I'm running

  pkg -o ABI='FreeBSD:14:amd64' -o PKG_DBDIR='/path/to/FreeBSD:14:amd64/db'
update

to update the package database, and

  pkg -o ABI='FreeBSD:14:amd64' -o PKG_DBDIR='/path/to/FreeBSD:14:amd64/db' -o
PKG_CACHEDIR='/path/to/FreeBSD:14:amd64/db/cache' -r '/path/to/jail' install
some packages

to install packages into /path/to/jail.

Please let me know if you need further details.

-- 
You are receiving this mail because:
You are the assignee for the bug.