Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240002 > unrolled thread

run script after updating package

Started byPhilipp Ewald <philipp.ewald@digionline.de>
First post2021-09-15 12:00 +0200
Last post2021-09-15 14:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  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

#240002 — run script after updating package

FromPhilipp Ewald <philipp.ewald@digionline.de>
Date2021-09-15 12:00 +0200
Subjectrun script after updating package
Message-ID<CXzRV-7XC-21@gated-at.bofh.it>
Hello,

is there a way, where i can run a script after updating a spezial package?


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.


Thanks

Kind regards
Philipp


-- 
Philipp Ewald
Administrator

DigiOnline GmbH, Probsteigasse 15 - 19, 50670 Köln
Fax: +49 221 6500-690, E-Mail: philipp.ewald@digionline.de

AG Köln HRB 27711, St.-Nr. 5215 5811 0640
Geschäftsführer: Werner Grafenhain

Informationen zum Datenschutz: www.digionline.de/ds

[toc] | [next] | [standalone]


#240005

FromReco <recoverym4n@enotuniq.net>
Date2021-09-15 13:00 +0200
Message-ID<CXANX-6D-1@gated-at.bofh.it>
In reply to#240002
	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

[toc] | [prev] | [next] | [standalone]


#240008

FromBrian <ad44@cityscape.co.uk>
Date2021-09-15 14:50 +0200
Message-ID<CXCwp-1cy-3@gated-at.bofh.it>
In reply to#240002
On Wed 15 Sep 2021 at 11:32:14 +0200, Philipp Ewald wrote:

> Hello,
> 
> is there a way, where i can run a script after updating a spezial
> package?
> 
> 
> 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.

It looks like you could do something useful with the advice at

  https://unix.stackexchange.com/questions/236833/apt-hook-to-check-for-specific-package-changes

-- 
Brian.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web