From owner-freebsd-questions@FreeBSD.ORG Sun Apr 5 23:33:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC6561065673 for ; Sun, 5 Apr 2009 23:33:25 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC3B8FC12 for ; Sun, 5 Apr 2009 23:33:25 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.2.102] (really [66.25.23.135]) by cdptpa-omta03.mail.rr.com with ESMTP id <20090405233324.QTZ19140.cdptpa-omta03.mail.rr.com@[192.168.2.102]>; Sun, 5 Apr 2009 23:33:24 +0000 Date: Sun, 05 Apr 2009 18:33:22 -0500 From: Paul Schmehl To: illoai@gmail.com, Peter Wang , freebsd-questions@freebsd.org Message-ID: <2B08274BD5B112278E9DF1D2@Macintosh-2.local> In-Reply-To: References: X-Mailer: Mulberry/4.0.8 (Mac OS X) X-Munged-Reply-To: To reply - figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: How to find out which ports contains a specified command. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2009 23:33:26 -0000 --On April 5, 2009 6:13:57 PM -0400 illoai@gmail.com wrote: > 2009/4/5 Peter Wang : >> >> for example, after i installed pfsense, which is based on freebsd >> release 7.1, i found adduser command is missing. >> >> so how to find out which ports contains `adduser' command? >> thanks for your replies. >> > > % which adduser > /usr/sbin/adduser > > Thus it is part of the base system, installed through /usr/src > rather than /usr/ports. > > Also, as you are running (essentially) 7.x, this is probably > better on freebsd-questions than current. I think you misunderstood his question. This would be one way to do it: find /usr/ports/ -type f -exec grep -sq adduser {} \; -print Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ****************************************** WARNING: Check the headers before replying