IntelliJ Java IDE
The moose likes Linux / UNIX and the fly likes Problem with removing packages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Problem with removing packages" Watch "Problem with removing packages" New topic
Author

Problem with removing packages

Ma Yao
Greenhorn

Joined: Sep 13, 2011
Posts: 2
I got the problem when I try to remove the old JDK in Linux.

I tried rpm -e packagename
or rpm -erase
or rpm -erase --nodeps

I got the same exception:" rpm: arguments to --root (-r) must begin with a /"

can anyone figure out what shall I do? thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3563

What is the distribution you have and What is the exact command you tried?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

You've got your command line options mixed up.

Either do "rpm -e packagename" or "rpm --erase" packagename (Note the DOUBLE dash!). Alternatively, "rpm --erase=packagename". All the same results.

When you only coded a single dash, the command line parser interpreted it as:


So it thought you'd specified an alternate install root ("rase"), which, as it noted, is invalid because the root path must be absolute, and therefore start with "/".

So the following command is actually valid, although I hope no one ever uses it!


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: Problem with removing packages
 
Threads others viewed
Installing J2EE SDK under REDHAT ENTERPRISE 4
CVS Installation on LINUX - Help Required
hard problem: uninstall java 1.4.2.03 in redhat 9
.bin files????????
how to remove java rpm from RH9
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture