My solution is an hybrid between security and comfortability:
auto-apt checks the file access of programs running within its
environments, and if a program tries to access a file known to
belong in an uninstalled package, auto-apt will install that
package using apt-get. This feature requires apt and sudo to work.
It also provides simple database to search which package contains
a requested file.
It's a terminal-emulator where you enter a environment where each file access is verified before hand by auto-apt and if it not exist it search in the database (a la apt-file
) and download and install the desired package, then allows the program to continue. You should execute it as root:
sudo auto-apt
This is useful in cases where you are building a package and isn't in the mood to be in front of the screen looking for each configure error for missing headers, etc.
This also can be used as apt-get + apt-file replacement where you can install programs just telling the command
to execute it.
You must understand that you should not leave it opened when your system isn't looked, since it's almost as if you were using the root user.
Man page: http://derpi.tuwien.ac.at/cgi-bin/man/man2html?1+auto-apt