One task that is often needed is the ability to remove rpms that are currently installed.
The following example demonstrates how to remove installed rpms.
Lets say we need to find the apache package. First you need to find the specific version.
[root@localhost]# rpm -qa apache | grep apache apache-1.3.19-5 [root@localhost]#
So, we need to remove the apache-1.3.19-5 package.
[root@localhost]# rpm -w apache-1.3.19-5
All gone assuming there were no dependency problems.