Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 12:38:50 +0100
From:      Jamie Paul Griffin <jamie@kode5.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: removing non-existent ports from /var/db/pkg ?
Message-ID:  <20121002113850.GA82914@kontrol.kode5.net>
In-Reply-To: <506ACC41.5000100@freebsd.org>
References:  <201210020808.q9288Y2J023975@mech-cluster241.men.bris.ac.uk> <506AB4C8.6020208@freebsd.org> <20121002103310.GA3931@kontrol.kode5.net> <506ACC41.5000100@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
[ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121002113850.GA82914>