On 2023/12/03 14:38:04 -0600, "Jay F. Shachter" <j...@m5.chicago.il.us> wrote: > How does one find out that, e.g., the package that provides pip is > py3-pip? I will respect an answer along the lines of "read the > fabulous manual", but in that case, please tell me which fabulous > manual page I should read. > > Also -- and this may also be a matter of locating and reading the > appropriate fabulous manual page -- I clearly do not understand how > the asterisk character works with the pkg_add command. After failing > to install pip, pip3 or py310-pip, I tried the command > > pkg_add -v \*pip\* > > and that also failed. Is there a way (other than by perusing, with a > browser, a site where the packages reside) to find the package names > that contain a given substring?
`pkg_info -Q pip' was already mentioned in the list, but another way is using pkglocate (from the pkglocatedb package) to find which package install an executable named "pip": $ pkglocate bin/pip ... pypy-7.3.1p7:lang/pypy:/usr/local/pypy/bin/pip pypy-7.3.1p7:lang/pypy:/usr/local/pypy/bin/pip2 pypy-7.3.1p7:lang/pypy:/usr/local/pypy/bin/pip2.7 python-3.11.6p0:lang/python/3.11,-main:/usr/local/bin/pip3.11 python-3.9.18p0:lang/python/3.9,-main:/usr/local/bin/pip3.9 (the format is "package name:pkgpath:matching file" and unless you work with the ports tree the pkgpath is mostly useless.) as you can see, it finds both lang/pypy that provides a "pip" executable in a non-standard directory, and also python3.11 and python3.9 providing pip3.11 and pip3.9 respectively.