具体步骤如下:
1.删除安装用的临时文件夹(在cygwin里输入命令)
$ rm -f /cygdrive/c/你的临时文件夹
2.停止cron service
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
3.停止并删除inetd服务
$ net stop inetd
$/usr/sbin/inetd --remove-as-service
4.删除安装文件夹,默认是c:/cygwin
5.删除桌面上的icon,和开始菜单里的启动文件夹
6.删除注册表里的相关项
HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus Solutions
HKEY_CURRENT_USER/Software/Cygnus Solutions
7.删除环境变量(PATH, CYGWIN)
环境变量PATH里的c:/cygwin/bin; 还有名叫CYGWIN的变量
==================cygwin官方的分割线==================
今天整理下硬盘里乱七八糟的东西,太乱太多不好整理,删除一些东西。看到以前保存的网页才想到有个问题还没解决——还没把cygwin删掉。这个cygwin目录还是几年前装的,XP重装N次了,小天鹅也重装过几次,都用同一个目录。
原文章在,一样的问题:
Hi, I installed cygwin a few months ago(installed on XP). I reinstalled WindowsXP recently. But there are some files in cygwin installation directory can be deleted. Could somebody help me? Best wishes, Peng |
cygwin的Larry Hall给出了:
Presumably, you reinstalled XP but left the previously So now it's possible you have files that were installed via Cygwin originally with a user/uid that doesn't exist on your Windows system anymore. Finally, you could take ownership of the Cygwin |
也看了别人的文章:
一般故障表现: |
问题解决了。
这个问题告诉我们,不管你遇到什么问题(困难),肯定有人在你之前就遇到过了,肯定就有解决的办法,因此要正视困难,并解决之。