amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Request] - gpg-agent

Open amarkum opened this issue 1 year ago • 5 comments

What package is missing from Amazon Linux 2023? Please describe and include package name. gpg-agent

Is this an update to existing package or new package request? new package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. yes

Any additional information you'd like to include. (use-cases, etc) basically to have gpg decryption / encryption support, it looks for gpg-agent, which is not existing, the newer ariflow has gpg 2.7.X where it requires gpg-agent though we are using python-gnupg, i trier pinetary bypass but that does not work and it still searches for gpg-agent

amarkum avatar Sep 06 '24 12:09 amarkum

AL2023 comes with gnupg2-minimal only. If you want gpg-agent install gnupg2 package.

sudo dnf install --allowerasing gnupg2

zcobol avatar Sep 07 '24 22:09 zcobol

You want to:

dnf swap gnupg2-minimal.x86_64 gnupg2.x86_64

danie-dejager avatar Sep 09 '24 11:09 danie-dejager

FYI: under the hood dnf swap uses --allowerasing option to resolve package conflicts, so both commands mentioned above are doing exactly the same thing. Pick either one!

elsaco avatar Sep 09 '24 16:09 elsaco

While it's great that there's a workaround, it really feels like a botch that this workaround is even needed. Seems like a fairly pointless deviation from how other, RPM-based distros do things.

ferricoxide avatar Jul 21 '25 14:07 ferricoxide

We do this for gpg and curl as a way to keep the minimal images (and especially the container ones) smaller as the full versions carry quite a lot of dependencies that would bloat the base images needlessly.

It looks like future Fedora is going to try to address this differently by splitting the packages into a collection of subpackages... though I suspect that ship has sailed for us at least for AL2023.

This is not per-se a workaround. It's the documented approach. We install the minimal version by default which you can "swap" for the full one.

ozbenh avatar Jul 22 '25 06:07 ozbenh