網頁

2013年7月20日 星期六

Cygwin/X --- Uninstall & Remove Cygwin/X Component and related setting

Due to Cygwin/X never have uninstall facility by Setup tool, we have to do some method manually if need to remove all Cygwin/X component.
How to do it?
Stop and Remove any Cygwin Services
If the Cygwin services (# 1) such as sshd are running, ScreenHunter_02we have to stop all services by using cygrunsrv –E sshd commandScreenHunter_03ScreenHunter_04and uninstall all service by using cygrunsrv –R ssh command.ScreenHunter_05ScreenHunter_06
Delete the Cygwin root folder and all subfolders
Based on the logon account, we will take ownership of the recursive files and folders of the Cygwin installation path by using takeown /r /f c:\cygwin commandScreenHunter_02So does that the status is as follows:
AS-ISScreenHunter_01TO-BEScreenHunter_03
We also have to delegate Full Access to Everyone in the recursive files and folders of the Cygwin installation path by using icacls c:\cygwin /t /grant Everyone:F command.ScreenHunter_05So does that the status is as follows:
AS-ISScreenHunter_04TO-BEScreenHunter_06
In the moment, we can completely delete the cygwin folder and its subfolders by using rmdir /s c:\cygwin command.
ScreenHunter_07
Delete key from registry
Start...Run... regedit and Delete Cygwin keys from registry tree “Computer\HKEY_CURRENT_USER\SoftwareScreenHunter_08Delete the system variable (option)
To remove the Environment Variable as 'CYGWIN' if ever create it.ScreenHunter_02Delete the related Account (option)
To remove the related account as cyg_server & sshd if ever create it in the installation process.ScreenHunter_01Until now, the Cygwin/X will be uninstalled clearly.

Reference(# 1) we can know what services are running now by using cygrunsrv –list on the prompt command.ScreenHunter_23

沒有留言:

張貼留言

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.