Re: FreeBSD 12.3-RELEASE amd64, Perl, and URI: : Escape

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Thu, 24 Feb 2022 00:48:17 UTC
On 2/22/22 20:36, Carl Johnson wrote:

>>>> It appears that David Christensen <dpchrist@holgerdanske.com> said:
>>>>> Is there a CLI tool, WWW page, etc., that lets me list and/or search the
>>>>> contents of FreeBSD packages?

> You might want to look into the pkg-provides port.  It describes itself
> as: 'Pkg plugin for querying which package provides a particular file'.


2022-02-23 16:35:48 toor@f3 ~
# freebsd-version ; uname -a
12.3-RELEASE-p1
FreeBSD f3.tracy.holgerdanske.com 12.3-RELEASE-p1 FreeBSD 
12.3-RELEASE-p1 GENERIC  amd64

2022-02-23 16:36:11 toor@f3 ~
# pkg install pkg-provides
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	pkg-provides: 0.7.1

Number of packages to be installed: 1

11 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching pkg-provides-0.7.1.pkg: 100%   11 KiB  11.1kB/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing pkg-provides-0.7.1...
[1/1] Extracting pkg-provides-0.7.1: 100%
=====
Message from pkg-provides-0.7.1:

--
In order to use the pkg-provides plugin you need to enable plugins in pkg.
To do this, uncomment the following lines in /usr/local/etc/pkg.conf file
and add pkg-provides to the supported plugin list:

PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [ provides ];

After that run `pkg plugins' to see the plugins handled by pkg.

2022-02-23 16:36:21 toor@f3 ~
# cd /usr/local/etc

2022-02-23 16:38:34 toor@f3 /usr/local/etc
# ll pkg.conf
-rw-r--r--  1 root  wheel  2365 2021/11/12 17:09:20 pkg.conf

2022-02-23 16:38:37 toor@f3 /usr/local/etc
# cp pkg.conf pkg-20211112-170920.conf

2022-02-23 16:39:03 toor@f3 /usr/local/etc
# vi pkg.conf

2022-02-23 16:40:33 toor@f3 /usr/local/etc
# diff pkg-20211112-170920.conf pkg.conf
30,33c30,32
< #PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
< #PKG_ENABLE_PLUGINS = true;
< #PLUGINS [
< #]
---
 > PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
 > PKG_ENABLE_PLUGINS = true;
 > PLUGINS [ provides ];

2022-02-23 16:40:48 toor@f3 /usr/local/etc
# pkg plugins
NAME       DESC                                          VERSION
provides   A plugin for querying which package provides a particular 
file 0.7.1

2022-02-23 16:41:58 toor@f3 /usr/local/etc
# pkg provides -u URI/Escape.pm
Fetching provides database: 100%   16 MiB   1.8MB/s    00:09
Extracting database....success

2022-02-23 16:42:19 toor@f3 /usr/local/etc
# pkg provides -u URI/Escape.pm
The provides database is up-to-date.

2022-02-23 16:42:34 toor@f3 /usr/local/etc
# pkg provides URI/Escape.pm
Name    : vdradmin-am-3.6.10
Desc    : Video Disk Recorder - webinterface
Repo    : FreeBSD
Filename: usr/local/share/vdradmin-am/lib/URI/Escape.pm

Name    : p5-URI-5.10
Desc    : Perl5 interface to Uniform Resource Identifier (URI) references
Repo    : FreeBSD
Filename: usr/local/lib/perl5/site_perl/URI/Escape.pm

Name    : p5-Any-URI-Escape-0.01_1
Desc    : Load URI::Escape::XS preferentially over URI::Escape
Repo    : FreeBSD
Filename: usr/local/lib/perl5/site_perl/Any/URI/Escape.pm

Name    : fswiki-3.6.2_2
Desc    : FreeStyle Wiki (perl based wiki clone)
Repo    : FreeBSD
Filename: usr/local/share/fswiki/lib/URI/Escape.pm


So, I want the FreeBSD package p5-URI.


Thank you,

David