Skip to content
 
 

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkg-provides

pkgng plugin for querying which package provides a particular file

asciicast

How to build / install

Requirements

  • libfetch (freebsd base )
  • libpcre ( pkg install pcre )
  • libpkg ( freebsd base )
  • uthash ( pkg install uthash)

Build

# make install

Install

# make install

Configure pkg to use plugins

/usr/local/etc/pkg.conf

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

Create the directory to store the provides database :

    mkdir -p /var/db/pkg/plugins

Check if the plugin is available

# pkg help
Commands provided by plugins:
        provides       A plugin for querying which package provides a particular file

Usage

Update the provides database

  pkg provides -u

Search for a file

  pkg provides firefox
  pkg provides bin/firefox

You can use the perl regexp in search requests

TODO

  • provides uses the AMD64-latest ports, future versions will use the ABI
  • database is downloaded in /var/tmp and stored in /var/db/pkg/plugins/. The location is hardcoded.

About

pkgng plugin for querying which package provides a particular file

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages