Re: How do I determine the ABI string used by pkg?
- In reply to: Mel Pilgrim : "How do I determine the ABI string used by pkg?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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