CentOS Mirror Guide in Iran
CentOS still runs on plenty of older servers. /centos is reserved for local hosting.
About CentOS
CentOS was a free RHEL rebuild for years; today Vault and frozen trees matter most, but older fleets still depend on that content.
Images and repos are large; without a nearby mirror, installs and updates from abroad drag.
CentOS mirror in Iran
Rasanegaar Mirror prepares /centos so yum/dnf can talk to mirror.rasanegaar.com from inside Iran.
The switch guide will appear here once the mirror is ready.
On Rasanegaar Mirror
https://mirror.rasanegaar.com/centos/This repository will be hosted on Rasanegaar Mirror soon. The target URL is reserved.
How to use the CentOS mirror in Iran
This section will be completed once the mirror is live.
Manual steps
- In .repo files, set baseurl to the Rasanegaar CentOS mirror:
https://mirror.rasanegaar.com/centos/ - Refresh yum/dnf metadata.
Switch with script
curl -fsSL https://mirror.rasanegaar.com/scripts/switch-centos.sh | sudo bash
Updating CentOS in Iran
If Vault or official mirrors are slow from Iran, updating via the local mirror eases the load.
On EOL releases only use paths that actually exist on the local tree.
Revert to official repository
If you need official upstream again:
curl -fsSL https://mirror.rasanegaar.com/scripts/revert-centos.sh | sudo bash