macos 如何在 Mac 上卸载 NetBeans?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1014099/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I uninstall NetBeans on a mac?
提问by Harley Watson
I currently have NetBeans 6.5 installed on my mac running leopard. I searched Google on how to uninstall it and the NetBeans website says to right click on it, select "Show Package Contents" and the uninstaller should be there, but it isn't.
我目前在运行 leopard 的 mac 上安装了 NetBeans 6.5。我在 Google 上搜索了如何卸载它,NetBeans 网站说右键单击它,选择“显示包内容”,卸载程序应该在那里,但事实并非如此。
How can I completely uninstall NetBeans in this situation? Thanks!
在这种情况下如何完全卸载 NetBeans?谢谢!
回答by Jesper
Note that NetBeans leaves some hidden configuration directories in your home directory. You might want to delete those too:
请注意,NetBeans 在您的主目录中保留了一些隐藏的配置目录。您可能也想删除它们:
.asadminpass
and .asadmintruststore
- directories that contain stuff for Glassfish (Java EE application server)
.asadminpass
和.asadmintruststore
- 包含 Glassfish 内容的目录(Java EE 应用程序服务器)
.netbeans
and .netbeans-registration
- NetBeans configuration directories
.netbeans
和.netbeans-registration
- NetBeans 配置目录
.nbprofiler
- something from the NetBeans profiler
.nbprofiler
- 来自 NetBeans 分析器的东西
In a terminal window, you can list all files and directories (including hidden ones) with ls -la
, and you can delete them with for example rm -rf .netbeans
(BE CAREFUL with that last command, it deletes stuff so that you can't get it back).
在终端窗口中,您可以使用 列出所有文件和目录(包括隐藏的)ls -la
,并且您可以使用例如删除它们rm -rf .netbeans
(使用最后一个命令时要小心,它会删除内容,因此您无法取回)。
回答by Barry Brown
回答by Basil Bourque
Compiled List
编制清单
Here is a list of the nooks and crannies where you need to find and delete files and folders. I compiled this list from the multiple sources listed on this page.
这是您需要查找和删除文件和文件夹的角落和缝隙的列表。我从本页列出的多个来源编译了这个列表。
My list here was true for me in Mountain Lion 10.8.5 with NetBeans 8.0.2. Of course things may change in the future or past.
我在此处列出的列表在带有 NetBeans 8.0.2 的 Mountain Lion 10.8.5 中对我来说是正确的。当然,事情可能会在未来或过去发生变化。
Some may not be necessary for some upgrades between versions of NetBeans. But if you want a truly freshinstall, here you go.
对于 NetBeans 版本之间的某些升级,有些可能不是必需的。但是如果你想要一个真正的全新安装,你就可以了。
You could write a shell script to do this deleting. But I just do it by hand as this Spring-cleaning is not a regular occurrence.
您可以编写一个 shell 脚本来执行此删除操作。但我只是手工完成,因为这次春季大扫除并不经常发生。
I suggest making a back-up copy of each of your projects before doing an upgrade of NetBeans.
我建议在升级 NetBeans 之前制作每个项目的备份副本。
Home folder
主文件夹
Some hidden folders may appear directly in your home folder. The .
as first letter hides the file/folder by default. To permanently show such files/folders in the Finder, read thisor this.
某些隐藏文件夹可能会直接出现在您的主文件夹中。将.
作为第一个字母默认为隐藏文件/文件夹。要在 Finder 中永久显示此类文件/文件夹,请阅读此或此。
- ~/.netbeans-derby
- ~/.netbeans-derby
In later versions of Mac OS X, the Library
folder is hidden from your home folder. Also not displayed on the Go
menu. To expose, hold down the Option key while choosing Go
. A Library
menu item appears, about in the middle of the menu.
在更高版本的 Mac OS X 中,该Library
文件夹在您的主文件夹中是隐藏的。也没有显示在Go
菜单上。要公开,请在选择 的同时按住 Option 键Go
。Library
出现一个菜单项,大约在菜单的中间。
- ~/Library/Application Support/NetBeans/
- ~/Library/Caches/NetBeans/7.4
- ~/库/应用程序支持/NetBeans/
- ~/Library/Caches/NetBeans/7.4
Root folder
根文件夹
- /Applications/NetBeans
- /private/var/db/receipts/org.netbeans.*
- /应用程序/NetBeans
- /private/var/db/receipts/org.netbeans.*
回答by bn.
Barry Brown's answer is correct; I would add how this is handled by NetBeans. If you look under the NetBeans installation directory, then under bin, you will see a shell script named "netbeans," which locates your JDK installation when NetBeans is started.
Barry Brown 的回答是正确的;我要补充一下 NetBeans 是如何处理的。如果您查看 NetBeans 安装目录下的 bin,您将看到一个名为“netbeans”的 shell 脚本,它在 NetBeans 启动时定位您的 JDK 安装。
There are third party "Uninstaller" utilities for Mac, but dragging an application from "Applictions" to the trash bin is typically how application removal is done.
Mac 有第三方“卸载程序”实用程序,但将应用程序从“应用程序”拖到垃圾箱通常是完成应用程序删除的方式。
回答by Helen Neely
I think you can uninstall it the same way it is done on Ubuntu as explained in this sample post. I'm not a Mac user myself, so I may be wrong but it's worth posting this here in case there are Linux users in the house.
我认为您可以按照在 Ubuntu 上完成的方式卸载它,如本示例文章中所述。我自己不是 Mac 用户,所以我可能是错的,但值得在这里发布,以防家里有 Linux 用户。
回答by Simon Cranmer
Very helpful but if like me you get stuck with a blank 7.1 project because none of the settings ever import it could be that like me you are upgrading a mac osx from 7.0rc1 or 7.0rc2.
非常有帮助,但如果像我一样你被一个空白的 7.1 项目卡住,因为没有任何设置导入它可能像我一样你正在从 7.0rc1 或 7.0rc2 升级 mac osx。
To fix this or just re-update your settings. Open Telnet session.
要解决此问题或只是重新更新您的设置。打开 Telnet 会话。
cd /Users/{user}/.
netbeans
ls
cd /Users/{user}/.
网豆ls
I had this...
my-MBP:.netbeans {my}$ ls
6.9 7.0rc2 7.1
my-MBP:.netbeans {my}$
I then removed the duff 7.1 settings and manually moved in the 7.0 settings with
然后我删除了 duff 7.1 设置并手动移动到 7.0 设置中
rm -R 7.1
cp -rf 7.0rc2 7.1
When opening up NetBeans next time it will take 2-10 minutes to fully rescan & reindex all but works perfectly after this.
下次打开 NetBeans 时,需要 2-10 分钟才能完全重新扫描和重新索引所有内容,但此后可以正常工作。
HTH
HTH
Simon.
西蒙。