Jonathan Engwall <[email protected]> asks:

>> I need to know how to find the package that supply shared libraries, by the
>> libraries the packages provide.

I strongly recommend always installing the pkg-provides package on
FreeBSD and its derivatives, and on DragonFlyBSD.

After installation pkg-provides, a three lines in
/usr/local/etc/pkg.conf need tweaking to look like this:

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

You then need to run (just once):

        # pkg provides -u

>From then on, an index of providing packages is maintained for all
currently, and subsequently, installed files.

You can then find the package that supplies a particular file like this:

        % pkg provides /usr/local/bin/gmake
        Name    : gmake-4.3_2
        Desc    : GNU version of 'make' utility
        Repo    : Avalon
        Filename: usr/local/bin/gmake

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: [email protected]  -
- 155 S 1400 E RM 233                       [email protected]  [email protected] -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------

Reply via email to