Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jul 2012 08:02:31 -0400
From:      Richard Yao <ryao@gentoo.org>
To:        freebsd-hackers@freebsd.org
Subject:   Gentoo Solution to Nanny Terminal Problem
Message-ID:  <4FF58257.4040301@gentoo.org>
In-Reply-To: <9fab855109ce448d89081b2ad8e5adc8@HUBCAS2.cs.stonybrook.edu>
References:  <CA%2BQLa9B-Dm-=hQCrbEgyfO4sKZ5aG72_PEFF9nLhyoy4GRCGrA@mail.gmail.com> <4FF2E00E.2030502@FreeBSD.org> <86bojxow6x.fsf@ds4.des.no> <4FF35864.5030109@FreeBSD.org> <CAC8HS2Hx%2BqV1zYSzyM6wYzbyA6BStd3HEwc-VDhv40DHM=qCvw@mail.gmail.com> <CAOjFWZ5ikPz_yDhEQutiXVG354qRHYJTn-M_S4Cx-=YRgFP7eQ@mail.gmail.com> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org>	<4FF4BEED.10103@FreeBSD.org> <9fab855109ce448d89081b2ad8e5adc8@HUBCAS2.cs.stonybrook.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4205A80AAA2ED048D9E6ACDB
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 07/05/2012 02:10 AM, Warner Losh wrote:
>=20
> On Jul 4, 2012, at 4:08 PM, Doug Barton wrote:
>=20
>> On 07/04/2012 15:01, Mike Meyer wrote:
>>> On Wed, 04 Jul 2012 14:19:38 -0700
>>> Doug Barton <dougb@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 pres=
ents
>>>>> 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 universa=
l 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?
>=20
> Because I find on Linux it often gets it wrong and winds up being usele=
ss noise.  Mostly, though, it is because I mistype commands more than I t=
ype 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.


--------------enig4205A80AAA2ED048D9E6ACDB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP9YJZAAoJECDuEZm+6ExkbJgP/3YyexYYyl8d7E5hqXrbQ1t8
FU6BAPoGqPUy1206oalVvTDoA9jjTjfQxqT5P3x7w8CqjxC7B5ngOOkYMAM43lEw
RO4WOiw8eFp3mBfg0mpKaNTWT6ydICPEVXuvW+u2I+J5A7iEky2zUuNfablF0Htv
2KZEgE6iTMZMA913sBsi9ZVn9/vr2xJsbG3vtYCZ7HZWw6RcaoAnQL3x4tbmSnIW
HAvt/ak6HFiFsTvmzuCmlsVNj6olJN+IvgA7eelH3p+BXk50BTuvIVkkzKrcsiPq
JEsW+hT7pRKR8lKgENePPqoxiAh1igSBgjndV4J2N6rnHP5ufQIihNQlaCn9E4bK
BL2x+crhuloE9BMYETU11BLvU5smFqmMm1R3+XC08sx7ae894FObanFwXLBETByZ
ZxkB9rzUErKxsItvXAHnWc+siY1PO1F56lJxAyv82UWlapbb9pnSK/UV/SEHaA6e
TTQmzJGC/nc3kJHO8eX5sMeJ/eSHc795xxJ123FasJeNY6Yb0bToo3AnhXDyIyuw
cYnKgGWrGQ3gFhe+MnlkhhDP9H932xZ7E8ZSndpwQJgd1jgGr3w5dVUrAyZcwp+9
t/EsoSUGqjwTxoWyHX5tMVlGDMRUCI8h+Q9e9Lo0tA3jwV2wkPskXwy3P4ZirQed
ue4Xp1Gx8gP0faTBT2nn
=i0dK
-----END PGP SIGNATURE-----

--------------enig4205A80AAA2ED048D9E6ACDB--



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