On 02/04/12 06:17, Viktor Dukhovni wrote: > On Sun, Apr 01, 2012 at 03:38:34PM +0000, Robinson, Eric wrote: > >> We only want to install postfix as a null client for sending >> alerts from our servers. When I try to install postfix, it wants >> to install mysql-libs-5.1.61-1.el6_2.1 as well. I'm afraid this >> will break our mysql servers, which are all running MySQL 5.0.77. >> Will installing postfix break things? If so, is there a way to >> install postfix without MySQL support? I don't mind building postfix >> from source if necessary, but I would prefer to install via RPM. > > Install Postfix without MySQL, the Postfix sources from postfix.org > by default build without mysql support. On Debian systems, the > MySQL map support is a separate optional module in the packaged > Postfix. > > On RPM-based systems, you just need to tweak the spec file in > the SRPM to *not* enable MySQL support. So obtain the SRPM > that corresponds to your system's Postfix install and build > it without MySQL.
You don't even need to do that, you just need to add a line to your .rpmmacros file: %MYSQL 0 > Note that Postfix does not install a MySQL server, it just depends > on client libraries, which are often dependencies of other packages > on your system (say Perl modules that support MySQL, ...). It is > likely that your MySQL data server is installed elsewhere, and is > not going to conflict with the client library package. Of course > test this on a non-production system, don't take my word for it. Fully off-topic advice: To be safe from any program trying to install mysql (or the possibility that a yum update might try to upgrade mysql) you should exclude mysql* from the base and updates repos in yum. Peter