LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2007, 01:43 PM   #1
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
rpm remove, but system says not installed


This is what happens when I try to remove a rpm... can anybody tell me why?

Code:
[root@localhost matt]# rpm -ivh VMware-workstation-5.5.1-19175.i386.rpm
Preparing...                ########################################### [100%]
        package VMwareWorkstation-5.5.1-19175 is already installed
[root@localhost matt]# rpm -e VMware-workstation-5.5.1-19175.i386.rpm
error: package VMware-workstation-5.5.1-19175.i386.rpm is not installed
[root@localhost matt]#
 
Old 08-27-2007, 01:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you don't uninstall an installation file, you uninstall a package...

rpm -e VMware-workstation

would you try to uninstall "setup.exe" in windows?
 
Old 08-27-2007, 01:48 PM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You're not supposed to enter the full rpm name (including version and .rpm) when removing the package. rpm looks for the package by it's name, the version is automatically the latest because there usually can't be two same packages installed at the same time with different versions. So the correct command to remove would be
Code:
rpm -e VMware-workstation
In installation you need to provide the full package name of course, so rpm knows which file to work with, if you happened to have several files there for example. But with removal only the name is needed, rpm finds out the version information from it's database. If you use yum as your package manager, for example, you also don't use versions or .rpm in the package names, just the name part:
Code:
yum install VMware
and so on, provided that such a package existed in the yum reposities.

Code:
man rpm
man yum
yum applies to Fedora series, and to the other distributions that happen to use yum. The naming scheme is pretty common among package managers (use full filename to install single package, but only the name-part without version or .xxx when removing or using automated package management program).
 
Old 08-27-2007, 04:22 PM   #4
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie View Post
you don't uninstall an installation file, you uninstall a package...

rpm -e VMware-workstation

would you try to uninstall "setup.exe" in windows?
Why does it tell me it is already installed then?
 
Old 08-27-2007, 04:26 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Do you know how to see if something is in the RPM database? Try:

Code:
rpm -qa | grep VMware
 
Old 08-27-2007, 04:37 PM   #6
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by custangro View Post
Do you know how to see if something is in the RPM database? Try:

Code:
rpm -qa | grep VMware
Yep already did

Code:
[root@localhost matt]# rpm -qa | grep VMware
VMwareWorkstation-5.5.1-19175
 
Old 08-27-2007, 05:06 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Actually, these work:
Code:
rpm -e VMware-workstation-5.5.1-19175.i386
rpm -e VMware-workstation-5.5.1-19175
and this not:
Code:
rpm -e VMware-workstation-5.5.1-19175.i386.rpm
Anyway, the normal usage is the one suggested above: you need only the package name (w/o version, w/o architecture, w/o extension). If you re-read posts from acid_kewpie and bOuncer, you already have the solution!
 
Old 08-27-2007, 05:18 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by lonecrow View Post
Yep already did

Code:
[root@localhost matt]# rpm -qa | grep VMware
VMwareWorkstation-5.5.1-19175
From that output, you could uninstall the rpm by doing
Code:
#rpm -e VMwareWorkstation
or using the version number as well
Code:
#rpm -e VMwareWorkstation-5.5.1-19175
 
Old 08-28-2007, 01:30 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by lonecrow View Post
Why does it tell me it is already installed then?
because you install a package FROM a file... e.g. you double click on setup.exe to install a windows program. that contains a package. sorry, but i'm not wrong...
 
Old 08-28-2007, 04:15 PM   #10
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie View Post
because you install a package FROM a file... e.g. you double click on setup.exe to install a windows program. that contains a package. sorry, but i'm not wrong...
Im not saying you were wrong, but I just don't get it.

Here, Ive done as you said, dropping the .rpm, but im getting the same result, where:

Code:
[root@localhost matt]# rpm -ivh VMware-workstation-5.5.1-19175.i386.rpm
Preparing...                ########################################### [100%]
        package VMwareWorkstation-5.5.1-19175 is already installed
[root@localhost matt]# rpm -e VMware-workstation-5.5.1-19175.i386
error: package VMware-workstation-5.5.1-19175.i386 is not installed
...
 
Old 08-28-2007, 04:18 PM   #11
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally Posted by b0uncer View Post
You're not supposed to enter the full rpm name (including version and .rpm) when removing the package. rpm looks for the package by it's name, the version is automatically the latest because there usually can't be two same packages installed at the same time with different versions. So the correct command to remove would be
Code:
rpm -e VMware-workstation
That's not entirely correct. It is possible to have multiple versions of the same RPM on your system (ie kernel). In such cases, you need to be specific on which version you need to remove.
 
Old 08-28-2007, 04:22 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by lonecrow View Post
Im not saying you were wrong, but I just don't get it.

Here, Ive done as you said, dropping the .rpm, but im getting the same result, where:

Code:
[root@localhost matt]# rpm -ivh VMware-workstation-5.5.1-19175.i386.rpm
Preparing...                ########################################### [100%]
        package VMwareWorkstation-5.5.1-19175 is already installed
[root@localhost matt]# rpm -e VMware-workstation-5.5.1-19175.i386
error: package VMware-workstation-5.5.1-19175.i386 is not installed
...
Did you try what I suggested above?
 
Old 08-28-2007, 04:22 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
as stated clearly quite a few times now, the package is called "VMware-workstation" or "VMware-workstation-5.5.1-19175" it even says it right there in the output you pasted in... "package VMwareWorkstation-5.5.1-19175 is already installed" . please read the replies fully in future. thanks...

[whoops, slight mistake from me there of course... it's VMwareWorkstation not VMware-workstation. i'll leave my typo in place for everyone elses amusement! ]
 
Old 08-28-2007, 07:12 PM   #14
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Thanks Redazz, usefull and diplomatic (not like everyone :O) as usual!

this:

Code:
rpm -e VMwareWorkstation
indeed worked out! In the future, I do I know how to spell the name correctly? meaning, how did you came up with "VMwareWorkstation" instead of "VMware-Workstation" or "vmwareworkstation"...?

Thanks very much!
 
Old 08-29-2007, 02:12 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
as above, it was written in the output you pasted to us in the first place. it fair to say that in 99.9% of other occasions it's just the first part of the file name. seems odd that vmware deviated from that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installed apache from source, didn't remove rpm, updated rpm causes problems leftPeg Linux - Newbie 5 06-06-2007 09:20 PM
How to remove non-rpm installed packages ??? thinknologist Ubuntu 3 04-13-2007 12:55 AM
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
Can't remove opera...rpm says not installed hlpboplz Linux - Newbie 3 05-27-2005 05:34 AM
How do I get a current list of RPM packages installed on my system? needamiracle Linux - General 1 12-06-2002 05:38 PM


All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration