This is a CentOS 5 system, x64, using
yum/rpm for package management. The
libxml2 is a bit dated, and the Perl XML library I'd like to install (from CPAN) requires a more up-to-date version of the C libxml2 library.
Now I could download the source and build and install into
But they also provide RPMs at
ftp://xmlsoft.org/libxml2/. Is it possible to install the RPM in such a way as not to interfere with the system-provided RPM, which I don't want to change or upgrade?
I tried the following:
package-cleanup --problems libxml2-2.7.8-1.x86_64.rpm
But the output appears to indicate that it will replace the system RPM, which is not what I want.
Marking libxml2-2.7.8-1.x86_64.rpm as an update to libxml2-2.6.26-2.1.12.el5_7.2.i386
In addition, when continuing, the command fails with errors.
--> Finished Dependency Resolution eel2-2.16.1-1.el5.i386 from installed has depsolving problems --> Missing Dependency: libxml2.so.2 is needed by package eel2-2.16.1-1.el5.i386 (installed) libxml2-python-2.6.26-2.1.12.el5_7.2.x86_64 from installed has depsolving problems --> Missing Dependency: libxml2 = 2.6.26 is needed by package libxml2-python-2.6.26-2.1.12.el5_7.2.x86_64 (installed) ...
So back to compiling from source? Or is there a way to use the RPM?
What I'm interested here is side-by-side installation of an RPM into something like
/usr/local or whatever is your
--prefix du jour. The RPM should just check that its dependencies are met by the system, but it should under no circumstances attempt to replace or amend anything at all in the system.