• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with removing packages

 
Ma Yao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the distribution you have and What is the exact command you tried?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic