pkg: unknown command: provides reddit / freebsd ---------------------------------------------------------------------- loziomario · 2023-05-28 08:45 Hello, I'm trying to fix the boot error that you see below : ​ [marietto@marietto /]$ php PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/lib/php/20190902/intl.so (Shared object "libicuio.so.72" not found, required by "intl.so"), /usr/local/lib/php/20190902/intl.so.so (Cannot open "/usr/local/lib/php/20190902/intl.so.so")) in Unknown on line 0 [marietto@marietto /]$ pkg provides libicuio.so.72 pkg: unknown command: provides ​ how to fix it ? (I'm using FreeBSD 13.2-RELEASE). thanks. ---------------------------------------------------------------------- [deleted] · 2023-05-28 09:51 [deleted] ---------------------------------------------------------------------- loziomario · 2023-05-28 09:55 Didn't think that a package like that could exists. I've thought that provides was an argument to add to pkg. ---------------------------------------------------------------------- loziomario · 2023-05-28 11:10 packages = latest. # pkg install pkg-provides Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The most recent versions of packages are already installed # pkg provides pkg: unknown command: provides # pkg-provides pkg-provides: Command not found. ---------------------------------------------------------------------- [deleted] · 2023-05-28 11:23 [deleted] ---------------------------------------------------------------------- loziomario · 2023-05-28 11:41 perfect answer. thanks. ---------------------------------------------------------------------- rodrigo975 · 2023-05-31 11:34 Hi, pkg-provides is a pkg plugin, it has to be installed with the following command `sudo pkg install pkg-provides` and configured in */usr/local/etc/pkg.conf* changing the following lines: `PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";` `PKG_ENABLE_PLUGINS = true;` `PLUGINS [ provides ];` After that you can type 'pkg plugin' to see if the plugin is correctly detected, this is a sample output : `$ pkg plugin` `NAME DESC VERSION` `provides A plugin for querying which package provides a particular file 0.4.2` After the first install you probably need to update the pkg-provide database `sudo pkg provides -u` `Fetching provides database: 100% 14 MiB 15.1MB/s 00:01` `Extracting database....success` Now you are ready to use pkg provides. All the details are here : [https://pkg- provides.osorio.me/](https://pkg-provides.osorio.me/) Happy hacking!