Web lists-archives.com

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




-----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 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 see how that will work.

I think the trick is to create a (nearly) empty package "my-firefox-custom"
which depends on firefox and thus pulls it in before its own post-install
takes over.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlq74ZgACgkQBcgs9XrR2kbT9ACfQjrs0rzgRKXyWjXwJOKgOXJT
N4MAn1OQERkWXADCZJlQ1S2/OWcr3iKe
=moS3
-----END PGP SIGNATURE-----