Re: How do I determine the ABI string used by pkg?

From: Ian Smith <smithi_at_nimnet.asn.au>
Date: Sun, 05 Mar 2023 17:49:27 UTC
On 6 March 2023 3:08:08 am AEDT, Kyle Evans <kevans@freebsd.org> wrote:
 > On Sat, Mar 4, 2023 at 11:10 PM Ian Smith <smithi@nimnet.asn.au>
 > wrote:
 > >
 > > On 2 March 2023 6:50:13 pm AEDT, Mel Pilgrim
 > <list_freebsd@bluerosetech.com> wrote:
 > >  > I need to determine the ABI string pkg uses on a given system,
 > and
 > >  > need to do so when there are no pkgs installed.
 > >
 > >  # pkg -N -vv | grep ABI
 > >
 > > gets you ABI and ALTABI; the former is the amd64 form, the latter
 > > x86:64

 > Note the more concising spelling of this if you know the names (or
 > need it for, say, scripting):
 > 
 > # pkg config ABI
 > # pkg config ALTABI

Quite so, but it needs 'pkg -N config' if no packages are installed, or it'll attempt to bootstrap pkg*.pkg, according to pkg(7).

cheers, Ian