Le 05/07/2024 à 11:31, Nicolas George a écrit :
[...]
There is another property of Nix I need: Nix never replaces a file, it
only creates new files under different directories. This is important
for me as I intend to use the same snapshot of the /nix volume connected
read-only on multiple virtual machines. That way, I can install a new
version of, say, PostgreSQL for one VM but the other VMs running the
older version will not be affected at all until I upgrade them too.

Do you know if pkgsrc can give the same guarantee?

Sorry, I have used pkgsrc (on NetBSD only) really long ago, when it was source only, and it was not an intensive use.
So I can not answer

(I have also put the Debian /usr on a separate volume with a read-only
snapshot shared between VMs. The fact that on Debian stable an upgrade
does not require change in configuration files means I can upgrade the
system, make a new snapshot and reboot the VMs on it and it will work. I
even “mv /boot /usr && ln -s usr/boot /boot”. It seems to work. At some
point I will write a blog article about it.)

I am not knowledgeable about this matter, neither.

Perhaps (*big* conditional here) something like rpm-ostree or a custom combination of libostree and another package manager (the latter, I don't even know if it is possible in real life with only a limited effort) could be interesting to you:
https://coreos.github.io/rpm-ostree/
https://en.wikipedia.org/wiki/OSTree


Reply via email to