| ▲ | cloudfudge a day ago | |
That would be another way to get the rollback property, but that doesn't solve for example the dependency collision problem. It also doesn't solve the problem of deleting something another package depends on, other than that you can roll it back. With nix, if the package is referenced in a closure, it simply isn't deleted. It's like magical garbage collection for every part of your system. And it isn't just a snapshot of your machine state, it's a definition of how the machine state got that way, plus a mechanism for arbitrarily applying any such definition. You don't even have to restrict yourself to a linear roll-forward-roll-back path. You can install A, B, C, D, E and then remove C and know that you aren't breaking anything, even though you were never in that state before. | ||