Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Apr 2009 12:36:50 +0800
From:      Peter Wang <peterwang@vip.qq.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to find out which ports contains a specified command.
Message-ID:  <u63hhxeot.fsf@vip.qq.com>
References:  <u7i1zhrwd.fsf@vip.qq.com> <d7195cff0904051513m554616eaha6196f91931c81e6@mail.gmail.com> <2B08274BD5B112278E9DF1D2@Macintosh-2.local>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Schmehl <pschmehl_lists@tx.rr.com> writes:

yes, that's exactly what i want, thanks.
-peter
> --On April 5, 2009 6:13:57 PM -0400 illoai@gmail.com wrote:
>
>> 2009/4/5 Peter Wang <peterwang@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
>
> 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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?u63hhxeot.fsf>