Yum dependency check override when newer versions of dependent software exist

I use yum on CentOS 5.1 - I compiled PHP 5.2.8 from the source code, but I have other packages using yum. I need to install the PHP extension through pecl, and for this I need to install phpize. However, when the following result is executed, a dependency error occurs:

sudo yum install php-devel

Error: Missing dependency: php = 5.1.6-20.el5_2.1 required by php-devel

Since I actually have a newer version of PHP installed, how can I get yum to ignore this? Do I need to manually compile pecl / phpize from the source code? I admittedly never had a problem, it seems that this is only due to combo compilers and yum installations.

Any thoughts?

Thanks Kyle

+3
source share
3 answers

As a rule, it is better to have one package control in the system, so you better pack everything in RPMS and manage it through yum. This will save you a lot of time in the long run.

If you absolutely want to have something (fe PHP) from sources manually, use stow / checkinstall / ... or any other solution that allows you to perform rudimentary package management for compiled sources.

Repeating your question, you can try to override the dependency check by downloading the RPM of the required package by running the command "rpm -i -force file.rpm", since yum does not have the ability to force installation

+2

:

, /usr/local /usr/local.

RPM/Yum, /usr /usr /usr/local.

, PHP- PHP PHP, /usr/local: GNU- - :

   ./configure --prefix=/usr/local && make && sudo make install

   make prefix=/usr/local all && sudo make prefix=/usr/local install

... /usr/local, .

" " , RPM,

   yumdownloader --source WHATEVER-PACKAGE
   rpm -i WHATEVER-PACKAGE.rpm
   rpmbuild -bp ~/rpm/SPECS/WHATEVER-PACKAGE.spec

( , ~/rpm, ; rpmbuild --showrc )

.src.rpm, ( ) ( , tarball), ; ~/rpm ( rpmbuild); ~/rpm/BUILD/WHATEVER-PACKAGE/

configure/make /usr/local

, RPM : -)

+4

yum PHP . RPM, rpm --nodeps , .

php, , yum, ( , , , , php ).

Or, if you're lucky, a third-party repository like EPEL or RPMForge might have a new php package, so you don't need to compile your own.

+3
source

Source: https://habr.com/ru/post/1704989/


All Articles