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


Groups > linux.debian.user > #194239

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

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: How to execute user's scripts when upgrading a certain package via apt/aptitude
Date 2018-03-28 20:50 +0200
Message-ID <vyoj0-6FJ-3@gated-at.bofh.it> (permalink)
References <vymAx-5yN-5@gated-at.bofh.it> <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>
Organization linux.* mail to news gateway

Show all headers | View raw


-----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-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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