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

2018-03-29 Thread Mikhail Morfikov
On 2018-03-30 04:00, John Crawley (johnraff) wrote: > 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

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

2018-03-29 Thread John Crawley (johnraff)
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

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

2018-03-29 Thread Mikhail Morfikov
On 2018-03-29 01:03, John Crawley (johnraff) wrote: > On 2018-03-29 03:40, to...@tuxteam.de wrote: >> On Wed, Mar 28, 2018 at 08:18:24PM +0200, Mikhail Morfikov wrote: >>> On 2018-03-28 20:12, Sven Joachim wrote: >>> I really thought there's some easy way to include user's scripts when you >>> wan

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

2018-03-28 Thread Abdullah Ramazanoglu
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. On Wed, 28 Mar 2018 20:18:24 +0200 Mikhail Morfikov said: > But I will try to do something

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

2018-03-28 Thread John Crawley (johnraff)
On 2018-03-29 03:40, to...@tuxteam.de wrote: I really thought there's some easy way to include user's scripts when you want to make some additional changes to the upgraded packages, but it looks like the apt mechanism is a little bit limited. But I will try to do something with the trigger and se

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

2018-03-28 Thread John Crawley (johnraff)
On 2018-03-29 03:40, to...@tuxteam.de wrote: On Wed, Mar 28, 2018 at 08:18:24PM +0200, Mikhail Morfikov wrote: On 2018-03-28 20:12, Sven Joachim wrote: I really thought there's some easy way to include user's scripts when you want to make some additional changes to the upgraded packages, but it

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

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 21:25, David Wright wrote: > On Wed 28 Mar 2018 at 20:00:34 (+0200), Mikhail Morfikov wrote: >> On 2018-03-28 18:58, Andy Smith wrote: >>> On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: Is there a way to pass some extra commands/script to apt/aptitude so when

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

2018-03-28 Thread David Wright
On Wed 28 Mar 2018 at 20:00:34 (+0200), Mikhail Morfikov wrote: > On 2018-03-28 18:58, Andy Smith wrote: > > On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: > >> Is there a way to pass some extra commands/script to apt/aptitude so when > >> the > >> firefox package is to be upgra

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

2018-03-28 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Mar 28, 2018 at 08:18:24PM +0200, Mikhail Morfikov wrote: > On 2018-03-28 20:12, Sven Joachim wrote: [...] > > It requires you to create your own package (since there is no other way > > to register triggers in dpkg) [...] > I really thought

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

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 20:12, Sven Joachim wrote: > On 2018-03-28 19:46 +0200, Mikhail Morfikov wrote: > >> On 2018-03-28 19:29, Sven Joachim wrote: >>> On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: >>> I have some packages, for instance firefox, which need a little bit of customization from

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

2018-03-28 Thread Sven Joachim
On 2018-03-28 19:46 +0200, Mikhail Morfikov wrote: > On 2018-03-28 19:29, Sven Joachim wrote: >> On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: >> >>> I have some packages, for instance firefox, which need a little bit of >>> customization from a user side. So basically when I install the new

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

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 18:58, Andy Smith wrote: > Hi Mikhail, > > On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: >> Is there a way to pass some extra commands/script to apt/aptitude so when the >> firefox package is to be upgraded, it would recreate the links automatically? > > I've nev

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

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 19:29, Sven Joachim wrote: > On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: > >> I have some packages, for instance firefox, which need a little bit of >> customization from a user side. So basically when I install the new version >> of >> firefox, I also have to do some extra s

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

2018-03-28 Thread Sven Joachim
On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: > I have some packages, for instance firefox, which need a little bit of > customization from a user side. So basically when I install the new version of > firefox, I also have to do some extra steps and so far I've been doing it > manually becaus

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

2018-03-28 Thread Andy Smith
Hi Mikhail, On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: > Is there a way to pass some extra commands/script to apt/aptitude so when the > firefox package is to be upgraded, it would recreate the links automatically? I've never tried it but looking at "man apt.conf" it seems