Date: Tue, 11 Feb 2014 07:40:54 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Concerning pkgng Message-ID: <52F9D406.2090907@FreeBSD.org> In-Reply-To: <52F9A3C9.6090804@missouri.edu> References: <52F9A3C9.6090804@missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XJxqFTckQ7sfDfhiv3U1CaJ8Mlj7LmBBO Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/02/2014 04:15, Montgomery-Smith, Stephen wrote: > So I have started using pkgng. It is extremely easy to convert, it run= s > very fast, and I really like it. Very glad to hear you like it. > However, it would be nice if the old pkg_install, pkg_info, etc program= s > were somehow disabled on FreeBSD-8. Maybe they could look inside > /etc/make.conf and see if /var/db/pkg/local.sqlite exists, and then > decide not to operate. >=20 > The reason for this is because I can easily see me accidentally doing > pkg_delete instead of pkg delete. And especially since pkg convert > seems to leave all the old directories in /var/db/pkg, I can see this > creating quite a mess. >=20 > I know I can simply delete the pkg_delete, pkg_info binaries. But I'll= > have to remember to do that each time I remake world. If you're building your own systems, then there should be /etc/src.conf options to disable the old pkg tools. According to src.conf(5): WITHOUT_PKGTOOLS Set to not build pkg_add(8) and related programs. This should add pkg_add et al to the obsolete files list, so 'make delete-old' will remove them. Otherwise, you can clear out the old pkg_tools data from /var/db/pkg -- this will make pkg_tools think there are no packages installed which mostly renders accidentally using those tools harmless. To do this, delete the subdirectories under /var/db/pkg. This is what the contents of /var/db/pkg look like on a fully pkgng-ised setup: lucid-nonsense:/var/log:# ls -la /var/db/pkg total 11332 drwxr-xr-x 2 root wheel 5 Feb 11 07:34 ./ drwxr-xr-x 24 root wheel 36 Feb 11 07:24 ../ -rw-r--r-- 1 root wheel 17022976 Feb 11 07:12 local.sqlite -rw-r--r-- 1 root wheel 1412096 Feb 11 07:09 repo-infracaninophile.sqlite -r--r--r-- 1 root wheel 3077188 Feb 8 05:48 vuln.xml where you will have different repository names or several different repo-foo.sqlite files depending on what you have configured. One note of caution: if you use portmaster, it uses those per-port subdirectories under /var/db/pkg to stash some information about what distfiles ports use. I don't think it is a disaster if that info gets blown away, but don't get concerned if those subdirectories keep re-appearing. The significant difference is if there's a file +CONTENTS plus various other files starting with + -- if those aren't there, then it's all good. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --XJxqFTckQ7sfDfhiv3U1CaJ8Mlj7LmBBO 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.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJS+dQWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATgXMP/jQ7E/g1dUZMvyYHyvtGBVp0 mQSdqw8Il3L7y9mQANewoE0ETW5PDichh7jXaoaw5qlsehdUMxz01nLUa5TEYoEw wH2vrvE/3pEbGohHaghB6Ev1jUM8WuzR5T8GRumpkit6vlwmLhs9DwKjrH/LRf5L bISDuv6JYVaA6+jyUv5jDmHVVWRGy80ar+a0M9mTEnCXdSmphiOJP2faE3xi3AFd BlOQtbAZuv0Cer086Xut0WvuO4k9xz5/bW8pmZdZjyF9dvOgBK4iPy19Rc93VWYR 2lO3M741xVzcPf482FonToSHWe9WqqDEFzrJwHTCJFB9KdsLLcoGGqy+tjiwo/ec duQeViUWRQJWxYWL14NHon9sFAbk//rV31A6/8qGLvF1/PE5D09IC9YqYfCDcLqU KRxd/ov4gy4BBGG6+qqM3uUHTL4U/BkotbsUsjFSgC/BlMkvnypxG9VCB0/ZFMqA xalc4MC90qlkXufP2xizFP93bQTpIJ5eFVktSvQv4/ZRcTE99lqverHeBG+ls3qv PdJ2An3D1mPHKTDB8JLfz9Dr2CsYQuwDAJKa4TjGSs0yH10TaDRUVZX8iI43z5D9 9raNWHC0udh6orc0c2NVQQIJHBmiORqiAHuU1Ijkv4jeKLRiM7fciha+glMLBPCN LfttSJcBLQY0ODIgCry1 =dx+9 -----END PGP SIGNATURE----- --XJxqFTckQ7sfDfhiv3U1CaJ8Mlj7LmBBO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F9D406.2090907>