Re: How do I determine the ABI string used by pkg?
- Reply: Dan Langille: "Re: How do I determine the ABI string used by pkg?"
- In reply to: Dan Langille : "Re: How do I determine the ABI string used by pkg?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Mar 2023 20:03:44 UTC
On 8 March 2023 4:09:51 am AEDT, Dan Langille <dan@langille.org> wrote: > Baptiste Daroussin wrote on 3/6/23 2:56 AM: > > On Wed, Mar 01, 2023 at 11:50:13PM -0800, Mel Pilgrim 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 config ABI > > pkg config ALTABI > When run in a freshly-created jail: > > [r730-01 dvl ~] % sudo jexec empty_tester > root@:/ # pkg config ABI > FreeBSD:13:amd64 > root@:/ # pkg config ALTABI > freebsd:13:x86:64 > root@:/ # > > Mel: I think this is what you wanted to get? Dan, could you confirm whether the first one also installed pkg(8), so subsequent 'pkg info' would show (only) pkg? If so, would 'pkg -N config ABI' have done the same? Or failed? Or shown the ABI? That is - given that pkg(7) must know $ABI to resolve url: in Whatever.conf to install pkg(8) - is it necessary to bootstrap pkg to determine ABI via pkg(7)? Thanks, Ian