From owner-freebsd-ports@FreeBSD.ORG Tue Oct 2 11:38:53 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB3511065670 for ; Tue, 2 Oct 2012 11:38:53 +0000 (UTC) (envelope-from jamie@kode5.net) Received: from kontrol.kode5.net (kontrol.kode5.net [80.229.5.32]) by mx1.freebsd.org (Postfix) with ESMTP id 124868FC12 for ; Tue, 2 Oct 2012 11:38:52 +0000 (UTC) Received: from kontrol.kode5.net (localhost [127.0.0.1]) by kontrol.kode5.net (8.14.5/8.14.5) with ESMTP id q92BcoEg021436 for ; Tue, 2 Oct 2012 12:38:50 +0100 (BST) (envelope-from jamie@kode5.net) Received: (from jamie@localhost) by kontrol.kode5.net (8.14.5/8.14.5/Submit) id q92BconD021435 for freebsd-ports@freebsd.org; Tue, 2 Oct 2012 12:38:50 +0100 (BST) (envelope-from jamie@kode5.net) X-Authentication-Warning: kontrol.kode5.net: jamie set sender to jamie@kode5.net using -f Date: Tue, 2 Oct 2012 12:38:50 +0100 From: Jamie Paul Griffin To: freebsd-ports@freebsd.org Message-ID: <20121002113850.GA82914@kontrol.kode5.net> Mail-Followup-To: freebsd-ports@freebsd.org References: <201210020808.q9288Y2J023975@mech-cluster241.men.bris.ac.uk> <506AB4C8.6020208@freebsd.org> <20121002103310.GA3931@kontrol.kode5.net> <506ACC41.5000100@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <506ACC41.5000100@freebsd.org> x-operating-system: FreeBSD 9.1-PRERELEASE amd64 x-pgp-fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38 x-pgp-key: 1D31DC38 User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.6 at kontrol.kode5.net X-Virus-Status: Clean Subject: Re: removing non-existent ports from /var/db/pkg ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 11:38:53 -0000 [ Matthew Seaman wrote on Tue 2.Oct'12 at 12:13:05 +0100 ] > At the moment, the only way to clear up is to manually remove the > outdated subdirectories from /var/db/ports. You can work out what is > out of date by comparing the list of sub-dirs to the list of installed > ports obtained by > > pkg info -aq > > Should only take a few minutes to write a small script to do that. > > Be careful not to trash local.sqlite, repo.sqlite or auditfile -- in > fact, anything in /var/db/pkg which is not a directory should be preserved. > > Note: even if you do delete subdirs that are actually still in use, this > shouldn't be a huge disaster. The only data still in those directories > will be portmaster's cache of distfile info (which it can cope without: > it uses it to efficiently identify old distfiles that can themselves be > tidied up) and flag files like +IGNOREME which you will want to > regenerate before you next do a ports update. Ok, thanks for clarifying that for us. Very much appreciated. Best wishes, Jamie