daily pastebin goal
9%
SHARE
TWEET

Arch-Linux-Mirror-Update

jv2112 Apr 17th, 2016 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. clear
  3. figlet Mirror-Update
  4. echo -e "\e[00;31m --------------------------------------------------------------------- \e[00m"
  5. echo
  6. echo -e "\e[32;47m\tMirror being updated  based on server response....\e[00m"
  7. echo
  8. curl "https://www.archlinux.org/mirrorlist/?country=US&protocol=http&ip_version=4&use_mirror_status=on" > /tmp/mirror
  9. echo
  10. echo -e "\e[107;34m Mirror Updated.\e[000m "
  11. echo
  12. echo -e "\e[00;45m\t...........System update ready to begin..........\e[00m"
  13. echo
  14. echo -e "\e[00;31m --------------------------------------------------------------------- \e[00m"
  15. echo
  16. : $(sudo sed '{1,5 b ;  s/#//g ; / Score*/d ; s/^$/## ---------------------------------------/  }' /tmp/mirror > /etc/pacman.d/mirrorlist)
  17.  
  18.  
  19. echo "Your Mirror is now updated"
  20.  
  21. echo
  22. echo ---------------------------------------------------
  23. echo
  24. sleep 3
  25.  
  26. cat /etc/pacman.d/mirrorlist
  27.  
  28. #&& yaourt -Syy && yaourt -Syu)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top