Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 23CD622366B for <~alpine/users@lists.alpinelinux.org>; Mon, 5 Jun 2023 09:57:33 +0000 (UTC) Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4QZTYQ6qjRz9t7c for <~alpine/users@lists.alpinelinux.org>; Mon, 5 Jun 2023 09:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685959050; bh=QX19qpyDrdO1DIcryr6k+hk8kLTQUAcg0Mp/6e/nR7g=; h=Subject:From:To:Date:From; b=K4lI4mYc3C+XS2XYDLGbZF1eCZ1dkcwuy9Mza6ZDqcoKiSHVXFaHnQoVjEFxWcVYn hLfVJ1DC1pnAsZ1vHo1VnrD/p3g/YK5p46Bg6YHBdYxLka1bKlFiCjlqcNsEUdmsFi 3teI106aTLEz5rbcANoesHgbYH+ej4VutrUGqsY4= X-Riseup-User-ID: 9EEB31C86AE5366996004B3484A097D0B3D65BB799E9C334A1123E31F4A4F128 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4QZTYQ2WJ9zJn3Y for <~alpine/users@lists.alpinelinux.org>; Mon, 5 Jun 2023 09:57:30 +0000 (UTC) Message-ID: <80d4ec57e741f0a1eb9109f6dabe75a5d437c7e5.camel@riseup.net> Subject: Does an apk feature exist similar to deb's dpkg-divert or pacman.conf's NoExtract? From: Ralf Mardorf To: ~alpine/users@lists.alpinelinux.org Date: Mon, 05 Jun 2023 11:57:27 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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