Date: Tue, 06 Aug 2013 20:55:16 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: How to Fix Port Audit showing ports not installed on a system Message-ID: <520154A4.4040709@FreeBSD.org> In-Reply-To: <8826af281224e2db334d446a51c11342@dweimer.net> References: <58b0a130601de49508aa7f7b8c1c9833@dweimer.net> <52012B43.5000000@ifdnrg.com> <8826af281224e2db334d446a51c11342@dweimer.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FOb8PdlJhd0lXMunOlv47SppjjLQ0kEm5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/08/2013 19:23, dweimer wrote: > Of course I have WITH_PKGNG=3D"YES" in the make.conf, and I believe tha= t > has been there ever since the server was built. Is my best option to > get the correct list from pkg info use rm -r /var/db/pkg/* to clear > everything out and then reinstall all of the ports? If you've had WITH_PKGNG=3D"YES" ever since the server was built then you= shouldn't have any of the old-style pkg_tools entries in /var/db/pkg. Unless, that is, you've been using pkg_add(1) directly. Don't do that. You just end up with a complete mess. Remember folks -- pkgng is like getting married. Once you go with pkgng, you're not meant to dally with other package tools, but to stay faithful to pkgng from henceforth. I hope you've got the old-style pkg_tools per-package subdirectories in /var/db/pkg because either (i) you used to use pkg_tools and you ran pkg2ng to convert or (ii) you've been using portmaster, in which case those sub-directories only /look/ like the result of what pkg_tools generates, but are really just a place for portmaster to stash a few thin= gs. If those sub-directories contain files called thing like +CONTENTS or +COMMENT or other names beginning with '+' then you do have a messed up mixture of old pkg_tools and pkgng. First: remove all the subdirectories but *not* local.sqlite or repo.sqlite -- those are rather important bits of pkgng. Then you can force a reinstall of all packages by pkg upgrade -f Obviusly, you'll need pkg(8) configured to use a repo with all the appropriate packages available. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --FOb8PdlJhd0lXMunOlv47SppjjLQ0kEm5 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 Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIBVK8ACgkQ8Mjk52CukIyzGwCcCFec8wbpvx0W+H4rxNAPlzlk g4MAn3ZFU+5sIDmLt2Vp+4JDk/9dUCki =ZlE9 -----END PGP SIGNATURE----- --FOb8PdlJhd0lXMunOlv47SppjjLQ0kEm5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?520154A4.4040709>