Skip to content

Instantly share code, notes, and snippets.

@mohemohe
Last active September 24, 2017 17:06
Show Gist options
  • Select an option

  • Save mohemohe/4f5c33184291e38319c41d9cbd6b71e0 to your computer and use it in GitHub Desktop.

Select an option

Save mohemohe/4f5c33184291e38319c41d9cbd6b71e0 to your computer and use it in GitHub Desktop.
arch2antergos.docker.sh
#!/bin/bash
curl https://www.archlinux.org/mirrorlist/all/ | grep .jp/ | cut -d'#' -f2 >| /etc/pacman.d/mirrorlist
cp /etc/pacman.conf /etc/pacman.conf.orig
cat <<EOS >> /etc/pacman.conf
[antergos]
SigLevel = Never
Server = http://mirror.antergos.jp/$repo/$arch
EOS
pacman -Syyu antergos-keyring
rm /etc/pacman.conf
mv /etc/pacman.conf.orig /etc/pacman.conf
cat <<EOS >> /etc/pacman.conf
[antergos]
SigLevel = Optional TrustAll
Server = http://mirror.antergos.jp/$repo/$arch
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment