Re:NixOS Linux
by millstone on Friday June 12, 2015 @08:47PM
(#9709401)
Err, are there any systems that try to cut over to a new package before it's been built successfully?
[ Parent
| on HN ]
Yes. Almost all of them, actually. By "build" I mean the whole package installation process, including moving the compiled files into their final destinations.
If you're upgrading an existing package, and that involves overwriting one binary in /usr/bin and another in /usr/lib, a crash in the middle of that process leaves the package partially upgraded, and very likely broken.
Nix never overwrites an existing package installation. Instead, it installs the new version in a separate directory, then overwrites a symlink that pointed to the old version with a symlink pointing to the new version.
Re:NixOS Linux
by thrownaway122 on Saturday June 13, 2015 @01:30AM
(#9710005)
I guess that traditional package managers could install a helper script or a config file early in the build system before the main package is finished.