From owner-freebsd-questions@FreeBSD.ORG Mon Apr 6 09:42:11 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 1BC791065677 for ; Mon, 6 Apr 2009 09:42:11 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by mx1.freebsd.org (Postfix) with ESMTP id 9DDEE8FC23 for ; Mon, 6 Apr 2009 09:42:10 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.34.137] (helo=smtp6.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Lql5C-0003op-Gp; Mon, 06 Apr 2009 11:25:34 +0200 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp6.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Lql53-0000Kr-FF; Mon, 06 Apr 2009 11:25:25 +0200 Received: from [192.168.13.82] (iPod.egypt.nl [192.168.13.82]) by ra.egypt.nl (Postfix) with ESMTP id 3B05839849; Mon, 6 Apr 2009 11:25:15 +0200 (CEST) References: <2B08274BD5B112278E9DF1D2@Macintosh-2.local> Message-Id: <08809CCC-DED8-43E6-B970-8E6A7F158540@boosten.org> From: Peter Boosten To: Paul Schmehl In-Reply-To: <2B08274BD5B112278E9DF1D2@Macintosh-2.local> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5H11) Mime-Version: 1.0 (iPod Mail 5H11) Date: Mon, 6 Apr 2009 11:25:14 +0200 X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1Lql53-0000Kr-FF X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.599, required 5, autolearn=not spam, BAYES_00 -2.60) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: Peter Wang , "illoai@gmail.com" , "freebsd-questions@freebsd.org" 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 09:42:11 -0000 On 6 apr 2009, at 01:33, Paul Schmehl wrote: > --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 How about man pkg_info From memory: pkg_info -W /usr/sbin/adduser Peter > > > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org > "