Topic: Problem upgrading to php-5.3: file

Hi,
I try to upgrade from php-5.2.10 to php-5.3.0, but I can't. php-common needs 'file':

[root@host ~]# yum upgrade php*
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Upgrade Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package php-tidy.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-xml.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-mbstring.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-gd.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-imap.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-ldap.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-pdo.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-common.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
--> Processing Dependency: file for package: php-common
---> Package php-mcrypt.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-devel.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-cli.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
---> Package php-mysql.x86_64 0:5.3.0-2.el5.remi.2 set to be updated
--> Finished Dependency Resolution
Error: Missing Dependency: file is needed by package php-common

I have file:

pear list

File                       1.3.0    stable
File_Find                  1.3.0    stable
Fileinfo                   1.0.4    stable

[root@host~]# file -v
file-4.26
magic file from /usr/local/share/file/magic

I also tried to yum clean all and redo the upgrade process. I tried to remove php and reinstall php. Nothing to do. Same error.
It seems that php-common-5.2.10 find 'file', while php-common-5.3.0 doesn't find it.

Could you help me?

Linux host 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.2 (Tikanga)


Thank you very much for every hints and helps.
Best Regards
Marco

Re: Problem upgrading to php-5.3: file

file-4.26
magic file from /usr/local/share/file/magic

This is not the standard "file" command.

Shoudl install the "file" from rpm.

$ rpm -qf $(which file)
file-4.17-9.0.1.el5
$ file -v
file-4.17
magic file from /usr/share/file/magic

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problem upgrading to php-5.3: file

Remi wrote:

file-4.26
magic file from /usr/local/share/file/magic

This is not the standard "file" command.

Shoudl install the "file" from rpm.

$ rpm -qf $(which file)
file-4.17-9.0.1.el5
$ file -v
file-4.17
magic file from /usr/share/file/magic

+

Thank you very much. Time ago I upgraded 'file' from source because I need a newest version.
Now I made a 'file' rpm and installed it. No more problem, php upgraded.

So, just a notice: until php-5.2.x there's no need of 'file' from rpm. From php-5.3 'file' rpm-based is mandatory.

regards
marco