how to apt-get install with only minimal components necessary for an application

Solution 1:

Try installing it without the recommended ones, like this:

$ sudo apt-get --no-install-recommends install package

This usually saves you a lot of extras, but keep in mind that your application lacks some functionality. Hence, these recommended dependencies are recommended.