Sunday, July 25, 2004

Updating modified php install

There is a new update to php. yum offered to install the update for me, but I couldn't do it since I modified my php installation. I compiled php with mcrypt, so I could use encryption with Maia Mailguard

These are the steps that I use to update php

  1. Download the source rpm from Red Hat
  2. rpm -Uvh php-*.src.rpm
  3. cd /usr/src/redhat/SPECS/
  4. edit php.spec to include "--with-mcrypt "
  5. rpmbuild -ba php.spec
  6. cd /usr/src/redhat/RPMS/i386
  7. rpm -Uvh php*.rpm
  8. restart apache

It would great if yum could be updated so that it would compare the spec file for what was installed to the update. If the spec files is different, yum would download the source rpm, make the changes to the spec file, and then build and install the source rpm.

No comments:

Post a Comment