In a message dated Fri, 8 Jun 2001, Craig Sprout writes:
> Turgut Kalfaoglu wrote:
> > [root@tk-laptop RPMS2]# rpm -e kdebase-devel-2.1.1-13mdk.i586.rpm
> > error: package kdebase-devel-2.1.1-13mdk.i586.rpm is not installed
> > [root@tk-laptop RPMS2]# rpm -i kdebase-devel-2.1.1-13mdk.i586.rpm
> > package kdebase-devel-2.1.1-13mdk is already installed
> >
> > now what :) -t
>
> You should be able to rpm -i --force kdebase-devel-2.1.1-13mdk.i586.rpm
>
> (That made my day. I'm still laughing.)
Umm... common mistake, I've made it myself, but the "--force" line you
suggest won't work either...
Once an RPM is installed, the filename one used to install it is no longer
relevant (or even known by) the RPM database. Query an RPM file to see
what package it provides:
# rpm -q kdebase-devel-2.1.1-13mdk.i586.rpm
kdebase-devel-2.1.1-13mdk
Note there's no ".i586.rpm" at the end. So, to delete, you delete the
package name, not the filename associated with it.
Trey
--
Trey Harris
Senior Systems Engineer
VA Linux Systems, New York
Secretary and Executive, SAGE -- The System Administrators Guild