I often experience some program depend on a file. I then have to locate which package may contain the file and then install the package. It looks like this: $ foo Could not load library: libglut.so.3: cannot open shared object file: No such file or directory. $ apt-file search libglut.so.3 freeglut3: /usr/lib/x86_64-linux-gnu/libglut.so.3 freeglut3: /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0 $ sudo aptitude install freeglut3 It would be nice if I did not have to go through apt-file to locate the package, but that I instead simply could do: $ sudo aptitude install libglut.so.3 If multiple packages contain libglut.so.3 then aptitude should ask me to select one of them. /Ole
Clear and concise. No confusion over what you meant with /these/ commands. Whats that? Is the argument a package name, some missing file you like, something else? This is no longer clear. Thanks for the suggestion. It does not improve on the situation significantly to justify having more complex features of aptitude to maintain. The existing composition of tools is short, clear, and provides a well-defined separation of concerns; these are all ideal qualities. Leaving the report open for comment. It will be closed in the near future. Regards
reassign 695205 apt-file unblock 695205 by 695436 retitle 695205 apt-file: Should provide a wrapper to install the found package kthxbye Hi, Daniel Hartwig wrote: That's what I thought, too. Nevertheless I think the idea in general is not so bad. A more clear situation would provide a sub command named e.g. "fileinstall". But despite it sounds simple, I think this is quite complex to integrate in aptitude. But it could be easily implemented as a wrapper around apt-file and apt-get/aptitude. And since it needs apt-file anyway (pointless to implement that functionality a second time), but may be used with aptitude as well as apt-get, I think it's better if such a wrapper script (named e.g. apt-file-install) is included in the apt-file package. Actually http://bugs.debian.org/408379 already covers the download part as wrapper script. It should be easy to change the script to install the package instead. Reassigning to apt-file hence. Regards, Axel
Quite right, any support for this in aptitude would only wrap apt-file. I'd still rather see this implemented elsewhere.