From owner-freebsd-questions@FreeBSD.ORG Tue Feb 25 19:29:39 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B4FCBD8 for ; Tue, 25 Feb 2014 19:29:39 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3E3FC1FAE for ; Tue, 25 Feb 2014 19:29:39 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s1PJTbBN012022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 25 Feb 2014 12:29:38 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s1PJTb4l012019; Tue, 25 Feb 2014 12:29:37 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 25 Feb 2014 12:29:37 -0700 (MST) From: Warren Block To: gahn Subject: Re: pkgng and pkgdb In-Reply-To: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> Message-ID: References: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> 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]); Tue, 25 Feb 2014 12:29:38 -0700 (MST) Cc: freebsd general questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 19:29:39 -0000 On Tue, 25 Feb 2014, gahn wrote: > hi, all: > > i used to use "pkgdb -Ff" along with old wonderful "pkg_whatever" to keep my freebsd station healthy. but i was told the new era of pkg is coming and so i made switch to pkgng. > > the question is: what is the equivalent of "pkgdb -Ff"? for pkg? > > for "pkgdb -Ff", i am especially fond of its ability to fix those duplicated registrations. is the "pkg check -dB -av" the same as that "pkgdb -Ff"? pkgdb is actually part of ports-mgmt/portupgrade, not the base system. It should not be needed with pkg, and pkg should be more resistant to getting two versions of the same port installed. Be careful with pkg check, some of those options install missing dependencies, and it looks to me like some happily recalculate checksums to match installed files rather than detect changes. The pkg-check(8) man page could use some examples, and possibly warnings.