From owner-svn-ports-all@freebsd.org Thu Jan 25 15:59:08 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1BA0EB7D68; Thu, 25 Jan 2018 15:59:08 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from smtp.osorio.me (smtp.osorio.me [5.196.94.126]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA2C83F52; Thu, 25 Jan 2018 15:59:08 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from [172.16.33.185] (unknown [213.174.108.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.osorio.me (Postfix) with ESMTPSA id AA9EF3FA54; Thu, 25 Jan 2018 15:59:07 +0000 (UTC) Subject: Re: svn commit: r459945 - in head/ports-mgmt: . pkg-provides pkg-provides/files To: Mathieu Arnold Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org References: <201801251445.w0PEj4db093706@repo.freebsd.org> <20180125151224.pwbqbyryxih76vb5@ogg.in.absolight.net> <0099f576-be3a-73d2-7dfe-1b72638a5743@FreeBSD.org> <2649e26b-11ff-7375-d649-e37fffed9567@FreeBSD.org> <20180125154056.xpg6dks2hps673j2@ogg.in.absolight.net> From: Rodrigo Osorio Message-ID: <0fa367f7-0c7b-32d3-eb73-9da1c44dbdec@FreeBSD.org> Date: Thu, 25 Jan 2018 16:59:07 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180125154056.xpg6dks2hps673j2@ogg.in.absolight.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 15:59:09 -0000 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