Linux RPM Hell error: “mysql-4.1.22-2.el4” specifies multiple packages

Writing by on Thursday, 22 of July , 2010 at 6:27 pm

Can’t get rid of RPMs and you’re running into errors when there are no dependencies?

For example,

error: “mysql-4.1.22-2.el4” specifies multiple packages

Thanks to Hacktux, found the reason is that the RPMs got installed for mysql.i386 and mysql.x86_64

rpm -q –queryformat “%{name}.%{arch}\n” mysql


To solve the problem just execute

rpm -qa | grep mysql | xargs rpm -e –nodeps –allmatches

You should be good to go.

Leave a comment

Category: Linux

No Comments

No comments yet.

Leave a comment

You must be logged in to post a comment.

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.