Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th September 2011, 11:05 PM
papplo Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
linuxchrome
No "uninstall.sh" file in Netbeans folder

Hi I've just installed Netbeans IDE (C/C++) in my computer, but now I want to uninstall it for a reason I can't remember.
I've installed it by downloading the SH script from netbeans.org. I've already checked the documentation and it says there's an uninstall.sh file in Netbeans main folder, but there is no one:



Is there any other way to uninstall this program ?

Last edited by papplo; 10th September 2011 at 11:06 PM. Reason: gramatic fails
Reply With Quote
  #2  
Old 11th September 2011, 02:06 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: No "uninstall.sh" file in Netbeans folder

Did you install netbeans via the Fedora rpm file or did you install the "tar" ball file from netbeans.org?
If you did the Fedora official rpm file, then just do this to uninstall:
Quote:
su -
<root password>
yum remove netbeans
The rpm version of netbeans doesn't have an uninstall.sh script because there's no reason for it. With the
rpm file the correct way to uninstall is to "yum remove" the package (or use PackageKit or if necessary the
last option is rpm -e netbeans )

The directory you seem to be showing in the png image is your ~/.nebeans configuration folder, but note
that both the Fedora rpm and the netbeans tar file from oracle will have similar configuration directories so I can't really tell what you did that way.

The uninstall.sh script does exist in the tar file version, in that case will be in the top level of the installation directory

I installed my netbeans 7.0.1 into ~/local/netbeans-7.0.1 and I was able to find the uninstall.sh script by running find:

Quote:
find ~/local/netbeans-7.0.1 -name "uninstall.sh"
netbeans-7.0.1/uninstall.sh
Reply With Quote
  #3  
Old 12th September 2011, 02:26 PM
papplo Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
linuxchrome
Re: No "uninstall.sh" file in Netbeans folder

Quote:
Originally Posted by marko View Post
Did you install netbeans via the Fedora rpm file or did you install the "tar" ball file from netbeans.org?
If you did the Fedora official rpm file, then just do this to uninstall:

The rpm version of netbeans doesn't have an uninstall.sh script because there's no reason for it. With the
rpm file the correct way to uninstall is to "yum remove" the package (or use PackageKit or if necessary the
last option is rpm -e netbeans )

The directory you seem to be showing in the png image is your ~/.nebeans configuration folder, but note
that both the Fedora rpm and the netbeans tar file from oracle will have similar configuration directories so I can't really tell what you did that way.

The uninstall.sh script does exist in the tar file version, in that case will be in the top level of the installation directory

I installed my netbeans 7.0.1 into ~/local/netbeans-7.0.1 and I was able to find the uninstall.sh script by running find:
I installed it via .sh script.

Code:
[root@pc1 pablo]# yum remove netbeans
Complementos cargados:langpacks, presto, refresh-packagekit
Configurando el proceso de eliminación
No hay nada concordante con el argumento: netbeans
I've already tried uninstalling via 'yum uninstall', and that's what it says(sorry it's in spanish, it says there's no program installed called 'netbeans').
Also tried by running 'find' but still nothing
Reply With Quote
  #4  
Old 12th September 2011, 11:20 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: No "uninstall.sh" file in Netbeans folder

Yeah, if you didn't install netbeans by rpm file than there's no way yum would know about it. I was just asking since I didn't know how you installed it. That means you used the install script from oracle.

You could find where your installation directory is by using the locate system in Fedora:
Quote:
locate -b netbeans.css
locate isn't the greatest for finding files because it matches to any substring in the file path, you can reduce the noise from it a bit by adding the basename -b option (like above). This makes it only match to the last part of the file path. So I picked a uniquely named file (netbeans.css) I see in my netbeans install directory that's unlikely to exist elsewhere. This should show you where your netbeans is. Then you can use that to do the recursive remove I show at the end of this post (be careful).

I don't know why your netbeans-7.0 directory is missing its uninstall.sh script. I have it in mine.

I have an extra machine with no netbeans on it, I reran the "netbeans-7.0-ml-linux.sh" script on it and installed netbeans to my ~/local/netbeans-7.0 directory ( ~/local already existed, I just had it make netbeans-7.0 in it). When it's done there's a big "uninstall.sh" script in it (see bold):

Quote:
cd ~/local
ls -l netbeans-7.0

