Haiku's package manager makes that problem impossible, though, because there is no "installed files" database; whatever packages are in the "activated-packages" file get mounted on startup. If that file doesn't exist, it mounts everything in `/system/packages`. And if that's in an inconsistent state, you can boot into a previous state from the bootloader menu. And if that still doesn't work, you can copy a working `packages` directory from another Haiku install.
Haiku's package manager makes that problem impossible, though, because there is no "installed files" database; whatever packages are in the "activated-packages" file get mounted on startup. If that file doesn't exist, it mounts everything in `/system/packages`. And if that's in an inconsistent state, you can boot into a previous state from the bootloader menu. And if that still doesn't work, you can copy a working `packages` directory from another Haiku install.