Kunaljain's Weblog

February 10, 2009

Removing RPM packages

Filed under: Linux Tips & Tricks,MySql — Kunal Jain @ 04:14
Tags: ,

Try to remove MySQL from my server which my datacenter guys installed it along with the OS and while doing that i got the following error

shell> rpm -aq | grep mysql | xargs rpm -e

error: “mysql-devel-5.0.45-7.el5” specifies multiple packages
error: “mysql-5.0.45-7.el5” specifies multiple packages
error: “mysql-devel-5.0.45-7.el5” specifies multiple packages
error: “mysql-5.0.45-7.el5” specifies multiple packages

Then i google about this error and with some help from google and rpm manual i use the following command to remove MySQL from my server

shell > rpm -aq | grep mysql | xargs rpm -e --nodeps --allmatches
Advertisements

Blog at WordPress.com.