File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Linux / UNIX
Problem with removing packages
Joined: Sep 13, 2011
Sep 13, 2011 03:41:37
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
Joined: Mar 24, 2008
Dec 04, 2011 06:43:23
What is the distribution you have and What is the exact command you tried?
SCJP 5 | SCWCD 5
How to ask questions
Joined: Jun 25, 2001
Dec 05, 2011 05:50:00
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:
rpm -e -r ase packagename
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!
rpm -er/ase packagename
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Problem with removing packages
hard problem: uninstall java 1.4.2.03 in redhat 9
CVS Installation on LINUX - Help Required
Installing J2EE SDK under REDHAT ENTERPRISE 4
how to remove java rpm from RH9
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014