Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241692
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: is dpkg install atomic? |
| Date | 2021-10-26 20:00 +0200 |
| Message-ID | <DcyTT-6Vg-5@gated-at.bofh.it> (permalink) |
| References | <DcyKd-6RI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Oct 26, 2021 at 10:31:54AM -0700, Han wrote: > Hi, > > This might be a dumb question: is dpkg installing (or updating) a package > using a .deb file atomic in the event of power outage? > > By atomic, I meant either the new version of the application is fully > installed, or not at all. Is this always guaranteed? No. A package can be in a "half-installed" state. unicorn:~$ dpkg -l | head -n3 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) See where it says "Half-inst" in the middle? If an "H" is shown in that column, the package is half-installed. Also, the post-install scripts that most packages use are shell scripts, so you already know a priori that the script could be interrupted partway through.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
is dpkg install atomic? Han <keepsimple@gmail.com> - 2021-10-26 20:00 +0200
Re: is dpkg install atomic? Greg Wooledge <greg@wooledge.org> - 2021-10-26 20:00 +0200
Re: is dpkg install atomic? Roberto C. Sánchez <roberto@debian.org> - 2021-10-26 20:00 +0200
Re: is dpkg install atomic? Brian <ad44@cityscape.co.uk> - 2021-10-26 20:20 +0200
Re: is dpkg install atomic? David Wright <deblis@lionunicorn.co.uk> - 2021-10-26 22:10 +0200
csiph-web