On Dec 09 16:58:16, glok...@kuzdra.org wrote:
> The FAQ page [FAQ15] suggests to use "pkg_info -Q" to search the
> collection of pre-compiled packages. When I search for "tcl",
> I get a few "nextcloud" packages only, but no Tcl:
> 
>     $ pkg_info -v -Q tcl
>     PKG_PATH=<undefined>
>     nextcloud-27.1.11p0
>     nextcloud-28.0.11
>     nextcloud-28.0.12
>     nextcloud-29.0.8
>     nextcloud-29.0.9

For the record, 'pkg_info -v -Q tcl' emits the list below for me.

> At first I thought it was a bug. Then I read in pkg_info(1) that
> the flag -Q makes it "show the names of all packages in the *first*
> repository of the package search path" and that passing the flag
> -a makes it search *all* repositories instead.
> 
> Indeed, now I can find Tcl:
> 
>     $ pkg_info -a -Q tcl | grep ^tcl | head -n 3
>     tcl-8.5.19p6
>     tcl-8.6.13
>     tcl-snmptools-1.0p2

So what is your first repository?

> I couldn't find what is a repository (in the context of the pkg_info(1)
> man page), nor how they might be set up. I assume it's related to
> installurl(5) and PKG_PATH env. var.
> I haven't set or changed PKG_PATH. On the mirror that my system uses,
> at <https://cdn.openbsd.org/pub/OpenBSD/7.6/> there are two directories:
> packages and packages-stable. I assume they are the "repositories" and
> they both form a default search path, where -stable comes first.

Are you running -stable?

> The
> -stable contains the aforementioned nextcloud packages, hence matching
> the "tcl" search substring.

I have no PKG_PATH set, and my mirror
is https://ftp.spline.de/pub/OpenBSD/
Doesn't CDN actualy redirect you to
what is thinks is the fastest actual mirror?


        Jan


PKG_PATH=<undefined>
db-tcl-3.1.17p2v0
db-tcl-4.6.21p4v0
dbus-tcl-3.1
diffutiltcl-0.4.2
dtcltiny-0.4.5p1v0
eltclsh-1.19
gnustep-netclasses-1.1.0p10v0
graphviz-tcl-10.0.1
hamlib-tcl-4.4p1
itcl-3.4.1p3v0
jimtcl-0.80
ltcltk-0.9_5
nextcloud-27.1.11p0
nextcloud-28.0.12
nextcloud-29.0.9
nextcloud-30.0.2
nextcloudclient-3.15.0
otcl-1.14p1
p5-Tcl-1.27
pdf4tcl-0.9.4p0
pgtcl-3.0.0
pointcloud-1.2.5
sqlite3-tcl-3.42.0
tcl-8.5.19p6
tcl-8.6.13
tcl-snmptools-1.0p2
tclap-1.2.2p0
tclarc4random-0.3p0
tclcl-1.20p4
tclcurl-7.22.0
tclgpg-20160615p0
tcllib-1.21pl0p0
tclthread-2.8.8p1
tcltls-1.7.22
tcltutor-30b7
tcludp-1.0.11p1
tclxml-3.2p6
vtcl-1.6.1a1p2
weechat-tcl-4.4.3
xorriso-tcltk-1.5.4

Reply via email to