On 07/05/2012 02:10 AM, Warner Losh wrote:
> 
> On Jul 4, 2012, at 4:08 PM, Doug Barton wrote:
> 
>> On 07/04/2012 15:01, Mike Meyer wrote:
>>> On Wed, 04 Jul 2012 14:19:38 -0700
>>> Doug Barton <do...@freebsd.org> wrote:
>>>> On 07/04/2012 11:51, Jason Hellenthal wrote:
>>>>> What would be really nice here is a command wrapper hooked into the
>>>>> shell so that when you type a command and it does not exist it presents
>>>>> you with a question for suggestions to install somewhat like Fedora has
>>>>> done.
>>>> I would also like to see this feature, which is pretty much universal in
>>>> linux at this point. It's very handy.
>>>
>>> I, on the other hand, count it as one of the many features of Linux
>>> that make me use FreeBSD.
>>
>> First, I agree that being able to turn it off should be possible. But I
>> can't help being curious ... why would you *not* want a feature that
>> tells you what to install if you type a command that doesn't exist on
>> the system?
> 
> Because I find on Linux it often gets it wrong and winds up being useless 
> noise.  Mostly, though, it is because I mistype commands more than I type 
> commands that should be there, but aren't.

It might be useful to adapt a concept from Gentoo's app-portage/pfl
package. It has two components.

The first is a cron job that runs weekly. It will report all files
installed by portage and which packages own them to an online database.

The second is the e-file command, which will query that database for
whatever follows it. For example, if I want to find out which package
installs repoman, I can do `e-file repoman`. I can also do `e-file
/usr/bin/repoman`.

if FreeBSD had an equivalent to this command, this command, then I
imagine that calls for Ubuntu/Fedora features should cease. Gentoo users
seem to be happy with e-file.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to