- p update
- # take care of mozilla signing errors in previous command
- pi pkg-mozilla-archive-keyring
- p update
- else
- :
- # this would change stable to testing, but I set that up already.
- # It\'s just a no-op if its already testing.
- # sudo sed -ri 's!^( *[^ #]+ +[^ ]+ +)[[:alpha:]]+(.*)!\1testing\2!' /etc/apt/sources.list
- p update
- fi
-fi
-
-if isarch; then
- #https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages
- sudo pacman -S --noconfirm --needed base-devel jq
- # pacaur seems to be the best, although it + cower has a few minor bugs,
- # its design goals seem good, so, going for it.
-
- aurpi() {
- for p in "$@"; do
- tempdir=$(mktemp -d)
- pushd $tempdir
- aurex "$p"
- makepkg -sri --skippgpcheck --noconfirm
- popd
- rm -rf $tempdir
- done
- }
- aurpi cower pacaur
-
- # this creates ~/.gnupg. addgnupghome is broken on arch.
- gpg -k
- # for aur, automatically dl & add gpg keys.
- # Just the keyserver-options line goes in dirmngr.conf once
- # this bug is fixed: https://bugs.gnupg.org/gnupg/issue2147
- for homedir in /home/*; do
- teeu $homedir/.gnupg/gpg.conf <<EOF
-$(grep -o '^ *keyserver .*' $homedir/.gnupg/dirmngr.conf)
-keyserver-options auto-key-retrieve
-EOF
- done
- pi pacserve
- x=$(mktemp); pacman.conf-insert_pacserve >$x
- sudo dd of=/etc/pacman.conf if=$x; rm $x
- sudo systemctl enable pacserve.service
- sudo systemctl start pacserve.service
-
- # strange error if just installing trash-cli: "pyalpm requires python",
- # so I see that it requires python2, and installing that manually fixes it.
- # I didn't see this on earlier installation, main thing which changed was
- # pacserve, so not sure if it's related.
- pi python2