X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-4.3 required=5.0	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <50697891.7030200@freesbee.fr>
Date: Mon, 01 Oct 2012 13:03:45 +0200
From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= <vincent.riviere@freesbee.fr>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.7) Gecko/20120824 Thunderbird/10.0.7
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Check if a package is installed
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Hello.

I would like to know how to reliably test if a Cygwin package is already 
installed (just like setup.exe does).

Currently, I test the existence of /etc/setup/<package>.lst.gz. It works 
perfectly for me, but a user reported to me that that file was missing 
sometimes.

I see there is also package information listed in 
/etc/setup/installed.db. Maybe this information should be considered as 
more reliable?

-- 
Vincent Rivière

--
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

