-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 4/19/13 11:34 PM, Perry Hutchison wrote:
> I'm looking for a way to move everything connected with ports and 
> packages aside, so that I can start fresh but with the ability to 
> easily roll it back when things go badly (as they surely will).
> 
> I have in mind to something like this:
> 
> # cd /usr # mkdir old # mv ports local old # mkdir ports local # cd
> /var/db # mkdir old # mv ports pkg old # mkdir ports pkg
> 
> Is there anything else that needs to be saved before fetching a new
> ports tree and starting to build things (or install prebuilt 
> packages)?
> 
> This is on 8.1, although I suspect the answer does not depend on 
> the OS version.  And yes, there's plenty of space in /usr and
> /var.

If you use ZFS, it's possible to take snapshot, then install new
ports, then if something blows up, you can rollback.

With UFS, it's still possible to take snapshot but rollback is not atomic.

If you use portmaster, it can save packages (I think portupgrade can
do it too).  But this approach depends on the fact that the port is
well written, and is not atomic in terms of package set.

BTW. Speaking for 8.1, it's past EoL, please consider upgrading to a
supported release.

Cheers,

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJRcjpRAAoJEG80Jeu8UPuzdjkIAICtMrOW87AWrtE+3FCGbG9d
4XOPZD6fgFw0eOJ4KpaxyW//e4wqILofyoLmpepYTkiZQG+fzQ8sdHLO6WNdqRo8
ilzpzwpmu3rAaI6YvPj90Oz5Er4Q+yGG1u/1jFfWPDpiWOtVlaYC3HdERqoSQCfo
NCfjEk6UYjRiRSGfw9qynf87WCinhi8su71+/A0RusuDHXeLQWkgfOPrTerm77KM
HBFXKg2F7DlLx9ZdXxv0Tk+8QwHSlYB249oC047MLx/dT0KBOfD2nWK1xhB4pDJo
RRbWKUmb0B/aT0FLLD/swWSbx/59menyHDJBG/ZMmxB58vAhSrkPXtu7SNOlZwU=
=OSk7
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to