svn commit: r459945 - in head/ports-mgmt: . pkg-provides pkg-provides/files
Rodrigo Osorio
rodrigo at FreeBSD.org
Thu Jan 25 15:59:09 UTC 2018
On 01/25/18 16:40, Mathieu Arnold wrote:
> On Thu, Jan 25, 2018 at 04:15:49PM +0100, Rodrigo Osorio wrote:
>> s/you/yum/
>>
>>
>> On 01/25/18 16:14, Rodrigo Osorio wrote:
>>> Hi Mathieu,
>>>
>>> pkg provides is a you provides like, it tells you about packages you
>>> want to install.
> I have no idea what yum provides does. How can it know which packages I want to
> install?
>
Yes, the main idea is to find which package you need to install to have a
certain file in your system.
The first example that comes to my mind is a perl script who uses
LWP::Simple module.
To know which package you need to install in order make your script
works, just type :
$ pkg provides 'LWP/Simple.pm$'
Name : p5-libwww-6.31
Desc : Perl5 library for WWW access
Repo : FreeBSD
Filename: /usr/local/lib/perl5/site_perl/LWP/Simple.pm
- rodrigo
More information about the svn-ports-all
mailing list