Skip to content

Instantly share code, notes, and snippets.

@lilydjwg
Created October 29, 2020 14:21
Show Gist options
  • Save lilydjwg/314d7c08843a62139cfffb601f0b74d7 to your computer and use it in GitHub Desktop.
Save lilydjwg/314d7c08843a62139cfffb601f0b74d7 to your computer and use it in GitHub Desktop.
pacsync: sync with latest mirrors, download from fastest ones
#!/bin/bash -e
unshare -m bash <<'EOF'
mount --make-rprivate /
for f in /etc/pacman.d/*.sync; do
filename="${f%.*}"
mount --bind "$f" "$filename"
done
pacman -Sy
EOF
@lilydjwg
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment