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: Sun, 05 Mar 2023 20:08:16 UTC
On 6 March 2023 5:48:05 am AEDT, Dan Langille <dan@langille.org> wrote:
> Ian Smith wrote on 3/5/23 12:36 PM:
> > On 6 March 2023 3:03:23 am AEDT, Dan Langille <dan@langille.org>
> wrote:
> > > Ian Smith wrote on 3/5/23 12:09 AM:
> > > > 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.
> > > >
> > > > # pkg -N -vv | grep ABI
> >
> > > Will that install pkg "when there are no pkgs installed", the
> key
> > > requirement of the question?
> >
> > No; using 'pkg -N' when no packages are installed, /usr/sbin/pkg
> won't attempt to bootstrap (i.e. install pkg*.pkg as
> /usr/local/sbin/pkg) but -vv still prints, here:
> >
> > ABI = "FreeBSD:12:amd64";
> > ALTABI = "FreeBSD:12:x86:64";
> Perhaps OP meant when pkg is not installed, because that's what I
> thought was intended.
>
> root@empty_tester:/ # pkg -N -vv | grep ABI
> pkg: pkg is not installed
Oh. Now I'm thoroughly confused.
Without -N, /usr/sbin/pkg should use by default /etc/pkg/FreeBSD.conf to first install pkg(8), but how can FreeBSD.conf resolve ${ABI} unless that's already set?
Without -N, does that install pkg for you? And then emit pkg -vv stuff incl. ABI?
Bapt, can you please help resolve this thread, starting at
https://lists.freebsd.org/archives/freebsd-questions/2023-March/002896.html
Note the list archives threading is still busted, as we discussed months ago, so you must back out to the index foreach.
cheers, Ian