sneaks wrote:
Also, it seems apt-get installs useless packages sometimes. I did apt-get mysql and exim was one of the dependencies it seems. I don't understand why it would be, yum seems to only install what's needed. Is there a reason for that?
You don't mention the exact package name you installed ("mysql" does not exist) and you do not mention the Debian version you are running. Therefore the following assumes you installed "mysql-server-5.0" on Debian 4.0.
Code:
apt-cache show mysql-server-5.0
reveals that MySQL recommends (does
not depend on) "mailx".
Code:
apt-cache show mailx
reveals that mailx depends on exim4
or mail-transport-agent.
Two things - you seem to be automatically installing recommended packages and not just dependencies. If you are actually using apt-get, I was unaware that that was an option, and it's certainly not the default. Did you add the mailx package to your command line manually? If you are actually using aptitude (as you should be) (you need to say this), then installing Recommended packages is an option and is the default, and is easily turned off in the config file.
Second, instead of exim you can install anything that provides the virtual package mail-transport-agent, such as postfix, before the mysql install or at the same time. Then it will pull postfix and not exim4.
HTH