Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- Date: Fri, 30 Mar 2018 11:00:19 +0900
- From: "John Crawley (johnraff)" <john@xxxxxxxxxxxxxx>
- Subject: 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 --upgradablewill print out a list, but the output of 'apt' is not considered suitable for parsing by scripts (still unstable).
apt-get --simulate upgradewill also print the packages to be upgraded, along with a lot of noise that your script would have to filter.
But:
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 work.
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.
-- John
- Follow-Ups:
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Mikhail Morfikov
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- References:
- How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Mikhail Morfikov
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Sven Joachim
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Mikhail Morfikov
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Sven Joachim
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Mikhail Morfikov
- Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- From: Abdullah Ramazanoglu
- How to execute user's scripts when upgrading a certain package via apt/aptitude
- Prev by Date: Activate/deactivate kernel parameters without reboot
- Next by Date: Re: changing local domain name
- Previous by thread: Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- Next by thread: Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
- Index(es):