Web lists-archives.com

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

On 2018-03-29 09:15, Abdullah Ramazanoglu wrote:
On Wed, 28 Mar 2018 20:00:34 +0200 Mikhail Morfikov said:
Is there some variable that holds, for instance, a list of the
packages that apt wants to upgrade? In such way it would be easy to
set this up.

apt list --upgradable
will print out a list, but the output of 'apt' is not considered suitable for parsing by scripts (still unstable).
apt-get --simulate upgrade
will also print the packages to be upgraded, along with a lot of noise that your script would have to filter.

On Wed, 28 Mar 2018 20:18:24 +0200 Mikhail Morfikov said:
But I will try to do something with the trigger and see how that will

It looks as if that worked for you. You created a new package 'firefox-trigger' with a trigger that looked for upgrades to firefox, right? That sounds like the neatest solution, and I will make a note of it for my personal reference. Thanks.