Mailinglist Archive: opensuse (1185 mails)

< Previous Next >
Re: [opensuse] VirtualBox
  • From: Ken Schneider - openSUSE <suse-list3@xxxxxxxxxxxxx>
  • Date: Sun, 16 May 2010 07:58:50 -0400
  • Message-id: <4BEFDDFA.7040208@xxxxxxxxxxxxx>
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 -Uvh VirtualBox-3.1-3.1.8_61349_openSUSE111-1.x86_64.rpm
warning: VirtualBox-3.1-3.1.8_61349_openSUSE111-1.x86_64.rpm: Header V4
DSA signature: NOKEY, key ID 6dfbcbae
Preparing... ###########################################
[100%]
package VirtualBox-3.1-3.1.8_61349_openSUSE111-1.x86_64 is already
installed
# rpm -e VirtualBox
error: package VirtualBox is not installed
#

Use:
# 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)

It is possible to have rpm only print the 'package name' (without the
version info) - but unless one is already familiar with how to do that, I
think the quickest way is to:

Find the binary:

jon@nx8220:~> which VirtualBox
/usr/bin/VirtualBox

Find the 'name+version' of the package that 'owns' the binary:

jon@nx8220:~> rpm -qf /usr/bin/VirtualBox
virtualbox-ose-3.0.6-9.11.2.i586

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

/jon

Or simply:

rpm -qa|grep -i virtu

will produce the name of the package to remove. If more than one package
is presented use a little common sense to figure out which one to remove.

--
Ken Schneider
SuSe since Version 5.2, June 1998
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups