Date: Sun, 28 Jun 2015 16:45:31 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: security patch vs. binary upgrade Message-ID: <5590169B.2070805@FreeBSD.org> In-Reply-To: <20150628163941.dbd85ae4.freebsd@edvax.de> References: <20150621124345.1a09b8f6@jive> <20150628162347.354c348a@jive> <20150628163941.dbd85ae4.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--jJOuA62IPEgF3dNJn6JvtHioQtucu1hgG
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
On 28/06/2015 15:39, Polytropon wrote:
> there's also the suggestion
> to remove /usr/local entirely (after having copied any needed
> configuration of course!) and re-instantiate it using mtree,
> and removing the package database, then finally perform the
> reinstallation. However I don't know if pkg (in comparison
> to old pkg_* tools) likes that approach. :-)
Works fine with pkg(8) so long as you tell pkg that all the ports have
been deleted when you nuke /usr/local. Which boils down to either:
a) use pkg(8) to delete everything:
pkg delete -a
(which will actually delete everything except pkg(8) itself. You may
need to 'pkg unlock' stuff beforehand though.) Do this before
nuking /usr/local.
b) move aside your old package database, and start again with a fresh
one. You can do this before or after nuking /usr/local:
cd /var/db/pkg
mv local.sqlite local.sqlite.old
Then after cleaning out /usr/local:
pkg bootstrap -f
and proceed with installing whatever ports you want. Oh, and make sure
you keep a backup of /usr/local/etc somewhere, as you'll inevitably want
to reinstate some of the config files from there.
Cheers,
Matthew
--jJOuA62IPEgF3dNJn6JvtHioQtucu1hgG
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)
iQJ8BAEBCgBmBQJVkBaiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATeekQAIbHAsGcxFI9/ufK1thYrmwc
FAXdO5hMKzxIHAfSFMdpiFdlHC7brVUJWGYZo8+Lc50NF8rpS/2rn+hEdTJFrcsk
LsGWm14p3gjPuaUs+c40ym4RCmXITySb+l+OGkbW/AnuueGGNf8pFqt+4n0JEe7M
Qk7nzPY10OYjgCJQDvrGMdmcLfpxoosycQMGO7tPL162qdcCpH/xtJK0vkqbqTV9
vl3EuFbfLsv3vmaFUCQ4kcVbLe1B9O1/RSzIlslxPU1ThbyjdPevC7b/mJXcy2CS
5HcPVndyQRl0hAOpOyrrbssb3eD6WsUN1R2Rv/rcnl22n74d9Uug3sR2wbHN2+Th
+dsndMAHTKApv+EZH6mzBxwC8cbUyskXuG/gpNueox0aX92cYCGuiUmQy0oedf1S
80V+U/G8V89QGneEuK6q4Z4LtyyF5Qa5JtlFSxM0gfn0pcgh+EQbRGStcoj7Mo9G
Lgzttt3ocKrB7CFKbOHAg+ADuWIFQdT1aljbeg80PXiQYgvxHK6+8JkAnydyTdh/
bH6nJXwku9AllN7yMmCqihzWYT8Epx0qg7I++WP1wTDTLVOljJ5UTcto6iBJLP96
RjFClrXw8n82gPv81EQr0xDeImOyiP3/d0v8zy5ri62YbE/MTkFmnTDZQsySanxA
QE4gZGwAoGNYolxqSuvH
=/GoP
-----END PGP SIGNATURE-----
--jJOuA62IPEgF3dNJn6JvtHioQtucu1hgG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5590169B.2070805>
