Mail archive

Re: [alpine-devel] apk robustness

From: Timo Teras <>
Date: Sun, 22 Dec 2013 20:46:13 +0200

On Sun, 22 Dec 2013 17:06:18 +0100
"Leslie P. Polzer | PORT ZERO" <> wrote:

> how robust is apk? Consider a system upgrade with a couple
> of packages that is interrupted by a power outage. Will it
> leave the system in a sane state, guaranteed?
> I think the answer is no, but I'll be happy to know more about
> this.

It is not fully guaranteed. Considering apk was originally built for
the run-from-ram situation, this is not a major issue. But now that we
are having more and more run-from-harddisk setups, it might need to be

Basically the apk database is updated only once at the end - so the
situation will be that apk thinks nothing was done, even if some
packages got updated. Next apk update will start thinking that some
packages were not updated.

So no, the apk db is not corrupted. But yes, it will not reflect the
system status exactly.

- Timo

Received on Sun Dec 22 2013 - 20:46:13 UTC