From owner-freebsd-questions@freebsd.org Fri Sep 11 04:46:56 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52DE0A0193A for ; Fri, 11 Sep 2015 04:46:56 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0107F13E2 for ; Fri, 11 Sep 2015 04:46:55 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by wiclk2 with SMTP id lk2so50297743wic.0 for ; Thu, 10 Sep 2015 21:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5/sbwOiQXgKfrXUqyLp0PdK6D+6/emuXsUomJV9UGQY=; b=kOMu0pCuxPxSz602GMehddUPN9CGQFLc4FteOfrqRRXP+AQ6QuSCiGcJ7V5Nm20GuG MnD0uvZsSjIkcF9z40HI0Ah/Wg8iLElNolTkRGWqwDBFy/XFcan5pUiSN1p9W/XAtkBA Ik/DAXHtCXqmExXfyna9swfg7wIgINcEK2qiCc7251NTHs9/EP6+gLKAYF0ktCjAic5W 95KHK7hQHyf0z/t5NVnuxFzX6xuPgaoZqEA/3cRwg8nsZz0gOXMyLWern6Exs/Kx7czD H3iQ97zD3eJ3qSSdMpwbTvKkFsNi37c68LVDv3m0QWiRAviWCHCCNqVXtYTu2vCgpJ++ 5OFQ== MIME-Version: 1.0 X-Received: by 10.180.101.164 with SMTP id fh4mr559247wib.25.1441946812965; Thu, 10 Sep 2015 21:46:52 -0700 (PDT) Received: by 10.194.67.5 with HTTP; Thu, 10 Sep 2015 21:46:52 -0700 (PDT) In-Reply-To: <201509110308.t8B38QW9025454@deneb.dwf.com> References: <201509110308.t8B38QW9025454@deneb.dwf.com> Date: Thu, 10 Sep 2015 23:46:52 -0500 Message-ID: Subject: Re: How to find what package (or port) a routine is in. From: Adam Vande More To: reg@dwf.com Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 04:46:56 -0000 On Thu, Sep 10, 2015 at 10:08 PM, wrote: > > I think the subject line says it all. > I'm looking for 'formail' which google FreeBSD formail shows me > exists in FreeBSD, but I have no idea how to find the package/ > port containing it. > > Someone point me in the right direction. > Well the canonical methods might include things like whereis(1), locate(1), and "make search" from ports(7) which is really quite sufficient for nearly any task I've encounted.. However in your particular case they wouldn't have helped. So you'd have resort to some method that grepped through all ports Makefile's and pkg-plist's. I've heard rumors that at some point we'll be able to remotely query pkg servers for this sort of information, but as of right now you'd need a locally installed ports tree to find it. Or just use google to find the parent project. Then one of the original tools I pointed out would be able to find it assuming it's in the ports tree. -- Adam