Score:0

apt-key deprecated. Install key without installing gpg?

in flag

I know that apt-key is deprecated and want to install kubectl like this:

docker run -it ubuntu:22.04 bash

apt update; apt install gpg curl sudo

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/kubernetes-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.

apt update

This work (related Kubernetes issue)

BUT: is there a way to accomplish the same without installing gpg?

muru avatar
us flag
`apt-key` uses `gpg` internally, so if you were using `apt-key` before, why can't you use `gpg` now?
guettli avatar
in flag
@muru using gpg feels a bit strange. I would like to have only few packages on my server. That's why I am asking. Maybe it works somehow without gpg, too.
muru avatar
us flag
It looks like you're also installing sudo for no good reason, so again, why not gpg? And if it's that big of a deal, why not just uninstall it after you're done with it?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.