From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: isar-users@googlegroups.com
Subject: Re: apt-mark hold package within postinst
Date: Fri, 23 Sep 2022 11:58:53 +0200 [thread overview]
Message-ID: <CAJGKYO7OiLv02apDSrTzo=gRM4fBapOEBUhPtOOF--MVnBfPsA@mail.gmail.com> (raw)
In-Reply-To: <CAJGKYO6V+W=fdiNfF9iKTVwfBzqKguTN+wTnC43=96+wxQGZ=w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Il Ven 23 Set 2022, 11:22 Roberto A. Foglietta <roberto.foglietta@gmail.com>
ha scritto:
> Hi all,
>
> .deb repackaged should not upgrade with any external source so they
> should marked on hold. Easy but not possible to do within postinst
> obviously. Not in a straight way, at least. Am I wrong?
>
This seems quite sane but it keeps the package in hold even if the users
lately decide to upgrade it (possibly with a fixed version).
echo 'APT::Update::Post-Invoke { "apt-mark hold pippo || true"; };' >>
/etc/apt/apt.conf.d/99isar-repackage-hold
My first try was to fork a process in post that waits the installation ends
and then marks the package in hold.
Opinions about?
Best regards, R.
[-- Attachment #2: Type: text/html, Size: 1288 bytes --]
next prev parent reply other threads:[~2022-09-23 9:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 9:22 Roberto A. Foglietta
2022-09-23 9:58 ` Roberto A. Foglietta [this message]
2022-09-23 10:56 ` Henning Schild
2022-09-24 20:53 ` Roberto A. Foglietta
2022-09-26 7:09 ` Henning Schild
2022-09-26 7:53 ` Roberto A. Foglietta
2022-09-26 12:27 ` Henning Schild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJGKYO7OiLv02apDSrTzo=gRM4fBapOEBUhPtOOF--MVnBfPsA@mail.gmail.com' \
--to=roberto.foglietta@gmail.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox