Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

What is the right format of the URL downloading package from mirrors instead of official arch mirror? #17

Open
WaytrueDeng opened this issue Sep 14, 2022 · 1 comment

Comments

@WaytrueDeng
Copy link

Hi thanks for your incredible work, I am living in China, The official mirror is too slow, I try to change it to local mirror but failed

@hanzala123
Copy link
Owner

hanzala123 commented Sep 14, 2022

First of all I am not really sure that this would work. Since this was made with only the official url in mind. If you still want to try...

the format is https://archlinux.org/packages/{repo}/{arch}/{pkg}/download. The values inside {} will be replaced on runtime. {repo} will be replaced with the repository(community, extra etc.), {arch} will be replaced with the architecture of the system (ie. x86_64) and {pkg} will be replaced with the package name. You can use these variables to build a url for your local mirror. The response of this must be a package file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants