Sample Header Ad - 728x90

Package installation failure and rollback options

1 vote
1 answer
361 views
I'm trying to understand how the creation of packages (rpm, deb, dpkg) work and what the architecture supports and doesn't. Right now I struggle figuring out what happens when the installation or upgrade of a package fails at different points of the process -ie, error on a scriptlet, not enough disk space (is this checked before starting?)-. From my current understanding, there's no automatic rollback to a previous working version if there was any. So my question would be, how do packages deal with this scenarios? Aren't scriptlets used at all to backup files and restore them post transaction if some error occurred? (I coudln't find examples so far) Thank you.
Asked by jrs (113 rep)
Feb 28, 2024, 11:18 AM
Last activity: Feb 28, 2024, 12:36 PM