← Learn
Safe
curl -fsSL https://example.com/keys.gpg | sudo gpg --dearmor -o /usr/share/keyrings/example.gpg

linux · bash · Nightmare

Fetches a repository signing key and converts it into the binary keyring format apt expects. It is a download piped into a root command, which is normally the pattern to fear, but gpg --dearmor only re-encodes key material and never executes it.

Think you can spot these under time pressure?

Start Training

More Linux