2007年12月08日

    How do I uninstall Cygwin - [ARM学习]

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://lostu.blogbus.com/logs/11688852.html

    How do I uninstall a Cygwin service?
        

       1.List all services you have installed with cygrunsrv -L. If you do not have cygrunsrv installed, skip this FAQ.
       2.Before removing the service, you should stop it with cygrunsrv --stop service_name. If you have inetd configured to run as a standalone service, it will not show up in the list, but cygrunsrv --stop inetd will work to stop it as well.
       3.Lastly, remove the service with cygrunsrv --remove service_name.


    How do I uninstall all of Cygwin?
        

    Setup has no automatic uninstall facility. The recommended method to remove all of Cygwin is as follows:

       1.If you have any Cygwin services running, remove by repeating the instructions in http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-service for all services that you installed. Common services that might have been installed are sshd, cron, cygserver, inetd, apache, postgresql, and so on.
       2.Stop the X11 server if it is running, and terminate any Cygwin programs that might be running in the background. Remove all mount information by typing umount -A and then exit the command prompt and ensure that no Cygwin processes remain. Note: If you want to save your mount points for a later reinstall, first save the output of mount -m as described at http://cygwin.com/cygwin-ug-net/using-utils.html#mount.
       3.Delete the Cygwin root folder and all subfolders. If you get an error that an object is in use, then ensure that you've stopped all services and closed all Cygwin programs. If you get a 'Permission Denied' error then you will need to modify the permissions and/or ownership of the files or folders that are causing the error. For example, sometimes files used by system services end up owned by the SYSTEM account and not writable by regular users.

          The quickest way to delete the entire tree if you run into this problem is to change the ownership of all files and folders to your account. To do this in Windows Explorer, right click on the root Cygwin folder, choose Properties, then the Security tab. If you are using Windows XP Home or Simple File Sharing, you will need to boot into Safe Mode to access the Security tab. Select Advanced, then go to the Owner tab and make sure your account is listed as the owner. Select the 'Replace owner on subcontainers and objects' checkbox and press Ok. After Explorer applies the changes you should be able to delete the entire tree in one operation. Note that you can also achieve this in Cygwin by typing chown -R user / or by using other tools such as CACLS.EXE.
       4. Delete the Cygwin shortcuts on the Desktop and Start Menu, and anything left by setup.exe in the download directory. However, if you plan to reinstall Cygwin it's a good idea to keep your setup.exe download directory since you can reinstall the packages left in its cache without redownloading them.
       5.If you added Cygwin to your system path, you should remove it unless you plan to reinstall Cygwin to the same location. Similarly, if you set your CYGWIN environment variable system-wide and don't plan to reinstall, you should remove it.
       6.Finally, if you want to be thorough you can delete the registry tree Software\Cygnus Solutions under HKEY_LOCAL_MACHINE and/or HKEY_CURRENT_USER. However, if you followed the directions above you will have already removed all the mount information which is typically the only thing stored in the registry.

     


    随机文章:

    【原】Cygwin安装图记 2007年11月12日
    安装uClinux 源代码 2007年11月15日
    25年嵌入式生涯 2007年10月04日

    收藏到:Del.icio.us




    引用地址:

发表评论

您将收到博主的回复邮件
记住我