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


Groups > linux.debian.user > #194236 > unrolled thread

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

Started byAndy Smith <andy@strugglers.net>
First post2018-03-28 19:00 +0200
Last post2018-03-28 19:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to execute user's scripts when upgrading a certain package  via apt/aptitude Andy Smith <andy@strugglers.net> - 2018-03-28 19:00 +0200

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

FromAndy Smith <andy@strugglers.net>
Date2018-03-28 19:00 +0200
SubjectRe: How to execute user's scripts when upgrading a certain package via apt/aptitude
Message-ID<vymAx-5yN-3@gated-at.bofh.it>
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 that
setting Apt::Post-Invoke (or possible Apt::Post-Invoke-Success?)
might be useful to you, as you could use it to run a script that
checks that your firefox setup is as you want it.

Another option could be to build your own firefox package with a
post-inst script that does what you want, but given the size and
complexity of the firefox packages that is perhaps a bit ambitious.

Then, there is always the option of creating your own firefox
executable which is a script that checks your environment, fixes it
up if necessary, and then calls the real firefox binary.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

[toc] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web