{"id":26924219,"url":"https://github.com/marlonlom/archlinux-utils-mirrors-sync","last_synced_at":"2026-05-06T11:32:23.610Z","repository":{"id":150260770,"uuid":"485091309","full_name":"marlonlom/archlinux-utils-mirrors-sync","owner":"marlonlom","description":"Bash script that retrieves Latest Mirror List Using Reflector In Arch Linux","archived":false,"fork":false,"pushed_at":"2022-06-18T15:49:27.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T11:52:08.856Z","etag":null,"topics":["archlinux","curl","mirrorlists","pacman","reflector","rsync","utility-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marlonlom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-24T17:16:56.000Z","updated_at":"2022-04-24T20:28:49.000Z","dependencies_parsed_at":"2023-05-06T10:47:01.203Z","dependency_job_id":null,"html_url":"https://github.com/marlonlom/archlinux-utils-mirrors-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marlonlom/archlinux-utils-mirrors-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Farchlinux-utils-mirrors-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Farchlinux-utils-mirrors-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Farchlinux-utils-mirrors-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Farchlinux-utils-mirrors-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlonlom","download_url":"https://codeload.github.com/marlonlom/archlinux-utils-mirrors-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlonlom%2Farchlinux-utils-mirrors-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32691743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archlinux","curl","mirrorlists","pacman","reflector","rsync","utility-scripts"],"created_at":"2025-04-02T01:53:33.389Z","updated_at":"2026-05-06T11:32:23.604Z","avatar_url":"https://github.com/marlonlom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Current mirrors syncing utility for Arch Linux\nBash script that retrieves latest mirror list using reflector in Arch Linux\n\n---\n## Table of contents\n\n- [Inspiration](#inspiration)\n- [Prerequisites](#prerequisites)\n- [Preparation](#preparation)\n- [Usage](#usage)\n- [License](#license)\n\n\n---\n\n\n## Inspiration\nThis script is based on the contents of the following blog post:\n\nRetrieve Latest Mirror List Using Reflector In Arch Linux, Written by Sk, Published: June 10, 2021. [(Link to blog post)](https://ostechnix.com/retrieve-latest-mirror-list-using-reflector-arch-linux/)\n\n\n## Prerequisites\n\n* Have an active Internet connection\n* Operative Systems: Linux (Arch linux, exactly)\n* Packages (from archlinux wiki):\n  - reflector (https://wiki.archlinux.org/title/Reflector)\n  - rsync (https://wiki.archlinux.org/title/rsync)\n  - curl (https://wiki.archlinux.org/title/curl)\n\n\n## Preparation\nFor preparing the script for usage, follow the steps:\n\nA) Download / Clone the repository using Git.\n\nB) Navigate to the downloaded repository root folder.\n\nC) Copy the .config/marlonlom folder and put that into the .config/marlonlom folder of the home directory.\n_Note_: In case dont exists the .config directory, you must create it.\n\n```\n(inside root folder of the repository once downloaded)\ncp -R .config/marlonlom ~/.config/marlonlom\n\n(using rsync -pls check if rsync is installed first before using this-)\nrsync -avh .config/marlonlom/ ~/.config/marlonlom/\n```\n\nD) navigate to _~/.config/marlonlom/archlinux/utils_ folder and set execution permissions to _sync-current-mirrors.sh_ file. \n\n```\n# Adds execution privilege the current owner user of the specified file\ncd ~/.config/marlonlom/archlinux/utils\nchmod +x sync-current-mirrors.sh\n\n# or\nchmod +x ~/.config/marlonlom/archlinux/utils/sync-current-mirrors.sh\n```\n\n### Preparing script alias for better execution\nFor easy usage of the script, its recommended to make alias and using it for running the script file inside the terminal.\n\n\n#### Editing *.bashrc* file\nOpen .bashrc file for editing - in this example, im using nano, but feel free to use another text editor-\n```\nsudo nano ~/.bashrc\n```\n\nAdd this at the bottom of .bashrc file\n```\n# Sync current mirrors\nalias sync-current-mirrors=\"clear \u0026\u0026 sudo ~/.config/marlonlom/archlinux/utils/sync-current-mirrors.sh\"\n```\n\nRead and execute updated .bashrc file\n```\nsource ~/.bashrc\n```\n\n#### Editing *.zshrc* file\nOpen .zshrc file for editing - in this example, im using nano, but feel free to use another text editor-\n```\nsudo nano ~/.zshrc\n```\n\nAdd this at the bottom of .zshrc file\n```\n# Sync current mirrors\nalias sync-current-mirrors=\"clear \u0026\u0026 sudo ~/.config/marlonlom/archlinux/utils/sync-current-mirrors.sh\"\n```\n\nRead and execute updated .zshrc file\n```\nsource ~/.zshrc\n```\n\n\n## Usage\nAfter preparing the script for its usage, in the terminal, invoke the script by typing the following:\n\n```\n$ sync-current-mirrors\n```\n\n\n# License\n```\nCopyright (C) 2022 marlonlom\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonlom%2Farchlinux-utils-mirrors-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlonlom%2Farchlinux-utils-mirrors-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlonlom%2Farchlinux-utils-mirrors-sync/lists"}