How would I automatically run a script after the apt-get actions dist-upgrade, install, remove and purge? Is there a suitable way of hooking into the APT lifecycle and run a custom script?
|
|
|||
|
You can automatically run a script by creating a new file
Note that this file does not have to be executable, just 644 mode is sufficient. |
||||
|
|
apt-getin a/your custom script ? – user55822 Oct 20 '12 at 8:21apt-get updatein a terminal (e.g. the update cron job, synaptic, etc.) won't make your script run. – strugee Mar 20 '13 at 4:33