Issue:
 By Default mysql has been installed on my RHEL 4.0 Update 2 System.I want to completely remove the package.I tried doing :I found the package during rpm -qa command and attempted deleting the package.

 [root@BL ~]# rpm -e mysql-4.1.12-3.RHEL4.1
error: Failed dependencies:
libmysqlclient.so.14 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386

But it is showing some error.How Can I remove it completely?

Solution:

Well, you also need to remove the dependencies that rely on the package. RPM doesn't like to leave orphan packages around so it'll complain to it's heart content. rpm -e cyrus-sasl-sql-2.1.19-5.EL4.i386 mysql-4.1.12-3.RHEL4.1 That should do the trick, just include all packages in the same rpm -e command.