Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ####
- ## Little script to trust developer and TU keys from arch team. Needed for pacman 4
- ## Usefull if you plan to use that feature.
- ##
- ## Aitor ATuin
- ##
- ## Use at your risk :)
- ###
- echo "Trusting developers keys"
- for key in `curl https://www.archlinux.org/developers/ 2>/dev/null| awk -F'<' '$0 ~ />0x/ {sub(/^.+>0x/,"",$3);print($3)}'`; do
- echo Importing $key
- /usr/bin/pacman-key --recv-keys $key
- /usr/bin/pacman-key --lsign-key $key
- printf 'trust\n3\nquit\n' | gpg --homedir /etc/pacman.d/gnupg --no-permission-warning --command-fd 0 --edit-key $key
- done
- echo "Trusting TU keys"
- for key in `curl https://www.archlinux.org/trustedusers/ 2>/dev/null| awk -F'<' '$0 ~ />0x/ {sub(/^.+>0x/,"",$3);print($3)}'`; do
- echo Importing $key
- /usr/bin/pacman-key --recv-keys $key
- /usr/bin/pacman-key --lsign-key $key
- printf 'trust\n3\nquit\n' | gpg --homedir /etc/pacman.d/gnupg/ --no-permission-warning --command-fd 0 --edit-key $key
- done
Advertisement
Add Comment
Please, Sign In to add comment