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

Re: run script after updating package



	Hi.

On Wed, Sep 15, 2021 at 11:32:14AM +0200, Philipp Ewald wrote:
> is there a way, where i can run a script after updating a spezial package?

Yes, and it's called "dpkg triggers" - [1].


> I have found this:  APT::Update::Post-Invoke {"/thinks/to/do.sh";}
> This would be workaround but nice would be to only run after a spezial package was updatet.

That will run on any package install, upgrade, removal, and it takes no
arguments. I.e. it's purpose is way too broad and it is intended for
other tasks. Like needrestart or filesystem remounting.


Reco

[1] https://wiki.debian.org/DpkgTriggers


Reply to: