Red Hat Topics - RPM lies about an installed package

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > March 2005 > RPM lies about an installed package





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RPM lies about an installed package
Mark Healey

2005-03-16, 5:46 pm

As root I tried:

[]rpm -e nethack-3.4.3-1.i386.rpm

and it responded with:

error: package nethack-3.4.3-1.i386.rpm is not installed

Just for shits and giggles I tried:

[]rpm -Uvh nethack-3.4.3-1.i386.rpm

and it replied with:

package nethack-3.4.3-1 is already installed

I then did:

[]# rpm -q -a | grep nethack

and got:

nethack-3.4.3-1

What's wrong?


--
Mark Healey
marknews(at)healeyonline(dot)com

Tommy Reynolds

2005-03-16, 8:45 pm

On Wed, 16 Mar 2005 23:45:13 +0000, Mark Healey wrote:

> As root I tried:
> []rpm -e nethack-3.4.3-1.i386.rpm
> and it responded with:
> error: package nethack-3.4.3-1.i386.rpm is not installed


Correct. You gave rpm(1) a filename, not a package name. If you had
used:

# rpm -e nethack

you'ld have removed nethack, assuming it was installed.

> Just for shits and giggles I tried:
> []rpm -Uvh nethack-3.4.3-1.i386.rpm
> and it replied with:
> package nethack-3.4.3-1 is already installed


Yup, you tried to install a package that was already installed. You
install packages using a filename -- nothing magical about the
filename.

> I then did:
> []# rpm -q -a | grep nethack
> and got:
> nethack-3.4.3-1
> What's wrong?


Well, you have nethack installed ... no productive work will ensue ;-)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com