How to find out which ports contains a specified command.

Peter Boosten peter at boosten.org
Mon Apr 6 02:42:11 PDT 2009



On 6 apr 2009, at 01:33, Paul Schmehl <pschmehl_lists at tx.rr.com> wrote:

> --On April 5, 2009 6:13:57 PM -0400 illoai at gmail.com wrote:
>
>> 2009/4/5 Peter Wang <peterwang at vip.qq.com>:
>>>
>>> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org 
> "


More information about the freebsd-questions mailing list