delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/18/11:43:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,LOCALPART_IN_SUBJECT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <SNT143-W410B76D79608D989B4CE1FBAE50@phx.gbl>
From: Casual Trash <casualtrash AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: Remove cygwin
Date: Tue, 18 Oct 2011 15:42:29 +0000
In-Reply-To: <SNT143-W1675D74513B283CC87735DBAE50@phx.gbl>
References: <SNT143-W1675D74513B283CC87735DBAE50 AT phx DOT gbl>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9IFgvMh014130


Thanks to everybody for the replies.

I have tried to install again the cygrunsrv, setup.exe doesn't return any error but I can't find the cygrunsrv anywhere.

And procexp.exe has found any process in the cygwin folder.

So I can suppose that there is no service running and no process is blocking the cygwin folder, but why I can't delete it?

Somebody has an idea?

Thanks


On 10/18/2011 9:03 AM, Oleksandr Gavenko wrote:
18.10.2011 15:11, Casual Trash ÐÐÑÐÑ:
I have received a computer with some software already installed and I have to clean it up.
One of those software is cygwin, I tried to follow the instructions but without success.

1. I can't locate the cygrunsrv: there is no file with this name and there is no command in the
bash shell with this name!
I have also checked the windows services but I can't find any of the mentioned services: sshd, cron,
cygserver, inetd, apache,
postgresql, etc
To remove services that installed by cygrunsrv install it again:



cmd# setup.exe -p cygrunsrv



locate it and run shell prompt:



cmd# cygrunsrv -L # to list installed services
...
cmd# cygrunsrv -R sshd # to individually remove each installed service

Next you can remove whole cygwin installation directory...



That is.



2. I can't delete the cygwin folder because I receive the "Permission Denied" error, although I
have marked all the files as not read only and changed the ownership to my account.

Can somebody help me out?



This can happen because some process have open handles to this directory.



Try run procexp.exe Ctrl+F and type path to find and kill such processes...
I would add: cygwin is not a monolithic thing. I have a number of cygwin
packages installed, but do not run any servers. So an installation does not
necessarily have any servers for you to worry about. On the other hand, the
permission-denied issue suggests that there *may* be a running server with
files open (e.g., dll's), and that can prevent deletion. procexp is a tool
that you can find and install from the web. It's pretty useful, so you may
as well leave it installed.

Regards -- Eliot Moss


 		 	   		   		 	   		  

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019