[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: command-not-found
From: |
Ricardo Wurmus |
Subject: |
Re: command-not-found |
Date: |
Sat, 23 Jan 2016 11:33:13 +0100 |
User-agent: |
mu4e 0.9.13; emacs 24.5.1 |
Ben Woodcroft <address@hidden> writes:
> Seeing as guix is becoming more and more complete, it would be great to
> have 'command-not-found' [1] or similar available, so that typing in the
> name of an uninstalled binary begets a suggestion on which package(s) to
> install, like Ubuntu gives:
>
> $ gitk
> The program 'gitk' is currently not installed. You can install it by typing:
> sudo apt-get install gitk
For the record: I never liked this feature (and the delay it caused) and
I’m not too keen on having something like this for Guix.
> The database for this I imagine could be generated by hydra, no?
It wouldn’t be good to rely on Hydra. We are trying to encourage
alternative distribution models (via “guix publish” and eventually via
GNUnet), and it would be a step in the opposite direction (in my
opinion) to rely more on Hydra.
If the package expressions themselves contained information about the
contents of their “bin/” directories then it wouldn’t *have* to be
generated by Hydra.
We discussed something similar for identifying what packages contained
certain files. It is quite ugly, of course, to have a long list of
files produced by the package as part of the tidy package expression, so
I cannot recommend any real alternative to what you suggest.
~~ Ricardo
- command-not-found, Ben Woodcroft, 2016/01/22
- Re: command-not-found,
Ricardo Wurmus <=