X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References:  <Xns98CF900DBEA80zzappergmailcom@80.91.229.5> <45C88D25.2030301@aol.com>  <Xns98CF9799780A4zzappergmailcom@80.91.229.5>
Subject: RE: How to list/detect any "non-cygwin" apps in /bin
Date: Tue, 6 Feb 2007 16:56:55 -0000
Message-ID: <040201c74a0f$cec154d0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To:  <Xns98CF9799780A4zzappergmailcom@80.91.229.5>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 06 February 2007 14:54, zzapper wrote:

> Tim Prince <n8tm@aol> wrote in news:45C88D25.2030301@aol.com:
> 
>> I may not be catching your intent; why not sort by .dll dependencies?
> I want to find out what non-cygwin apps I will have to manually install on
> my new PC
> 
>> why not sort by .dll dependencies
> How?
> 

  Tim may have been thinking of non-cygwin apps, i.e. non *cygwin* apps, i.e.
apps that do not use or link against cygwin1.dll, i.e. win32 apps, rather than
non-cygwin apps, i.e. *non-cygwin* apps, i.e. ones that aren't from official
packages.  So I guess the answer is

(cd / && ls -1 usr/bin/* ) >a.txt
gunzip -c /etc/setup/*.lst.gz  | grep '^usr/bin/.' > b.txt
cat a.txt b.txt | sort | uniq -u

... although this will also find anything that was created by a postinstall
script as well: shortcuts in particular.  (There may be other false
pos/neg-atives, I haven't been thorough...)


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

