From owner-freebsd-ports@FreeBSD.ORG Fri Apr 4 22:48:11 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45FA9928 for ; Fri, 4 Apr 2014 22:48:11 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F02CDC23 for ; Fri, 4 Apr 2014 22:48:10 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s34Mm9J5041049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 4 Apr 2014 16:48:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s34Mm9e0041046 for ; Fri, 4 Apr 2014 16:48:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 4 Apr 2014 16:48:09 -0600 (MDT) From: Warren Block To: ports@FreeBSD.org Subject: Checking Installed Ports Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 04 Apr 2014 16:48:09 -0600 (MDT) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 22:48:11 -0000 Using pkg_libchk from Dominic Fandrey's excellent sysutils/bsdadminscripts port has helped locate ports that needed to be rebuilt before they became problems. Now there's pkg check, although I confess to not understanding the man page. Some options appear to check installed packages, while others appear to update stored checksums to match installed files. There's also pkg audit. It would be nice to put together a script that checks everything that can possibly be checked. So: pkg_libchk -o pkg check -s (although it produces some false positives, like /compat/linux/etc/ld.so.cache) pkg audit -F What else can be tested, preferably without false positives?