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


Groups > linux.debian.user > #194287

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

From "John Crawley (johnraff)" <john@bunsenlabs.org>
Newsgroups linux.debian.user
Subject Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
Date 2018-03-30 04:10 +0200
Message-ID <vyREl-Db-1@gated-at.bofh.it> (permalink)
References (1 earlier) <vyndg-60Z-17@gated-at.bofh.it> <vynPX-6uS-3@gated-at.bofh.it> <vynPX-6uS-1@gated-at.bofh.it> <vyoj0-6FJ-5@gated-at.bofh.it> <vytsl-1HG-1@gated-at.bofh.it>
Organization BunsenLabs

Show all headers | View raw


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.

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

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude Sven Joachim <svenjoac@gmx.de> - 2018-03-28 19:40 +0200
  Re: How to execute user's scripts when upgrading a certain package via apt/aptitude Sven Joachim <svenjoac@gmx.de> - 2018-03-28 20:20 +0200
    Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude <tomas@tuxteam.de> - 2018-03-28 20:50 +0200
      Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-03-29 01:10 +0200
      Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-03-29 01:10 +0200
    Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-29 02:20 +0200
      Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-03-30 04:10 +0200

csiph-web