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

From: Ian Smith <smithi_at_nimnet.asn.au>
Date: Mon, 06 Mar 2023 09:16:06 UTC
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.

Hi Mel,

Then there's an old-school way maybe ...

#!/bin/sh
rel=`uname -r`  # e.g. 2.0.5-RELEASE :)
ABI="`uname -s`:${rel%%\.*}:`uname -p`"
export ABI   # or echo $ABI

cheers, Ian