Ok, I'll just answer my own question then:
Here's how you do it.
1.) remove all currently installed PHP packages, just to be sure everything is clean
(you can try skipping this step if you want to try upgrading what you already have. See the last part of 3.))
$ yum remove php-\*
2.) Activate the Remi repository:
As root (or using sudo), go to /etc/yum.repos.d/ and do:
$ wget http://rpms.famillecollet.com/enterprise/remi.repo
3.) Install your packages.
Since the remi repo is off by default, you have to specify it at yum-time:
$ yum --enablerepo=remi install php-pdo php-xml php-pear php-mhash php-mcrypt php-gd php-mysql
Now you should have all the latest php packages.
Alternatively, if you already have PHP installed and just want to upgrade what you already have, skip step 1, do step 2, and then do this:
$ yum --enablerepo=remi upgrade php-\*
4.) Be disappointed.
In my case, everything installed without error except php-mysql. The problem seems to be that it expects the latest version of mysql. So I have to try to upgrade mysql before the php-mysql will install properly.
Best Answer
In these cases, I perform a quick check for the package on RPMFind.net and rpm.pbone.net. If neither return a result for my distribution, chances are that a precompiled RPM is not available.
You can compile log4cxx from the Fedora source repository, though.
In order to build an SRPM, you'll pretty much need to download the .srpm or .src.rpm file. From there, you can run
rpmbuild --rebuild filename.src.rpm
and the compilation process should result in a usable binary package.I took a spare CentOS 6 system and ran the download using this log4cxx source RPM package and compiled:
There was a dependency on
apr-devel
andapr-util-devel
, but aside from that, the log4cxx built without incident.From there, install the resultant RPM's and you're good to go.