~alpine/users

4 3

Does an apk feature exist similar to deb's dpkg-divert or pacman.conf's NoExtract?

Details
Message ID
<80d4ec57e741f0a1eb9109f6dabe75a5d437c7e5.camel@riseup.net>
DKIM signature
missing
Download raw message
Hi,

does Alpine provide a feature similar to either (Debian/Ubuntu...) deb's

   dpkg-divert

or (Arch) pacman.conf's

   NoExtract

? In other words, can you install packages and exclude certain files in
the packages from the installation, like with pacman.conf's NoExtract,
or can certain files at least be installed in a different path and/or
with a different name, like dpkg-divert allows?

The .desktop files in /usr/local/share/applications/ or
$HOME/.local/share/applications/ in some cases don't override .desktop
files in /usr/share/applications/. This is one of the reasons to
_permanently_ get rid of some files owned by packages, even when
upgrading/reinstalling a package.

Maybe a workaround by making an edited .desktop file immutable by
running chattr might cause issues, if apk tries to remove or overwrite
it, but even if it shouldn't cause issues, I'm in favour of doing it not
like that.

IIUC it is possible to protect paths by /etc/apk/protected_paths.d/, but
not certain files.

Regards,
Ralf

Re: Does an apk feature exist similar to deb's dpkg-divert or pacman.conf's NoExtract?

Details
Message ID
<CT4MP7JCC3VZ.1QR5Y99LIIDHH@sumire>
In-Reply-To
<80d4ec57e741f0a1eb9109f6dabe75a5d437c7e5.camel@riseup.net> (view parent)
DKIM signature
missing
Download raw message
On Mon Jun 5, 2023 at 11:57 AM CEST, Ralf Mardorf wrote:
> Hi,
>
> does Alpine provide a feature similar to either (Debian/Ubuntu...) deb's
>
>    dpkg-divert

no

>
> or (Arch) pacman.conf's
>
>    NoExtract

no

>
> ? In other words, can you install packages and exclude certain files in
> the packages from the installation, like with pacman.conf's NoExtract,
> or can certain files at least be installed in a different path and/or
> with a different name, like dpkg-divert allows?
>
> The .desktop files in /usr/local/share/applications/ or
> $HOME/.local/share/applications/ in some cases don't override .desktop
> files in /usr/share/applications/. This is one of the reasons to
> _permanently_ get rid of some files owned by packages, even when
> upgrading/reinstalling a package.
>
> Maybe a workaround by making an edited .desktop file immutable by
> running chattr might cause issues, if apk tries to remove or overwrite
> it, but even if it shouldn't cause issues, I'm in favour of doing it not
> like that.
>
> IIUC it is possible to protect paths by /etc/apk/protected_paths.d/, but
> not certain files.
>
> Regards,
> Ralf
Details
Message ID
<44086969134f41e7100e8301f10eb875a7ea2271.camel@riseup.net>
In-Reply-To
<80d4ec57e741f0a1eb9109f6dabe75a5d437c7e5.camel@riseup.net> (view parent)
DKIM signature
missing
Download raw message
On Mon, 2023-06-05 at 11:57 +0200, Ralf Mardorf wrote:
> IIUC it is possible to protect paths by /etc/apk/protected_paths.d/, but
> not certain files.

PS:

OTOH the content of the files in /etc/apk/protected_paths.d/ seems to be
protected files. Internet search engines return ambiguous information
related to this topic.

Re: Does an apk feature exist similar to deb's dpkg-divert or pacman.conf's NoExtract?

Details
Message ID
<019605604d1b85d3b998cc416abf962481a9edd2.camel@riseup.net>
In-Reply-To
<CT4MP7JCC3VZ.1QR5Y99LIIDHH@sumire> (view parent)
DKIM signature
missing
Download raw message
On Mon, 2023-06-05 at 12:02 +0200, alice wrote:
> > does Alpine provide a feature similar to either (Debian/Ubuntu...) deb
> >    dpkg-divert
> no
> > or (Arch) pacman.conf's
> >    NoExtract
> no

Thank you!

FWIW I added a comment to
https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10829#note_316654

Re: Does an apk feature exist similar to deb's dpkg-divert or pacman.conf's NoExtract?

Konstantin Kulikov <k.kulikov2@gmail.com>
Details
Message ID
<CAD+eXGTLP2+cLVdr=w3Nm=WCSvE1Umk1VVon7=JYbdC4OPvnrA@mail.gmail.com>
In-Reply-To
<019605604d1b85d3b998cc416abf962481a9edd2.camel@riseup.net> (view parent)
DKIM signature
missing
Download raw message
protected_paths.d is used by lbu and apk audit, i think that's all.
It has nothing to do with what you want here.
Reply to thread Export thread (mbox)