File conflict problem on yum-2.4.3

"Fajar A. Nugraha" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Hi,

I know 2.4 is old, but since some of my systems are RHEL4-based, yum
2.4.3 is the newest version I can use.
I encountered a file conflict resolution problem. To be precise, yum
didn't detect a conflict when it should have done so.

Here's my system :
RHEL4
python-2.3.4-14.2
rpm-4.3.3-18_nonptl
sqlite-2.8.16-1.2.el4.rf
python-sqlite-1.0.1-1.2.el4.rf
yum-2.4.3-5.el4.fan
mysql-4.1.20-1.RHEL4.1

I wanted to replace redhat's mysql with mysql.com's. Some of the systems
need to replace both client and server, others just needs the client. On
the ones where I replace both client and server, things are working as
expected.

# rpm -qp --provides MySQL-server-5.0.27-0.glibc23.i386.rpm
MySQL
config(MySQL-server) = 5.0.27-0.glibc23
msqlormysql
mysql
mysql-server
MySQL-server = 5.0.27-0.glibc23

# rpm -qp --obsoletes MySQL-server-5.0.27-0.glibc23.i386.rpm
MySQL
mysql
mysql-server

Mysql's rpm obsoletes redhat's, so when I installed MySQL's
MySQL-server, client, shared, and shared-compat, and devel, yum
correctly removes redhat's mysql, mysql-server, and mysql-devel.

HOWEVER

if I install just the client

# rpm -qp --provides MySQL-client-5.0.27-0.glibc23.i386.rpm
mysql-client
MySQL-client = 5.0.27-0.glibc23

# rpm -qp --obsoletes MySQL-client-5.0.27-0.glibc23.i386.rpm
mysql-client

# rpm -qlp MySQL-client-5.0.27-0.glibc23.i386.rpm
/usr/bin/msql2mysql
/usr/bin/mysql
(output truncated)

# rpm -ql mysql
/etc/ld.so.conf.d/mysql-i386.conf
/etc/my.cnf
/usr/bin/msql2mysql
/usr/bin/mysql
(output truncated)

As you can see, MySQL-client SHOULD conflict with redhat's mysql, since
both provide the same files. rpm -ivh / rpm -Uvh tells me so.

#rpm -Uvh MySQL-client-5.0.27-0.glibc23.i386.rpm
Preparing...                ###########################################
[100%]
        file /usr/bin/mysql from install of
MySQL-client-5.0.27-0.glibc23 conflicts with file from package
mysql-4.1.20-1.RHEL4.1
        file /usr/bin/mysql_tableinfo from install of
MySQL-client-5.0.27-0.glibc23 conflicts with file from package
mysql-4.1.20-1.RHEL4.1
(output truncated)

but yum 2.4.3 will happily install MySQL-client.

# yum install MySQL-client-5.0.27-0.glibc23.i386.rpm
Loading "tsflags" plugin
Loading "priorities" plugin
Setting up Install Process
Setting up repositories
kde-redhat-noarch         100% |=========================|  951 B    00:00
dag                       100% |=========================|  951 B    00:00
RHGFS                     100% |=========================|  951 B    00:00
base                      100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
localdir                  100% |=========================|  951 B    00:00
mysql                     100% |=========================|  951 B    00:00
local                     100% |=========================|  951 B    00:00
centos-extras             100% |=========================|  951 B    00:00
Reading repository metadata in from local files
87 packages excluded due to repository priority protections
Parsing package install arguments
Examining MySQL-client-5.0.27-0.glibc23.i386.rpm: MySQL-client -
5.0.27-0.glibc23.i386
Marking MySQL-client-5.0.27-0.glibc23.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package MySQL-client.i386 0:5.0.27-0.glibc23 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 MySQL-client            i386       5.0.27-0.glibc23 
MySQL-client-5.0.27-0.glibc23.i386.rpm  9.3 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 9.3 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: MySQL-client                 ######################### [1/1]

Installed: MySQL-client.i386 0:5.0.27-0.glibc23
Complete!

Something is definitely wrong here.
Any thoughts?

Regards,

Fajar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.