Advertisement
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 own risk :)
- ###
- function trust () {
- url=$1
- for key in `curl $url 2>/dev/null| awk -F'<' '$0 ~ />0x/ {sub(/^.+>0x/,"",$3);print($3)}'`; do
- /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
- }
- BASEURL="https://www.archlinux.org"
- for url in `echo developers trustedusers`; do
- trust ${BASEURL}/${url}/
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement