Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 04:11:18 +1100
From:      Ian Smith <smithi@nimnet.asn.au>
To:        questions@freebsd.org
Cc:        bapt@freebsd.org
Subject:   Which repo will pkg(8) select?
Message-ID:  <48BC01A7-465A-45F5-A34A-609A2105191C@nimnet.asn.au>

next in thread | raw e-mail | index | archive | help
Hi crew,

is there any way to have pkg reveal which repository it will select with t=
he present configuration, without it having to actually connect with that r=
epo?

Specifically, bsdconfig(8) needs to know which /var/db/pkg/${something}=2E=
sqlite to check, where $something may be repo-FreeBSD or repo-FreeBSD_insta=
ll_cdrom or some custom repo, likely from the default /etc/pkg/FreeBSD=2Eco=
nf or from (e=2Eg) /usr/local/etc/pkg/repos/FreeBSD_install_cdrom=2Econf or=
 other, or an overriding REPOS_DIR setting=2E

I'd sooner not have to scan each of the $REPOS_DIR directories and then pa=
rse all *=2Econf files, emulating pkg(8)'s described selection algorithm, b=
ut I've found no suitable option in pkg-*(8) so far=2E

Thanks, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BC01A7-465A-45F5-A34A-609A2105191C>