Date: Tue, 02 Oct 2012 18:47:50 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-ports@freebsd.org Subject: Re: removing non-existent ports from /var/db/pkg ? Message-ID: <506B28C6.5060602@infracaninophile.co.uk> In-Reply-To: <20121002113850.GA82914@kontrol.kode5.net> References: <201210020808.q9288Y2J023975@mech-cluster241.men.bris.ac.uk> <506AB4C8.6020208@freebsd.org> <20121002103310.GA3931@kontrol.kode5.net> <506ACC41.5000100@freebsd.org> <20121002113850.GA82914@kontrol.kode5.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig38E274C04BE819BD46410EF5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/10/2012 12:38, Jamie Paul Griffin wrote: > [ Matthew Seaman wrote on Tue 2.Oct'12 at 12:13:05 +0100 ] >=20 > =20 >> 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 prese= rved. >> >> Note: even if you do delete subdirs that are actually still in use, th= is >> shouldn't be a huge disaster. The only data still in those directorie= s >> will be portmaster's cache of distfile info (which it can cope without= : >> it uses it to efficiently identify old distfiles that can themselves b= e >> tidied up) and flag files like +IGNOREME which you will want to >> regenerate before you next do a ports update. >=20 > Ok, thanks for clarifying that for us. Very much appreciated.=20 I just committed this: http://git.io/G2qIIg Which makes the patch compatible with portmaster-3.14 and also now makes portmaster remove superfluous subdirectories of $PKG_DBDIR when removing any packages. This should keep $PKG_DBDIR reasonably tidy going forwards, but it won't clean up all of the existing problem subdirs. For that you'll need a one-off job to clean up as described above. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig38E274C04BE819BD46410EF5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBrKM4ACgkQ8Mjk52CukIyN6gCeMdsn3f+xCrOSe1X/DkVFyvmx Yn0AoIlWhAmxPDzityJx/EEgGzpNgNBC =q2Ok -----END PGP SIGNATURE----- --------------enig38E274C04BE819BD46410EF5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506B28C6.5060602>