From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: command-not-found Date: Sat, 23 Jan 2016 22:49:55 +0100 Message-ID: <87mvrwq83g.fsf@gnu.org> References: <56A3084D.2080402@gmail.com> <871t98vb4m.fsf@elephly.net> <87y4bgy2ud.fsf@gnu.org> <874me46y97.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN64K-0007J5-3d for guix-devel@gnu.org; Sat, 23 Jan 2016 16:50:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN64I-0003f6-Vp for guix-devel@gnu.org; Sat, 23 Jan 2016 16:50:04 -0500 In-Reply-To: <874me46y97.fsf@gnu.org> (Mathieu Lirzin's message of "Sat, 23 Jan 2016 17:45:08 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mathieu Lirzin Cc: "guix-devel@gnu.org" , Ben Woodcroft Mathieu Lirzin skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Ricardo Wurmus skribis: >> >>> Ben Woodcroft writes: >>> >>>> Seeing as guix is becoming more and more complete, it would be great t= o=20 >>>> have 'command-not-found' [1] or similar available, so that typing in t= he=20 >>>> name of an uninstalled binary begets a suggestion on which package(s) = to=20 >>>> install, like Ubuntu gives: >>>> >>>> $ gitk >>>> The program 'gitk' is currently not installed. You can install it by t= yping: >>>> sudo apt-get install gitk >>> >>> For the record: I never liked this feature (and the delay it caused) and >>> I=E2=80=99m not too keen on having something like this for Guix. >> >> +1 Sorry, I didn=E2=80=99t mean to imply that we should not have it, rather th= at I=E2=80=99m not a big fan of it, FWIW. > I guess you never liked it because it is has never been helpful to you. > IMO this feature can be really useful for novice or casual GNU/Linux > users. Even if Guix/GuixSD is currently not adapted for this audience, > it goes in the right direction of empowering not just the seasoned users > which is part of the social mission of Free Software. Sure, I can see that it can improve =E2=80=9Cdiscoverability=E2=80=9D, whic= h is not bad in itself. > I don't know the details of implementing such feature, or the supposed > =E2=80=9Cdelay=E2=80=9D. Maybe there is a valid technical reason for not= having it, but > it would be better to not dismiss this idea on a vague assumption > (Especially when someone seems to be motivated to do the job). > > Could this feature be made optional? Yes, definitely. The main issue is that it has to depend on a database provided by a third party, which is why making it optional is best. NixOS implements it by having the equivalent of =E2=80=98guix pull=E2=80=99 download an SQLi= te database that maps file names to package names (so there=E2=80=99s no significant de= lay, nor any privacy breach, but still a trust issue.) Ludo=E2=80=99.