Date: Mon, 06 Mar 2023 20:16:06 +1100 From: Ian Smith <smithi@nimnet.asn.au> To: Mel Pilgrim <list_freebsd@bluerosetech.com> Cc: questions@freebsd.org Subject: Re: How do I determine the ABI string used by pkg? Message-ID: <53C6AE85-CFEF-4998-909D-15CCF929858C@nimnet.asn.au> In-Reply-To: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2 March 2023 6:50:13 pm AEDT, Mel Pilgrim <list_freebsd@bluerosetech=2Ec= om> wrote: > I need to determine the ABI string pkg uses on a given system, and > need=20 > to do so when there are no pkgs installed=2E Hi Mel, Then there's an old-school way maybe =2E=2E=2E #!/bin/sh rel=3D`uname -r` # e=2Eg=2E 2=2E0=2E5-RELEASE :) ABI=3D"`uname -s`:${rel%%\=2E*}:`uname -p`" export ABI # or echo $ABI cheers, Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53C6AE85-CFEF-4998-909D-15CCF929858C>