Skip to content

Instantly share code, notes, and snippets.

@notconscious notconscious/keys.sh
Created Mar 19, 2013

Embed
What would you like to do?
Auto-update apt repository keys in 248 characters.
sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "nProcessing key: $key"; gpg --keyserver subkeys.pgp.net --recv $key && gpg --export --armor $key | sudo apt-key add -; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.