LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-19-2006, 02:58 PM   #1
Gnodab
LQ Newbie
 
Registered: Dec 2006
Posts: 17

Rep: Reputation: 0
unable to delete folder in Mandriva 2007


I installed Java to a folder on the desktop since I couldnt figure out how to gain permissions in the usr/ folder. I figured it out, but only after I installed java. according to the website, these are the directions for uninstalling it.

2. Self-extracting file uninstallation
1. Find out if Java is installed in some folder. Common locations are /usr/java/jre_<version> or /opt/jre_nb/jre_<version>/bin/java/
2. When you have located the folder, you may delete folder.
Warning: You should be certain that Java is not already installed using RPM before removing the folder.
3. Type: rm -r name. For example: rm -r jre1.5.0

However, whenever I type that, I go through this agonizingly long list of files, and folders, which the console asks me to remove. Even if I press y to every single one, nothing gets deleted. what am I doing wrong?

I am in the Home.desktop/, the java folder is Home.desktop/jre1.0.5_10
So once in the Home.desktop/ I should type rm - r jre1.0.5_10

am I missing something?

p.s. How do I copy the .bin file to usr/java? The copy command doesnt work in the console (msdos), and the Gui wont let me copy it either
"access denied", but I gave the folder write permissions for all users under root in the console. any help?

Last edited by Gnodab; 12-19-2006 at 03:07 PM.
 
Old 12-19-2006, 03:10 PM   #2
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
You have to be the root user to delete them, so switch over to the root user using su. looks something like:

su - (The dash is optional, it tells the computer to use the root user's PATH variable)
(enter password)
rm -r name

However, one other thing is kind of bothering me. I don't understand what you mean by Home.desktop. Your desktop folder should be located at /home/(username)/Desktop/.
 
Old 12-19-2006, 03:19 PM   #3
Gnodab
LQ Newbie
 
Registered: Dec 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Ya, your right I just figured that out. Anyways, I was logged in as root (#), and It goes through the motions of deleting the folder/files, but it doesnt.
 
Old 12-19-2006, 03:37 PM   #4
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
try launching your file manager as root (konqueror or nautilus) and then try to delete them.
 
Old 12-19-2006, 05:39 PM   #5
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
Hello,

Since it's a directory the below command will work.

Quote:
rm -rf jre1.5.0
 
  


Reply



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
Upgrading Mandriva 2007.0 to 2007.1 Genin Mandriva 2 12-25-2006 02:48 AM
mandriva one 2007 folder permissions sinamp Mandriva 3 11-25-2006 02:34 AM
Unable to delete folder arctuniol Red Hat 2 10-11-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration