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

From: Ian Smith <smithi_at_nimnet.asn.au>
Date: Wed, 08 Mar 2023 05:33:36 UTC
On 8 March 2023 7:23:04 am AEDT, Dan Langille <dan@langille.org> wrote:
 > On Tue, Mar 7, 2023, at 3:03 PM, Ian Smith wrote:

[...]

 > > Dan, could you confirm whether the first one also installed pkg(8),
 > so 
 > > subsequent 'pkg info' would show (only) pkg?
 > 
 > Please ignore my testing. It was invalid and did not have the correct
 > configuration.
 > 
 > Sorry. I did not set 'path = ' in my jail - I think it was using the
 > host.

At least we're all a bit confused :)

 > The above mentioned commands all attempt to install pkg when run in 
 > a properly configured jail.
 > 
 > root@empty_tester:/ # hostname
 > empty_tester.int.unixathome.org
 > root@empty_tester:/ # pkg info -l
 > The package management tool is not yet installed on your system.
 > Do you want to fetch and install it now? [y/N]: n
 > root@empty_tester:/ # pkg config ABI
 > The package management tool is not yet installed on your system.
 > Do you want to fetch and install it now? [y/N]: n 
 > root@empty_tester:/ # 

 > > If so, would 'pkg -N config ABI' have done the same?  Or failed? 
 > > Or shown the ABI?
 > 
 > root@empty_tester:/ # pkg -N config ABI
 > pkg: pkg is not installed
 > root@empty_tester:/ # c
 
 > > 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)?
 > 
 > Yes, I think it is, based on my testing so far.

Thanks for confirmation.

cheers, Ian