[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638184: Run custom command after apt-get upgrade or dist-upgrade



On Wed, Aug 17, 2011 at 17:59, Gergely Polonkai <polesz@w00d5t0ck.info> wrote:
> For me it seems that it will be executed after each invocation of dpkg (so
> after every package, instead of the full upgrade process).

No, the call oder is
dpkg::pre-invoke
dpkg::pre-install-pkgs
$ dpkg --do-this
$ dpkg --do-that
$ dpkg --do-whatever
dpkg::post-invoke

If you want to run something on every dpkg call, dpkg has its own
similar called options: --{pre,post}-invoke

(note through, that not 'every' package gets it's own dpkg call - based on its
 importance, dependency-situation and stuff multiple packages can be given to
 dpkg in one call. So it can happen that dpkg is only called once for a given
 apt command even if thousand of packages are touched with it; so please don't
 depend on how often dpkg is called by APT)


Best regards

David Kalnischkies



Reply to: