具體步驟如下:
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 |
也看了別人的文章:
一般故障表現: |
問題解決了。
這個問題告訴我們,不管你遇到什麼問題(困難),肯定有人在你之前就遇到過了,肯定就有解決的辦法,因此要正視困難,並解決之。