Mailinglist Archive: opensuse (1185 mails)

< Previous Next >
Re: [opensuse] VirtualBox
  • From: Jon Clausen <jon@xxxxxxx>
  • Date: Mon, 17 May 2010 11:05:57 +0200
  • Message-id: <20100517090557.GC2523@xxxxxxxxxxxxxx>
On Sun, 16 May, 2010 at 07:58:50 -0400, Ken Schneider - openSUSE wrote:
On 05/16/2010 05:53 AM, Jon Clausen pecked at the keyboard and wrote:
On Sun, 16 May, 2010 at 10:31:53 +0200, Alexey Eremenko wrote:

# rpm -e VirtualBox
error: package VirtualBox is not installed

# rpm -e VirtualBox-3.1

Yeah, sometimes it's not immediately apparent where the package 'name' ends,
and where the 'version' begins... (although there are rules)

jon@nx8220:~> rpm -qi virtualbox-ose-3.0.6-9.11.2.i586 | grep Name
Name : virtualbox-ose Relocations: (not relocatable)

So if I wanted to remove this, the command would be:

rpm -e virtualbox-ose


Or simply:

rpm -qa|grep -i virtu

will produce the name of the package to remove.

Hmmm... yeah, I guess you're right...

The point of the excercise was 'how to get the <name> only of the package',
with no abiguity, even if <name> includes dashes, number and dots - as in
the case of VirtualBox-3.1 above.

I could have sworn that 'rpm -e' wouldn't accept the complete
<name>-<version>-<arch> - but apparantly I am wrong about that (I just
tested to be sure)... ...I wonder where I got that idea from...

But 'rpm -qf $(which <command>)' is still valid.
Quicker and less ambiguos than 'rpm -qa | grep <something>'...

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >