[NTLUG:Discuss] Updating PHP via RPMS...

Alton R. Pouncey, II alton at trainers-r-us.com
Mon Oct 13 15:43:47 CDT 2003


On Mon, 2003-10-13 at 15:25, MadHat wrote:
> On Mon, 2003-10-13 at 14:57, Alton R. Pouncey, II wrote:
> > On Mon, 2003-10-13 at 13:38, NTLUG wrote:
> > > I have a RH7.3 machine w/ PHP, the php version (from RPM is
> > > php-4.1.2-7.3.6).  I have a short term need for php-4.2.2-8.0.8 which is
> > > from RH8.0.
> > > 
> > > Has anyone put the RH8 PHP Rpms on a RH7.3 machine?  I want to try and
> > > avoid having to compile, because I don't have a lot of room for dealing
> > > with problems.
> > > 
> > 
> > If you can find the source rpm (even for RH 8), you should be able to
> > download that rpm then do:
> > 
> > rpm --rebuild <php-whatever.src.rpm>
> > 
> > This will rebuild the rpm for your machine and create a new rpm for you
> > (I forget where the new rpm ends up in the filesystem).  Then you can
> > just rpm -ivh that new rpm. 
> > 
> 
> /usr/src/redhat/RPMS/<ARCH> is where the new RPM will be located in most
> cases.
> 
> On newer version of rpm it is rpmbuild.
> 
> rpmbuild --target i686 --rebuild blah.src.rpm
> 
> I recommend using the target or setting it in the configs so you get the
> best performance possible (though in many instances you won't notice the
> difference).
> 
> I have a .rpmrc that I use.  It has but one line
> 
> optflags: i686 -O3 -march=i686 -funroll-all-loops -fomit-frame-pointer
> -Wall -ffast-math
> 
> I stole it from somewhere, but I can't remember where.

I was not aware of rpmbuild.  Good to know.  Thanks.

Alton




More information about the Discuss mailing list