Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #240005
| From | Reco <recoverym4n@enotuniq.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: run script after updating package |
| Date | 2021-09-15 13:00 +0200 |
| Message-ID | <CXANX-6D-1@gated-at.bofh.it> (permalink) |
| References | <CXzRV-7XC-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
run script after updating package Philipp Ewald <philipp.ewald@digionline.de> - 2021-09-15 12:00 +0200 Re: run script after updating package Reco <recoverym4n@enotuniq.net> - 2021-09-15 13:00 +0200 Re: run script after updating package Brian <ad44@cityscape.co.uk> - 2021-09-15 14:50 +0200
csiph-web