drwx------. 6 schlemo1 schlemo1 4096 Sep 12 18:12 apisupport/
drwx------. 2 schlemo1 schlemo1 4096 Sep 12 18:11 bin/
-rw-rw-r--. 1 schlemo1 schlemo1 6726 Apr 7 21:29 CREDITS.html
-rw-rw-r--. 1 schlemo1 schlemo1 1770 Apr 7 21:29 DISTRIBUTION.txt
drwx------. 2 schlemo1 schlemo1 4096 Sep 12 18:11 etc/
drwx------. 10 schlemo1 schlemo1 4096 Sep 12 18:12 harness/
drwx------. 8 schlemo1 schlemo1 4096 Sep 12 18:12 ide/
drwx------. 9 schlemo1 schlemo1 4096 Sep 12 18:12 java/
-rw-rw-r--. 1 schlemo1 schlemo1 2117 Apr 7 21:30 LEGALNOTICE.txt
-rw-rw-r--. 1 schlemo1 schlemo1 79587 Apr 7 21:30 LICENSE.txt
-rw-rw-r--. 1 schlemo1 schlemo1 34118 Apr 7 21:30 moduleCluster.properties
drwx------. 8 schlemo1 schlemo1 4096 Sep 12 18:12 nb/
-rw-rw-r--. 1 schlemo1 schlemo1 15822 Apr 7 21:30 netbeans.css
drwx------. 8 schlemo1 schlemo1 4096 Sep 12 18:11 platform/
drwx------. 8 schlemo1 schlemo1 4096 Sep 12 18:12 profiler/
-rw-rw-r--. 1 schlemo1 schlemo1 5496 Apr 7 21:30 README.html
drwx------. 3 schlemo1 schlemo1 4096 Sep 12 18:11 ruby/
-rw-rw-r--. 1 schlemo1 schlemo1 161704 Apr 7 21:30 THIRDPARTYLICENSE.txt
-rwx--x--x. 1 schlemo1 schlemo1 1856512 Sep 12 18:12 uninstall.sh*
drwx------. 5 schlemo1 schlemo1 4096 Sep 12 18:11 websvccommon/
I think you're getting confused with the configuration directory, the netbeans installation also creates a hidden directory in your home directory called .netbeans that's only for user customization, configuration and plugins. That way you can update from one version to the next and not lose your customizations. The .netbeans directory should look something like this:

Quote:
cd
ls -al .netbeans

drwx------. 4 schlemo1 schlemo1 4096 May 12 14:11 ./
drwx------. 62 schlemo1 schlemo1 4096 Sep 12 18:11 ../
drwx------. 23 schlemo1 schlemo1 4096 Sep 9 16:02 6.9/
drwx------. 20 schlemo1 schlemo1 4096 May 24 11:32 7.0/
-rw-------. 1 schlemo1 schlemo1 36 Mar 31 15:38 .superId
I have a 6.9 and a 7.0 since I've had two versions on there.

If you just want to totally get rid of netbeans, you don't really need the uninstaller, just do:

rm -fr ~/.netbeans
rm -fr <path to where you installed netbeans>

then go in your ide menu editor and remove the netbeans launcher.

Mark

Last edited by marko; 12th September 2011 at 11:33 PM.
Reply With Quote
  #5  
Old 29th September 2011, 04:45 PM
Ashraf Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxubuntufirefox
Re: No "uninstall.sh" file in Netbeans folder

Hello, i did face this problem but i could solve it...

Actually, if you remove those file , you didn't uninstall the netbeans coz it's only a configuration file

you can do to /usr/local/netbeans-7.0 and you will find the uninstall script, write ./unistall that will open the uninstaller wizard which include options to uninstall the GlassFish and Apachetomcat.

Remember you have to run the unistall script as a root using sudo ./uninstall.sh or sudo su then ./uninstall.sh

thanks

Last edited by Ashraf; 29th September 2011 at 04:50 PM.
Reply With Quote
Reply

Tags
fedora, netbeans, uninstall

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
netbeans design window "loading" Sigyl Using Fedora 0 15th August 2011 09:04 AM
adding library to netbeans - "undefined reference to" Myke-Wazowski Programming & Packaging 0 4th November 2010 03:43 PM
ATi catalyst 9.8.1 is a virus! keeps resetting xorg.conf even after "uninstall" jellymann Using Fedora 1 1st September 2009 05:38 PM
Deleting a "locked" file or folder jeepfreak Using Fedora 6 7th July 2007 01:30 AM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM


Current GMT-time: 23:24 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat