X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,KHOP_RCVD_UNTRUST,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_DKIM_INVALID X-Spam-Check-By: sourceware.org Message-ID: <50697D8B.6070903@gmail.com> Date: Mon, 01 Oct 2012 13:24:59 +0200 From: marco atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Check if a package is installed References: <50697891 DOT 7030200 AT freesbee DOT fr> In-Reply-To: <50697891.7030200@freesbee.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 10/1/2012 1:03 PM, Vincent Rivière wrote: > 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/.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? > cygcheck -c It uses the the two information left by setup.exe /etc/setup/installed.db /etc/setup/.lst.gz to provide a status. Regards Marco -- 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