Asked
Updated
Viewed
7k times

I am trying to remove or uninstall RPMs, but I am bewildered:

[root@localhost dload]# rpm -ev perl-DBD-MySQL-2.1017-3.i386.rpm
error: package perl-DBD-MySQL-2.1017-3.i386.rpm is not installed

[root@localhost dload]# rpm -ev MySQL-server-4.0.13-0.i386.rpm
error: package MySQL-server-4.0.13-0.i386.rpm is not installed

[root@localhost dload]# rpm -Uvh MySQL-server-4.0.13-0.i386.rpm
warning: MySQL-server-4.0.13-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1017-3
libmysqlclient.so.10 is needed by (installed) php-mysql-4.2.2-17

[root@localhost dload]# rpm -ev perl-DBD-MySQL-2.1017-3.i386.rpm
error: package perl-DBD-MySQL-2.1017-3.i386.rpm is not installed

Can someone explains what is going on, or what I may be doing wrong? What is the proper way to uninstall an RPM file?

add a comment
1

1 Answer

  • Votes
  • Oldest
  • Latest
Answered
Updated

When you remove an RPM simply put the name of the RPM, not the filename of the rpm file. So probably something like

rpm -ev perl-DBD-MySQL

would do the trick. If you do not know the exact name of the rpm that you are trying to remove you can see all the installed RPM's on your server by typing

rpm -qa

If you want to narrow the search down so that you do not have to look through all the RPMs that the previous command outputs you could type something like:

rpm -qa | grep Perl

That will only show results of all installed RPMs that contain the word Perl.

0