# Shecan package mirror (pkg.shecan.ir): all guides
> 103 mirrors. Index: https://pkg.shecan.ir/llms.txt. JSON: https://pkg.shecan.ir/api/v1/. MCP: https://mcp.pkg.shecan.ir/mcp.
## npm mirror (pkg.shecan.ir)
> Mirror of the npm registry (registry.npmjs.org) for npm, pnpm and Yarn.
- Upstream: registry.npmjs.org
- Mirror URL:
- Clients: npm, pnpm, yarn
- Service status: (key `npm`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `npm`, mirror `shecan`):
### Limitations
- Read-only: npm publish, login and npm audit are not supported; pass --no-audit to avoid audit warnings.
- An existing package-lock.json may still contain resolved URLs that point at registry.npmjs.org.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### npm: temporary (one command or the current shell; nothing saved)
Run
```sh
npm install --no-audit --registry=https://mirror-npm.pkg.shecan.ir/ is-number
```
Verify
```sh
npm view is-number version --registry=https://mirror-npm.pkg.shecan.ir/
```
#### npm: persistent (user- or system-wide configuration)
Run
```sh
npm config set registry https://mirror-npm.pkg.shecan.ir/
```
Undo / restore the default
```sh
npm config delete registry
```
#### npm, pnpm: project (files inside the project)
Configuration file: `.npmrc`
```ini
registry=https://mirror-npm.pkg.shecan.ir/
```
#### pnpm: persistent (user- or system-wide configuration)
Run
```sh
pnpm config set registry https://mirror-npm.pkg.shecan.ir/
```
#### pnpm: temporary (one command or the current shell; nothing saved)
Run
```sh
pnpm add is-number --registry=https://mirror-npm.pkg.shecan.ir/
```
#### yarn: persistent (user- or system-wide configuration)
Run, Yarn 1 (Classic)
```sh
yarn config set registry https://mirror-npm.pkg.shecan.ir/
```
#### yarn: project (files inside the project)
Run, Yarn 2+ (Berry), run inside the project directory
```sh
yarn config set npmRegistryServer https://mirror-npm.pkg.shecan.ir/
```
## PyPI mirror (pkg.shecan.ir)
> Mirror of the PyPI Simple index (pypi.org) for pip, uv and Poetry.
- Upstream: pypi.org
- Mirror URL:
- Clients: pip, uv, poetry
- Service status: (key `pypi`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `pypi`, mirror `shecan`):
### Limitations
- Only the Simple API (PEP 503 and PEP 691) is served; search, the JSON API and uploads (twine) are not available.
- Hash-checking installs (--require-hashes) and PEP 658 metadata are supported.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pip: temporary (one command or the current shell; nothing saved)
Run
```sh
pip install --index-url https://mirror-pypi.pkg.shecan.ir/simple/ humanize
```
Run, Environment variable for the shell session (CI, Dockerfile) (linux, macos)
```sh
export PIP_INDEX_URL=https://mirror-pypi.pkg.shecan.ir/simple/
```
Run, Environment variable for the shell session (CI, Dockerfile) (windows)
```powershell
$env:PIP_INDEX_URL = "https://mirror-pypi.pkg.shecan.ir/simple/"
```
#### pip: persistent (user- or system-wide configuration)
Run
```sh
pip config set global.index-url https://mirror-pypi.pkg.shecan.ir/simple/
```
Undo / restore the default
```sh
pip config unset global.index-url
```
Configuration file, Configuration file (linux, windows): `%APPDATA%\pip\pip.ini` or `~/.config/pip/pip.conf`
```ini
[global]
index-url = https://mirror-pypi.pkg.shecan.ir/simple/
```
#### uv: temporary (one command or the current shell; nothing saved)
Run, Environment variable for the shell session (linux, macos)
```sh
export UV_DEFAULT_INDEX=https://mirror-pypi.pkg.shecan.ir/simple/
```
Run, Environment variable for the shell session (windows)
```powershell
$env:UV_DEFAULT_INDEX = "https://mirror-pypi.pkg.shecan.ir/simple/"
```
Run
```sh
uv pip install --system --index-url https://mirror-pypi.pkg.shecan.ir/simple/ humanize
```
#### uv: project (files inside the project)
Configuration file: `pyproject.toml`
```toml
[[tool.uv.index]]
url = "https://mirror-pypi.pkg.shecan.ir/simple/"
default = true
```
#### poetry: project (files inside the project)
Run
```sh
poetry source add --priority=primary shecan https://mirror-pypi.pkg.shecan.ir/simple/
```
Undo / restore the default
```sh
poetry source remove shecan
```
## Docker Hub mirror (pkg.shecan.ir)
> Pull-through mirror of Docker Hub (docker.io).
- Upstream: docker.io
- Mirror URL:
- Clients: docker, containerd, podman, skopeo
- Service status: (key `docker`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `docker`, mirror `shecan`):
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Official images work with or without the library/ prefix.
- Docker Hub rate-limits anonymous pulls; images already cached on the mirror are not affected.
- Docker's registry-mirrors setting applies to Docker Hub only; use the GHCR, Quay, Kubernetes and Microsoft mirrors for those registries.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-docker.pkg.shecan.ir/alpine:3.20
```
Example
```sh
docker pull mirror-docker.pkg.shecan.ir/curlimages/curl:8.10.1
```
#### docker: project (files inside the project)
Configuration file: `Dockerfile`
```dockerfile
FROM mirror-docker.pkg.shecan.ir/python:3.12-slim
```
Example: `Dockerfile` (checked by hand)
```dockerfile
FROM mirror-docker.pkg.shecan.ir/alpine:3.20@sha256:
```
#### docker: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo cp /etc/docker/daemon.json /etc/docker/daemon.json.bak
```
Configuration file (linux): `/etc/docker/daemon.json`
```json
{
"registry-mirrors": ["https://mirror-docker.pkg.shecan.ir"]
}
```
Run (linux) (checked by hand)
```sh
sudo systemctl restart docker
```
Undo / restore the default (linux)
```sh
sudo mv /etc/docker/daemon.json.bak /etc/docker/daemon.json
sudo systemctl restart docker
```
Configuration file, Docker Desktop: Settings > Docker Engine, merge this key into the existing JSON, then Apply & restart (windows, macos) (checked by hand)
```json
"registry-mirrors": ["https://mirror-docker.pkg.shecan.ir"]
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/docker.io/hosts.toml`
```toml
server = "https://registry-1.docker.io"
[host."https://mirror-docker.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/docker.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "docker.io"
location = "registry-1.docker.io"
[[registry.mirror]]
location = "mirror-docker.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "docker.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## GitHub mirror (pkg.shecan.ir)
> Pull-through mirror of ghcr.io.
- Upstream: ghcr.io
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `ghcr`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-ghcr.pkg.shecan.ir instead of ghcr.io in image names; the rest of the name is unchanged.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-ghcr.pkg.shecan.ir/containerd/busybox:1.36
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/ghcr.io/hosts.toml`
```toml
server = "https://ghcr.io"
[host."https://mirror-ghcr.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/ghcr.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "ghcr.io"
location = "ghcr.io"
[[registry.mirror]]
location = "mirror-ghcr.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "ghcr.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Quay mirror (pkg.shecan.ir)
> Pull-through mirror of quay.io.
- Upstream: quay.io
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `quay`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `docker-quay-io`, mirror `shecan`):
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-quay.pkg.shecan.ir instead of quay.io in image names; the rest of the name is unchanged.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-quay.pkg.shecan.ir/prometheus/busybox:latest
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/quay.io/hosts.toml`
```toml
server = "https://quay.io"
[host."https://mirror-quay.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/quay.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "quay.io"
location = "quay.io"
[[registry.mirror]]
location = "mirror-quay.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "quay.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Kubernetes mirror (pkg.shecan.ir)
> Pull-through mirror of registry.k8s.io.
- Upstream: registry.k8s.io
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `k8s`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-k8s.pkg.shecan.ir instead of registry.k8s.io in image names; the rest of the name is unchanged.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
- kubectl, kubeadm, kubelet (pkgs.k8s.io, dl.k8s.io) and Helm come from the separate kubernetes mirror (mirror-kubernetes.pkg.shecan.ir).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-k8s.pkg.shecan.ir/pause:3.10
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/registry.k8s.io/hosts.toml`
```toml
server = "https://registry.k8s.io"
[host."https://mirror-k8s.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/registry.k8s.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "registry.k8s.io"
location = "registry.k8s.io"
[[registry.mirror]]
location = "mirror-k8s.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "registry.k8s.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Microsoft mirror (pkg.shecan.ir)
> Pull-through mirror of mcr.microsoft.com.
- Upstream: mcr.microsoft.com
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `mcr`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `docker-mcr-microsoft-com`, mirror `shecan`):
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-mcr.pkg.shecan.ir instead of mcr.microsoft.com in image names; the rest of the name is unchanged.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-mcr.pkg.shecan.ir/dotnet/runtime-deps:8.0-alpine
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/mcr.microsoft.com/hosts.toml`
```toml
server = "https://mcr.microsoft.com"
[host."https://mirror-mcr.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/mcr.microsoft.com/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "mcr.microsoft.com"
location = "mcr.microsoft.com"
[[registry.mirror]]
location = "mirror-mcr.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "mcr.microsoft.com"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Google Container Registry mirror (pkg.shecan.ir)
> Pull-through mirror of gcr.io (Google Container Registry: distroless, Kaniko and other public Google images).
- Upstream: gcr.io
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `gcr`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `docker-gcr-io`, mirror `shecan`):
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-gcr.pkg.shecan.ir instead of gcr.io in image names; the rest of the name is unchanged.
- Public images only. The regional hosts us.gcr.io, eu.gcr.io and asia.gcr.io are not mirrored.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-gcr.pkg.shecan.ir/distroless/static:nonroot
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/gcr.io/hosts.toml`
```toml
server = "https://gcr.io"
[host."https://mirror-gcr.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/gcr.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "gcr.io"
location = "gcr.io"
[[registry.mirror]]
location = "mirror-gcr.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "gcr.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Google Artifact Registry mirror (pkg.shecan.ir)
> Pull-through mirror of us-docker.pkg.dev (Google Artifact Registry, US multi-region: e.g. Google samples, Cloud Run, Vertex AI and Deep Learning Containers).
- Upstream: us-docker.pkg.dev
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `pkgdev`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-pkgdev.pkg.shecan.ir instead of us-docker.pkg.dev in image names; the rest of the name is unchanged.
- Public images only, and only the us-docker.pkg.dev multi-region: europe-docker.pkg.dev, asia-docker.pkg.dev and regional -docker.pkg.dev hosts are not mirrored (Google publishes most public images to us-docker.pkg.dev too).
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-pkgdev.pkg.shecan.ir/google-samples/containers/gke/hello-app:1.0
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/us-docker.pkg.dev/hosts.toml`
```toml
server = "https://us-docker.pkg.dev"
[host."https://mirror-pkgdev.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/us-docker.pkg.dev/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "us-docker.pkg.dev"
location = "us-docker.pkg.dev"
[[registry.mirror]]
location = "mirror-pkgdev.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "us-docker.pkg.dev"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## GitLab Container Registry mirror (pkg.shecan.ir)
> Pull-through mirror of registry.gitlab.com (container images of public GitLab.com projects).
- Upstream: registry.gitlab.com
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `gitlab-registry`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-gitlab-registry.pkg.shecan.ir instead of registry.gitlab.com in image names; the rest of the name is unchanged.
- Public projects only; private projects and self-managed GitLab registries are not available.
- This is the container registry; the gitlab mirror (mirror-gitlab.pkg.shecan.ir) serves the apt/dnf packages of packages.gitlab.com.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-gitlab-registry.pkg.shecan.ir/gitlab-org/release-cli:v0.20.0
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/registry.gitlab.com/hosts.toml`
```toml
server = "https://registry.gitlab.com"
[host."https://mirror-gitlab-registry.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/registry.gitlab.com/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "registry.gitlab.com"
location = "registry.gitlab.com"
[[registry.mirror]]
location = "mirror-gitlab-registry.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "registry.gitlab.com"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Elastic mirror (pkg.shecan.ir)
> Pull-through mirror of docker.elastic.co (Elasticsearch, Kibana, Logstash, Beats, Elastic Agent, ECK).
- Upstream: docker.elastic.co
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `docker-elastic`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `docker-docker-elastic-co`, mirror `shecan`):
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-docker-elastic.pkg.shecan.ir instead of docker.elastic.co in image names; the rest of the name is unchanged.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-docker-elastic.pkg.shecan.ir/elasticsearch/elasticsearch:8.15.3
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/docker.elastic.co/hosts.toml`
```toml
server = "https://docker.elastic.co"
[host."https://mirror-docker-elastic.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/docker.elastic.co/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "docker.elastic.co"
location = "docker.elastic.co"
[[registry.mirror]]
location = "mirror-docker-elastic.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "docker.elastic.co"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Amazon ECR Public mirror (pkg.shecan.ir)
> Pull-through mirror of public.ecr.aws (Amazon ECR Public Gallery, including the docker/library copies of Docker official images).
- Upstream: public.ecr.aws
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `ecr`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-ecr.pkg.shecan.ir instead of public.ecr.aws in image names; the rest of the name is unchanged.
- Public Gallery only; private Amazon ECR registries (.dkr.ecr..amazonaws.com) are not available.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-ecr.pkg.shecan.ir/docker/library/alpine:3.20
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/public.ecr.aws/hosts.toml`
```toml
server = "https://public.ecr.aws"
[host."https://mirror-ecr.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/public.ecr.aws/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "public.ecr.aws"
location = "public.ecr.aws"
[[registry.mirror]]
location = "mirror-ecr.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "public.ecr.aws"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## NVIDIA NGC mirror (pkg.shecan.ir)
> Pull-through mirror of nvcr.io (NVIDIA NGC catalog: CUDA, cuDNN, PyTorch, TensorFlow, TensorRT, Triton, NeMo).
- Upstream: nvcr.io
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `nvcr`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-nvcr.pkg.shecan.ir instead of nvcr.io in image names; the rest of the name is unchanged.
- Public images only; images that need an NGC API key (private or entitled ones) are not available.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-nvcr.pkg.shecan.ir/nvidia/cuda:12.6.2-base-ubuntu24.04
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/nvcr.io/hosts.toml`
```toml
server = "https://nvcr.io"
[host."https://mirror-nvcr.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/nvcr.io/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "nvcr.io"
location = "nvcr.io"
[[registry.mirror]]
location = "mirror-nvcr.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "nvcr.io"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Red Hat UBI mirror (pkg.shecan.ir)
> Pull-through mirror of registry.access.redhat.com (Red Hat Universal Base Images ubi8/ubi9/ubi-minimal/ubi-micro, OpenJDK, Node.js, Python and other freely redistributable images).
- Upstream: registry.access.redhat.com
- Mirror URL:
- Clients: docker, podman, containerd, skopeo
- Service status: (key `redhat`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Pull only: no docker login is needed and push is disabled.
- Write mirror-redhat.pkg.shecan.ir instead of registry.access.redhat.com in image names; the rest of the name is unchanged.
- Only the anonymous registry.access.redhat.com; registry.redhat.io (login required) is not available.
- containerd reads hosts.toml only when its registry config_path is /etc/containerd/certs.d.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### docker, podman: temporary (one command or the current shell; nothing saved)
Run
```sh
docker pull mirror-redhat.pkg.shecan.ir/ubi9/ubi-minimal:latest
```
#### containerd: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containerd/certs.d/registry.access.redhat.com/hosts.toml`
```toml
server = "https://registry.access.redhat.com"
[host."https://mirror-redhat.pkg.shecan.ir"]
capabilities = ["pull", "resolve"]
```
Undo / restore the default (linux)
```sh
sudo rm /etc/containerd/certs.d/registry.access.redhat.com/hosts.toml
```
#### podman, skopeo: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/containers/registries.conf`
```toml
[[registry]]
prefix = "registry.access.redhat.com"
location = "registry.access.redhat.com"
[[registry.mirror]]
location = "mirror-redhat.pkg.shecan.ir"
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[\[registry\]\]$/{N;/\nprefix = "registry.access.redhat.com"$/{N;N;N;N;d}}' /etc/containers/registries.conf
```
## Maven mirror (pkg.shecan.ir)
> Mirror of Maven Central, Google Maven, the Gradle Plugin Portal and JitPack (jitpack.io) for Maven and Gradle.
- Upstream: Maven Central, Google Maven, Gradle Plugin Portal, JitPack
- Mirror URLs: , , ,
- Clients: maven, gradle
- Service status: (key `maven`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `maven`, mirror `shecan`):
### Limitations
- The Gradle Wrapper distribution (services.gradle.org) is served by the separate gradle mirror (mirror-gradle.pkg.shecan.ir, distributionUrl in gradle-wrapper.properties).
- SNAPSHOT repositories and publishing (mvn deploy, gradle publish) are not provided.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### maven: persistent (user- or system-wide configuration)
Configuration file: `%USERPROFILE%\.m2\settings.xml` or `~/.m2/settings.xml`
```xml
shecan
central
https://mirror-maven.pkg.shecan.ir/central/
```
Undo / restore the default
```sh
mv ~/.m2/settings.xml ~/.m2/settings.xml.shecan-off
```
#### gradle: project (files inside the project)
Configuration file, Kotlin DSL: `settings.gradle.kts`
```kotlin
pluginManagement {
repositories {
maven("https://mirror-maven.pkg.shecan.ir/gradle-plugins/")
}
}
dependencyResolutionManagement {
repositories {
maven("https://mirror-maven.pkg.shecan.ir/google/")
maven("https://mirror-maven.pkg.shecan.ir/central/")
maven("https://mirror-maven.pkg.shecan.ir/jitpack/")
}
}
```
Configuration file, Groovy DSL: `settings.gradle`
```groovy
pluginManagement {
repositories {
maven { url 'https://mirror-maven.pkg.shecan.ir/gradle-plugins/' }
}
}
dependencyResolutionManagement {
repositories {
maven { url 'https://mirror-maven.pkg.shecan.ir/google/' }
maven { url 'https://mirror-maven.pkg.shecan.ir/central/' }
maven { url 'https://mirror-maven.pkg.shecan.ir/jitpack/' }
}
}
```
## Gradle mirror (pkg.shecan.ir)
> Mirror of services.gradle.org/distributions (Gradle release distributions -bin.zip and -all.zip with their .sha256 files) for the Gradle Wrapper (distributionUrl in gradle/wrapper/gradle-wrapper.properties) and direct downloads. Libraries and plugins come from the Maven mirror (mirror-maven.pkg.shecan.ir).
- Upstream: services.gradle.org/distributions
- Mirror URL:
- Clients: gradle, curl
- Service status: (key `gradle`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `gradle`, mirror `shecan`):
### Limitations
- The setting is per project (gradle-wrapper.properties); Gradle has no global override for the Wrapper distribution URL.
- Only release distributions (-bin.zip, -all.zip) and their checksums; snapshots, nightlies and the services.gradle.org/versions API are not served.
- Dependencies and plugins still need the Maven mirror settings (settings.gradle.kts).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### gradle: project (files inside the project)
Run (linux, macos)
```sh
sed -i.bak 's#services\.gradle\.org#mirror-gradle.pkg.shecan.ir#' gradle/wrapper/gradle-wrapper.properties
rm gradle/wrapper/gradle-wrapper.properties.bak
```
Undo / restore the default (linux, macos)
```sh
sed -i.bak 's#mirror-gradle\.pkg\.shecan\.ir#services.gradle.org#' gradle/wrapper/gradle-wrapper.properties
rm gradle/wrapper/gradle-wrapper.properties.bak
```
Run (windows)
```powershell
(Get-Content gradle\wrapper\gradle-wrapper.properties) -replace 'services\.gradle\.org', 'mirror-gradle.pkg.shecan.ir' | Set-Content gradle\wrapper\gradle-wrapper.properties
```
Run (linux, macos)
```sh
./gradlew wrapper \
--gradle-distribution-url https://mirror-gradle.pkg.shecan.ir/distributions/gradle-9.8.2-bin.zip \
--gradle-distribution-sha256-sum "$(curl -fsSL https://mirror-gradle.pkg.shecan.ir/distributions/gradle-9.8.2-bin.zip.sha256)"
```
#### curl: temporary (one command or the current shell; nothing saved)
Run (linux)
```sh
curl -fLO https://mirror-gradle.pkg.shecan.ir/distributions/gradle-9.8.2-bin.zip
echo "$(curl -fsSL https://mirror-gradle.pkg.shecan.ir/distributions/gradle-9.8.2-bin.zip.sha256) gradle-9.8.2-bin.zip" | sha256sum -c
```
## Debian mirror (pkg.shecan.ir)
> Mirror of deb.debian.org and security.debian.org for apt (Debian 12 and 13), of archive.debian.org for Debian 11 and older (/debian-archive/, /debian-archive-security/) and of the unofficial ports (/debian-ports/: riscv64, loong64, ...).
- Upstream: deb.debian.org
- Mirror URLs: , , ,
- Clients: apt
- Service status: (key `debian`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `debian`, mirror `shecan`):
### Limitations
- apt still verifies the official Debian signatures.
- Plain HTTP is enabled so minimal images without ca-certificates can bootstrap; switch to https after installing ca-certificates.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Back up first, Debian 12 and 13 (linux)
```sh
sudo cp /etc/apt/sources.list.d/debian.sources /etc/apt/sources.list.d/debian.sources.bak
```
Run, Debian 12 and 13 (linux)
```sh
sudo sed -i -E 's#http://(deb|security)\.debian\.org/#http://mirror-debian.pkg.shecan.ir/#' /etc/apt/sources.list.d/debian.sources
```
Run, Debian 12 and 13 (linux)
```sh
sudo apt update
```
Undo / restore the default, Debian 12 and 13 (linux)
```sh
sudo mv /etc/apt/sources.list.d/debian.sources.bak /etc/apt/sources.list.d/debian.sources
```
Configuration file, Debian 12 full file (alternative; write trixie instead of bookworm for Debian 13) (linux): `/etc/apt/sources.list.d/debian.sources`
```
Types: deb
URIs: https://mirror-debian.pkg.shecan.ir/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: https://mirror-debian.pkg.shecan.ir/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
```
Run, Debian 11 (archive.debian.org) (linux)
```sh
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "deb http://mirror-debian.pkg.shecan.ir/debian-archive bullseye main contrib non-free
deb http://mirror-debian.pkg.shecan.ir/debian-archive bullseye-updates main contrib non-free
deb http://mirror-debian.pkg.shecan.ir/debian-archive-security bullseye-security main contrib non-free" | sudo tee /etc/apt/sources.list
sudo apt update
```
Configuration file, Debian Ports (linux): `/etc/apt/sources.list` (checked by hand)
```
deb http://mirror-debian.pkg.shecan.ir/debian-ports sid main
deb http://mirror-debian.pkg.shecan.ir/debian-ports unreleased main
```
#### apt: project (files inside the project)
Configuration file, Dockerfile based on Debian 12: `Dockerfile`
```dockerfile
FROM mirror-docker.pkg.shecan.ir/debian:12
RUN sed -i -E 's#http://(deb|security)\.debian\.org/#http://mirror-debian.pkg.shecan.ir/#' /etc/apt/sources.list.d/debian.sources \
&& apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
```
## Ubuntu mirror (pkg.shecan.ir)
> Mirror of archive.ubuntu.com (amd64, i386) and ports.ubuntu.com (arm64 and other architectures) for apt, and of old-releases.ubuntu.com for end-of-life releases (/ubuntu-old-releases/).
- Upstream: archive.ubuntu.com, ports.ubuntu.com
- Mirror URLs: , ,
- Clients: apt
- Service status: (key `ubuntu`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `ubuntu`, mirror `shecan`):
### Limitations
- Security updates (-security) are served from the same /ubuntu/ path.
- Plain HTTP is enabled for bootstrapping; apt verifies the official Ubuntu signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Back up first, Ubuntu 24.04 and newer (linux)
```sh
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak
```
Run, Ubuntu 24.04 and newer (linux)
```sh
sudo sed -i -E 's#https?://([a-z]{2}\.)?(archive|security)\.ubuntu\.com/ubuntu#http://mirror-ubuntu.pkg.shecan.ir/ubuntu#; s#https?://ports\.ubuntu\.com/ubuntu-ports#http://mirror-ubuntu.pkg.shecan.ir/ubuntu-ports#' /etc/apt/sources.list.d/ubuntu.sources
```
Run, Ubuntu 24.04 and newer (linux)
```sh
sudo apt update
```
Run, Ubuntu 22.04 (linux)
```sh
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i -E 's#https?://([a-z]{2}\.)?(archive|security)\.ubuntu\.com/ubuntu#http://mirror-ubuntu.pkg.shecan.ir/ubuntu#; s#https?://ports\.ubuntu\.com/ubuntu-ports#http://mirror-ubuntu.pkg.shecan.ir/ubuntu-ports#' /etc/apt/sources.list
sudo apt update
```
Verify, Ubuntu Ports (arm64, ppc64el, s390x, riscv64) (linux)
```sh
curl -fsSI https://mirror-ubuntu.pkg.shecan.ir/ubuntu-ports/dists/noble/InRelease
```
Run, End-of-life Ubuntu releases (old-releases.ubuntu.com) (linux)
```sh
for f in /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources; do
if [ -f "$f" ]; then
sudo cp "$f" "$f.bak"
sudo sed -i -E 's#https?://([a-z]{2}\.)?(archive|security|old-releases)\.ubuntu\.com/ubuntu/?#http://mirror-ubuntu.pkg.shecan.ir/ubuntu-old-releases/#' "$f"
fi
done
sudo apt update
```
Undo / restore the default, Ubuntu 24.04 and newer (linux)
```sh
sudo mv /etc/apt/sources.list.d/ubuntu.sources.bak /etc/apt/sources.list.d/ubuntu.sources
```
## Fedora mirror (pkg.shecan.ir)
> Mirror of dl.fedoraproject.org/pub/fedora/linux for dnf.
- Upstream: dl.fedoraproject.org
- Mirror URL:
- Clients: dnf
- Service status: (key `fedora`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `fedora`, mirror `shecan`):
### Limitations
- dnf verifies packages with the official Fedora keys. Mirror paths match dl.fedoraproject.org/pub/fedora/linux (for example releases/43 and updates/43).
- The fedora-cisco-openh264 repository is not mirrored and is still fetched from Cisco.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo cp /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.bak && sudo cp /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.bak
```
Run (linux)
```sh
sudo sed -i 's/^metalink=/#metalink=/; s|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirror-fedora.pkg.shecan.ir|' /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-updates.repo
```
Run (linux)
```sh
sudo dnf makecache
sudo dnf install -y jq
```
Undo / restore the default (linux)
```sh
sudo mv /etc/yum.repos.d/fedora.repo.bak /etc/yum.repos.d/fedora.repo && sudo mv /etc/yum.repos.d/fedora-updates.repo.bak /etc/yum.repos.d/fedora-updates.repo
```
## AlmaLinux mirror (pkg.shecan.ir)
> Mirror of repo.almalinux.org for dnf and yum on AlmaLinux 9 and 10.
- Upstream: repo.almalinux.org
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `almalinux`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `almalinux`, mirror `shecan`):
### Limitations
- On AlmaLinux 8 and newer, yum is dnf; both commands work.
- On AlmaLinux 10 only the repository paths (BaseOS, AppStream) were verified on the mirror.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/almalinux*.repo /root/yum.repos.d.bak/
```
Run (linux)
```sh
sudo sed -i 's/^mirrorlist=/#mirrorlist=/; s|^# baseurl=https://repo.almalinux.org/almalinux|baseurl=https://mirror-almalinux.pkg.shecan.ir|' /etc/yum.repos.d/almalinux*.repo
```
Run (linux)
```sh
sudo dnf makecache
sudo yum install -y jq
```
Undo / restore the default (linux)
```sh
sudo cp /root/yum.repos.d.bak/almalinux*.repo /etc/yum.repos.d/
```
## CentOS Stream mirror (pkg.shecan.ir)
> Mirror of mirror.stream.centos.org (CentOS Stream 9 and 10: BaseOS, AppStream, CRB, HighAvailability, NFV, RT, ResilientStorage, and extras-common under SIGs/) for dnf. The official host and mirrors.centos.org refuse Iranian addresses (403).
- Upstream: mirror.stream.centos.org
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `centos-stream`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `centos`, mirror `shecan`):
### Limitations
- dnf verifies packages with the official CentOS key. Mirror paths match mirror.stream.centos.org (for example 9-stream/BaseOS/x86_64/os/ and SIGs/9-stream/extras/x86_64/extras-common/).
- Only the binary repositories are switched to the mirror; the disabled debuginfo and source repositories keep their metalink.
- CentOS Stream 10 was verified on arm64 (aarch64); its x86_64 build needs an x86-64-v3 processor.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/centos*.repo /root/yum.repos.d.bak/
```
Run (linux)
```sh
sudo sed -i \
-e 's|^metalink=.*repo=centos-baseos-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/BaseOS/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-appstream-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/AppStream/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-crb-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/CRB/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-highavailability-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/HighAvailability/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-nfv-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/NFV/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-rt-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/RT/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-resilientstorage-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/$stream/ResilientStorage/$basearch/os/|' \
-e 's|^metalink=.*repo=centos-extras-sig-extras-common-\$stream&arch=\$basearch&.*|baseurl=https://mirror-centos.pkg.shecan.ir/SIGs/$stream/extras/$basearch/extras-common/|' \
/etc/yum.repos.d/centos.repo /etc/yum.repos.d/centos-addons.repo
```
Run (linux)
```sh
sudo dnf makecache
sudo dnf install -y jq
```
Undo / restore the default (linux)
```sh
sudo cp /root/yum.repos.d.bak/centos*.repo /etc/yum.repos.d/
```
## EPEL mirror (pkg.shecan.ir)
> Mirror of EPEL (dl.fedoraproject.org/pub/epel) for Enterprise Linux 9 and 10.
- Upstream: dl.fedoraproject.org/pub/epel
- Mirror URL:
- Clients: dnf
- Service status: (key `epel`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `epel`, mirror `shecan`):
### Limitations
- Use the provided repo file instead of the epel-release package: its repo file uses a metalink and bypasses the mirror.
- $releasever resolves to 9 or 10 automatically; EPEL 10 paths were verified on the mirror.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo tee /etc/yum.repos.d/epel.repo <<'REPO'
[epel]
name=EPEL $releasever
baseurl=https://mirror-epel.pkg.shecan.ir/$releasever/Everything/$basearch/
gpgcheck=1
gpgkey=https://mirror-epel.pkg.shecan.ir/RPM-GPG-KEY-EPEL-$releasever
REPO
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo rm -f /etc/yum.repos.d/epel.repo
sudo dnf clean all
```
Verify (linux)
```sh
sudo dnf install -y htop
```
## Rocky Linux mirror (pkg.shecan.ir)
> Mirror of dl.rockylinux.org/pub/rocky for dnf and yum on Rocky Linux 8, 9 and 10.
- Upstream: dl.rockylinux.org
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `rocky`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `rocky`, mirror `shecan`):
### Limitations
- dnf verifies packages with the official Rocky Linux keys. Mirror paths match dl.rockylinux.org/pub/rocky (for example 9/BaseOS/x86_64/os).
- Only current releases are served; older minor releases that Rocky Linux moved to its vault are not.
- For EPEL on Rocky Linux use the EPEL mirror (mirror-epel.pkg.shecan.ir).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/[Rr]ocky*.repo /root/yum.repos.d.bak/
```
Run (linux)
```sh
sudo sed -i 's|^mirrorlist=|#mirrorlist=|; s|^#baseurl=http://dl.rockylinux.org/\$contentdir|baseurl=https://mirror-rocky.pkg.shecan.ir|' /etc/yum.repos.d/[Rr]ocky*.repo
```
Run (linux)
```sh
sudo dnf makecache
sudo dnf install -y jq
```
Undo / restore the default (linux)
```sh
sudo cp /root/yum.repos.d.bak/*.repo /etc/yum.repos.d/
```
## openSUSE mirror (pkg.shecan.ir)
> Mirror of download.opensuse.org for zypper: openSUSE Leap 15.6 and 16.0, Tumbleweed and Slowroll (also ports/ for aarch64 and other architectures), with their oss, non-oss and update repositories.
- Upstream: download.opensuse.org
- Mirror URL:
- Clients: zypper
- Service status: (key `opensuse`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `opensuse`, mirror `shecan`):
### Limitations
- zypper verifies the repository metadata signature and the package signatures with the official openSUSE keys; mirror paths match download.opensuse.org.
- Leap 16.0 and newer Tumbleweed installs generate their repositories from the openSUSE-repos service (cdn.opensuse.org); the guide edits that service too. An update of the openSUSE-repos package restores cdn.opensuse.org, so run the command again after it.
- The Open H.264 codec repository (codecs.opensuse.org) is not mirrored and is still fetched from Cisco; disable it where it cannot be reached.
- Build Service repositories (download.opensuse.org/repositories/) are not mirrored.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### zypper: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/zypp.bak && sudo cp -a /etc/zypp/repos.d /root/zypp.bak/
if [ -d /usr/share/zypp/local/service/openSUSE ]; then sudo cp -a /usr/share/zypp/local/service/openSUSE/repo /root/zypp.bak/service-repo; fi
```
Run (linux)
```sh
sudo sed -i -E 's#https?://(download|cdn)\.opensuse\.org/#https://mirror-opensuse.pkg.shecan.ir/#' /etc/zypp/repos.d/*.repo
if [ -d /usr/share/zypp/local/service/openSUSE ]; then sudo sed -i -E 's#disturl="https?://(download|cdn)\.opensuse\.org"#disturl="https://mirror-opensuse.pkg.shecan.ir"#' /usr/share/zypp/local/service/openSUSE/repo/opensuse-*-repoindex.xml; fi
```
Run (linux)
```sh
sudo zypper modifyrepo --disable repo-openh264 || sudo zypper modifyrepo --disable openSUSE:repo-openh264
```
Run (linux)
```sh
sudo zypper refresh
sudo zypper install -y jq
```
Undo / restore the default (linux)
```sh
sudo rm -f /etc/zypp/repos.d/*.repo && sudo cp -a /root/zypp.bak/repos.d/. /etc/zypp/repos.d/
if [ -d /root/zypp.bak/service-repo ]; then sudo cp -a /root/zypp.bak/service-repo/. /usr/share/zypp/local/service/openSUSE/repo/; fi
```
## CentOS Vault mirror (pkg.shecan.ir)
> Mirror of vault.centos.org for end-of-life CentOS: 7.9.2009 (CentOS 7), 8.5.2111 (CentOS 8), 8-stream (CentOS Stream 8) and older releases, with the signing keys at the root. EPEL 7 comes from mirror-fedora-archive.
- Upstream: vault.centos.org
- Mirror URL:
- Clients: yum, dnf
- Service status: (key `centos-vault`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- These releases get no more updates; the vault is the last state of each release. yum and dnf still verify the CentOS signatures.
- mirrorlist.centos.org and mirror.centos.org are gone: replace mirrorlist with baseurl as shown.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### yum: persistent (user- or system-wide configuration)
Run, CentOS 7 (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/CentOS-*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://(mirror|vault)\.centos\.org/(centos/)?(\$releasever|7[0-9.]*)/,baseurl=https://mirror-centos-vault.pkg.shecan.ir/7.9.2009/,' /etc/yum.repos.d/CentOS-*.repo
sudo yum clean all && sudo yum makecache
```
Undo / restore the default, CentOS 7 (linux)
```sh
sudo cp /root/yum.repos.d.bak/CentOS-*.repo /etc/yum.repos.d/
```
Run, CentOS 7 with EPEL 7 (linux)
```sh
sudo yum install -y https://mirror-fedora-archive.pkg.shecan.ir/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download\.(fedoraproject\.org|example)/pub/epel/7/,baseurl=https://mirror-fedora-archive.pkg.shecan.ir/epel/7/,' /etc/yum.repos.d/epel*.repo
sudo yum install -y jq
```
Undo / restore the default, CentOS 7 with EPEL 7 (linux)
```sh
sudo yum remove -y epel-release
```
#### dnf, yum: persistent (user- or system-wide configuration)
Run, CentOS 8 (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/CentOS-*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://(mirror|vault)\.centos\.org/(\$contentdir|centos)/(\$releasever|8[0-9.]*)/,baseurl=https://mirror-centos-vault.pkg.shecan.ir/8.5.2111/,' /etc/yum.repos.d/CentOS-*.repo
sudo dnf clean all && sudo dnf makecache
```
Undo / restore the default, CentOS 8 (linux)
```sh
sudo cp /root/yum.repos.d.bak/CentOS-*.repo /etc/yum.repos.d/
```
Run, CentOS Stream 8 (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/CentOS-Stream-*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://(mirror|vault)\.centos\.org/(\$contentdir|centos)/(\$stream|\$releasever|8-stream)/,baseurl=https://mirror-centos-vault.pkg.shecan.ir/8-stream/,' /etc/yum.repos.d/CentOS-Stream-*.repo
sudo dnf clean all && sudo dnf makecache
```
Undo / restore the default, CentOS Stream 8 (linux)
```sh
sudo cp /root/yum.repos.d.bak/CentOS-Stream-*.repo /etc/yum.repos.d/
```
## Fedora Archive mirror (pkg.shecan.ir)
> Mirror of archives.fedoraproject.org/pub/archive: end-of-life Fedora releases (/fedora/linux/releases//, /fedora/linux/updates//) and EPEL 7 (/epel/7/).
- Upstream: archives.fedoraproject.org
- Mirror URL:
- Clients: dnf
- Service status: (key `fedora-archive`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Archived releases get no more updates; dnf still verifies the Fedora signatures.
- Supported Fedora releases are on mirror-fedora, EPEL 8 to 10 on mirror-epel.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run, End-of-life Fedora (linux)
```sh
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download\.(example|fedoraproject\.org)/pub/fedora/linux/,baseurl=https://mirror-fedora-archive.pkg.shecan.ir/fedora/linux/,' /etc/yum.repos.d/fedora*.repo
sudo sed -i 's/^enabled=1/enabled=0/' /etc/yum.repos.d/fedora-cisco-openh264.repo
sudo dnf makecache
```
Undo / restore the default, End-of-life Fedora (linux)
```sh
sudo sed -i -E 's/^#metalink=/metalink=/; s,^baseurl=https://mirror-fedora-archive\.pkg\.shecan\.ir/fedora/linux/,#baseurl=http://download.example/pub/fedora/linux/,' /etc/yum.repos.d/fedora*.repo
sudo sed -i 's/^enabled=0/enabled=1/' /etc/yum.repos.d/fedora-cisco-openh264.repo
```
## Fedora Secondary mirror (pkg.shecan.ir)
> Mirror of dl.fedoraproject.org/pub/fedora-secondary (Fedora for ppc64le and s390x): /releases//Everything//os/ and /updates//Everything//.
- Upstream: dl.fedoraproject.org/pub/fedora-secondary
- Mirror URL:
- Clients: dnf
- Service status: (key `fedora-secondary`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- x86_64 and aarch64 are on mirror-fedora.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run, ppc64le and s390x (linux) (checked by hand)
```sh
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download\.(example|fedoraproject\.org)/pub/fedora-secondary/,baseurl=https://mirror-fedora-secondary.pkg.shecan.ir/,' /etc/yum.repos.d/fedora*.repo
sudo dnf makecache
```
Undo / restore the default, ppc64le and s390x (linux) (checked by hand)
```sh
sudo sed -i -E 's/^#metalink=/metalink=/; s,^baseurl=https://mirror-fedora-secondary\.pkg\.shecan\.ir/,#baseurl=http://download.example/pub/fedora-secondary/,' /etc/yum.repos.d/fedora*.repo
```
## AlmaLinux Vault mirror (pkg.shecan.ir)
> Mirror of vault.almalinux.org: every older AlmaLinux minor release (//BaseOS//os/, AppStream, ...).
- Upstream: vault.almalinux.org
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `almalinux-vault`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- The current releases are on mirror-almalinux; the vault is only for pinning an older minor release.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/yum.repos.d/almalinux-vault.repo`
```ini
[almalinux-vault-baseos]
name=AlmaLinux 8.9 BaseOS (vault)
baseurl=https://mirror-almalinux-vault.pkg.shecan.ir/8.9/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[almalinux-vault-appstream]
name=AlmaLinux 8.9 AppStream (vault)
baseurl=https://mirror-almalinux-vault.pkg.shecan.ir/8.9/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
```
Undo / restore the default (linux)
```sh
sudo rm -f /etc/yum.repos.d/almalinux-vault.repo
sudo dnf clean all
```
## Rocky Vault mirror (pkg.shecan.ir)
> Mirror of dl.rockylinux.org/vault/rocky: every older Rocky Linux minor release (//BaseOS//os/, AppStream, ...).
- Upstream: dl.rockylinux.org/vault/rocky
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `rocky-vault`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- The current releases are on mirror-rocky; the vault is only for pinning an older minor release.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Configuration file (linux): `/etc/yum.repos.d/rocky-vault.repo`
```ini
[rocky-vault-baseos]
name=Rocky Linux 9.4 BaseOS (vault)
baseurl=https://mirror-rocky-vault.pkg.shecan.ir/9.4/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
[rocky-vault-appstream]
name=Rocky Linux 9.4 AppStream (vault)
baseurl=https://mirror-rocky-vault.pkg.shecan.ir/9.4/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
```
Undo / restore the default (linux)
```sh
sudo rm -f /etc/yum.repos.d/rocky-vault.repo
sudo dnf clean all
```
## Oracle Linux mirror (pkg.shecan.ir)
> Mirror of yum.oracle.com: /repo/OracleLinux/OL/... for Oracle Linux 7 to 10 (BaseOS, AppStream, UEK, add-ons) and the keys /RPM-GPG-KEY-oracle-ol.
- Upstream: yum.oracle.com
- Mirror URL:
- Clients: dnf, yum
- Service status: (key `oracle`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf and yum still verify the Oracle signatures.
- Repositories that need ULN (Unbreakable Linux Network) access are not available.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf, yum: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's,https?://yum\$ociregion\.(\$ocidomain|oracle\.com)/,https://mirror-oracle.pkg.shecan.ir/,; s,https?://yum\.oracle\.com/,https://mirror-oracle.pkg.shecan.ir/,' /etc/yum.repos.d/*.repo
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo cp /root/yum.repos.d.bak/*.repo /etc/yum.repos.d/
```
## openEuler mirror (pkg.shecan.ir)
> Mirror of repo.openeuler.org: /openEuler-/ (OS, everything, EPOL, update, ...) for dnf.
- Upstream: repo.openeuler.org
- Mirror URL:
- Clients: dnf
- Service status: (key `openeuler`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf still verifies the openEuler signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo cp /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.bak
sudo sed -i -E 's/^metalink=/#metalink=/; s,https?://repo\.openeuler\.org/,https://mirror-openeuler.pkg.shecan.ir/,' /etc/yum.repos.d/openEuler.repo
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo mv /etc/yum.repos.d/openEuler.repo.bak /etc/yum.repos.d/openEuler.repo
```
## OpenMandriva mirror (pkg.shecan.ir)
> Mirror of abf-downloads.openmandriva.org (what mirror.openmandriva.org serves): //repository//// for rolling (ROME), rock and cooker.
- Upstream: abf-downloads.openmandriva.org
- Mirror URL:
- Clients: dnf
- Service status: (key `openmandriva`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf still verifies the OpenMandriva signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/openmandriva-*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://(mirror|abf-downloads)\.openmandriva\.org/,baseurl=https://mirror-openmandriva.pkg.shecan.ir/,' /etc/yum.repos.d/openmandriva-*.repo
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo cp /root/yum.repos.d.bak/openmandriva-*.repo /etc/yum.repos.d/
```
## Mageia mirror (pkg.shecan.ir)
> Mirror of the Mageia distribution tree (/distrib///media///) from distrib-coffee.ipsl.jussieu.fr, Mageia's tier-1 mirror (Mageia has no official master host), for dnf and urpmi.
- Upstream: distrib-coffee.ipsl.jussieu.fr (Mageia tier 1)
- Mirror URL:
- Clients: dnf, urpmi
- Service status: (key `mageia`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf and urpmi still verify the Mageia signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run, dnf (linux)
```sh
sudo mkdir -p /root/yum.repos.d.bak && sudo cp /etc/yum.repos.d/mageia*.repo /root/yum.repos.d.bak/
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s/^metalink=/#metalink=/; s,^#?baseurl=https?://[^ ]+/distrib/,baseurl=https://mirror-mageia.pkg.shecan.ir/distrib/,' /etc/yum.repos.d/mageia*.repo
sudo dnf makecache
```
Undo / restore the default, dnf (linux)
```sh
sudo cp /root/yum.repos.d.bak/mageia*.repo /etc/yum.repos.d/
```
#### urpmi: persistent (user- or system-wide configuration)
Run, urpmi (linux)
```sh
sudo urpmi.removemedia -a
sudo urpmi.addmedia --distrib https://mirror-mageia.pkg.shecan.ir/distrib/9/x86_64
sudo urpmi.update -a
```
Undo / restore the default, urpmi (linux) (checked by hand)
```sh
sudo urpmi.removemedia -a
sudo urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'
```
## RPM Fusion mirror (pkg.shecan.ir)
> Mirror of download1.rpmfusion.org: free and nonfree for Fedora (/free/fedora/, /nonfree/fedora/) and EL (/free/el/, /nonfree/el/), with the release packages.
- Upstream: download1.rpmfusion.org
- Mirror URL:
- Clients: dnf
- Service status: (key `rpmfusion`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf still verifies the RPM Fusion signatures. On EL, EPEL is needed too (mirror-epel).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run, Fedora (linux)
```sh
sudo dnf install -y https://mirror-rpmfusion.pkg.shecan.ir/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirror-rpmfusion.pkg.shecan.ir/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo sed -i -E 's/^metalink=/#metalink=/; s,^#?baseurl=https?://download1\.rpmfusion\.org/,baseurl=https://mirror-rpmfusion.pkg.shecan.ir/,' /etc/yum.repos.d/rpmfusion-*.repo
sudo dnf makecache
```
Undo / restore the default, Fedora (linux)
```sh
sudo dnf remove -y rpmfusion-free-release rpmfusion-nonfree-release
```
Run, EL (linux) (checked by hand)
```sh
sudo dnf install -y https://mirror-rpmfusion.pkg.shecan.ir/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
sudo sed -i -E 's/^(mirrorlist|metalink)=/#\1=/; s,^#?baseurl=https?://download1\.rpmfusion\.org/,baseurl=https://mirror-rpmfusion.pkg.shecan.ir/,' /etc/yum.repos.d/rpmfusion-*.repo
sudo dnf makecache
```
## ELRepo mirror (pkg.shecan.ir)
> Mirror of elrepo.org: /linux/elrepo/el/, /linux/kernel/el/, /linux/extras/, /linux/testing/ and the key /RPM-GPG-KEY-elrepo.org and release packages at the root.
- Upstream: elrepo.org
- Mirror URL:
- Clients: dnf
- Service status: (key `elrepo`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf still verifies the ELRepo signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo rpm --import https://mirror-elrepo.pkg.shecan.ir/RPM-GPG-KEY-elrepo.org
sudo dnf install -y https://mirror-elrepo.pkg.shecan.ir/elrepo-release-$(rpm -E %rhel).el$(rpm -E %rhel).elrepo.noarch.rpm
sudo sed -i -E '/^[[:space:]]+https?:\/\//d; s/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://elrepo\.org/,baseurl=https://mirror-elrepo.pkg.shecan.ir/,' /etc/yum.repos.d/elrepo.repo
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo dnf remove -y elrepo-release
```
## Remi mirror (pkg.shecan.ir)
> Mirror of rpms.remirepo.net: /enterprise// and /fedora// (remi, remi-safe, remi-modular, php repositories) with the release packages and keys.
- Upstream: rpms.remirepo.net
- Mirror URL:
- Clients: dnf
- Service status: (key `remi`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- dnf still verifies Remi's signatures. On EL, EPEL is needed too (mirror-epel).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dnf: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo dnf install -y https://mirror-remi.pkg.shecan.ir/enterprise/remi-release-$(rpm -E %rhel).rpm
sudo sed -i -E 's/^mirrorlist=/#mirrorlist=/; s,^#?baseurl=https?://rpms\.remirepo\.net/,baseurl=https://mirror-remi.pkg.shecan.ir/,' /etc/yum.repos.d/remi*.repo
sudo dnf makecache
```
Undo / restore the default (linux)
```sh
sudo dnf remove -y remi-release
```
## Go mirror (pkg.shecan.ir)
> GOPROXY mirror of proxy.golang.org for the go command, including the sum.golang.org checksum database.
- Upstream: proxy.golang.org, sum.golang.org
- Mirror URL:
- Clients: go, docker
- Service status: (key `go`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Public modules only; list private modules in GOPRIVATE so go fetches them directly.
- The checksum database is fetched through the mirror and still verified by go; GOSUMDB and GONOSUMDB need no change.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### go: temporary (one command or the current shell; nothing saved)
Run (linux, macos)
```sh
GOPROXY=https://mirror-go.pkg.shecan.ir go mod download golang.org/x/text@v0.20.0
```
#### go: persistent (user- or system-wide configuration)
Run
```sh
go env -w GOPROXY=https://mirror-go.pkg.shecan.ir,direct
```
Undo / restore the default
```sh
go env -u GOPROXY
```
#### go, docker: project (files inside the project)
Configuration file, Dockerfile based on the official golang image: `Dockerfile`
```dockerfile
FROM mirror-docker.pkg.shecan.ir/golang:1.23
ENV GOPROXY=https://mirror-go.pkg.shecan.ir,direct
RUN go mod download golang.org/x/text@v0.20.0
```
## Rust mirror (pkg.shecan.ir)
> Mirror of the crates.io sparse index and crate files for Cargo, and of static.rust-lang.org for rustup toolchains.
- Upstream: crates.io, static.rust-lang.org
- Mirror URLs: ,
- Clients: cargo, rustup
- Service status: (key `cargo`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `cargo`, mirror `shecan`):
### Limitations
- Read-only: cargo publish, yank, owner and search still use crates.io.
- Cargo.lock files keep the crates.io source; source replacement makes Cargo download them from the mirror.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### cargo: persistent (user- or system-wide configuration)
Configuration file: `%USERPROFILE%\.cargo\config.toml` or `~/.cargo/config.toml`
```toml
[source.crates-io]
replace-with = "shecan"
[source.shecan]
registry = "sparse+https://mirror-cargo.pkg.shecan.ir/index/"
```
Undo / restore the default
```sh
mv ~/.cargo/config.toml ~/.cargo/config.toml.shecan-off
```
#### cargo: temporary (one command or the current shell; nothing saved)
Run (linux, macos)
```sh
cargo --config 'source.crates-io.replace-with="shecan"' --config 'source.shecan.registry="sparse+https://mirror-cargo.pkg.shecan.ir/index/"' fetch
```
#### rustup: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export RUSTUP_DIST_SERVER=https://mirror-cargo.pkg.shecan.ir/rustup
export RUSTUP_UPDATE_ROOT=https://mirror-cargo.pkg.shecan.ir/rustup/rustup
curl --proto '=https' --tlsv1.2 -sSf https://mirror-cargo.pkg.shecan.ir/rustup/rustup/rustup-init.sh | sh -s -- -y --profile minimal
```
#### rustup: temporary (one command or the current shell; nothing saved)
Run (linux, macos)
```sh
export RUSTUP_DIST_SERVER=https://mirror-cargo.pkg.shecan.ir/rustup
export RUSTUP_UPDATE_ROOT=https://mirror-cargo.pkg.shecan.ir/rustup/rustup
rustup toolchain install 1.80.0 --profile minimal
```
## NuGet mirror (pkg.shecan.ir)
> Mirror of the nuget.org V3 feed (api.nuget.org) for dotnet, nuget.exe, Visual Studio and Rider.
- Upstream: api.nuget.org
- Mirror URL:
- Clients: dotnet, nuget, visual-studio
- Service status: (key `nuget`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Read-only: dotnet nuget push and package deletion are not supported.
- Search results come from nuget.org and may list packages that the mirror has not cached yet; they are fetched on first use.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dotnet, nuget, visual-studio: project (files inside the project)
Configuration file: `nuget.config`
```xml
```
#### dotnet: persistent (user- or system-wide configuration)
Run
```sh
dotnet nuget add source https://mirror-nuget.pkg.shecan.ir/v3/index.json -n shecan
dotnet nuget disable source nuget.org
```
Undo / restore the default
```sh
dotnet nuget enable source nuget.org
dotnet nuget remove source shecan
```
#### dotnet: temporary (one command or the current shell; nothing saved)
Run
```sh
dotnet add package Newtonsoft.Json -s https://mirror-nuget.pkg.shecan.ir/v3/index.json
```
## Dart and Flutter mirror (pkg.shecan.ir)
> Mirror of pub.dev (PUB_HOSTED_URL) and of the Flutter storage bucket (FLUTTER_STORAGE_BASE_URL: SDK releases, engine artifacts, download.flutter.io Maven repository).
- Upstream: pub.dev, storage.googleapis.com
- Mirror URL:
- Clients: dart, flutter
- Service status: (key `flutter`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Read-only: dart pub publish is not supported.
- The Flutter SDK git repository (github.com/flutter/flutter) is not mirrored; install the SDK from the release archive.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### dart, flutter: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export PUB_HOSTED_URL=https://mirror-flutter.pkg.shecan.ir
export FLUTTER_STORAGE_BASE_URL=https://mirror-flutter.pkg.shecan.ir
```
Undo / restore the default (linux, macos)
```sh
unset PUB_HOSTED_URL FLUTTER_STORAGE_BASE_URL
sed -i.bak -E '/^export (PUB_HOSTED_URL|FLUTTER_STORAGE_BASE_URL)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```
Run (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('PUB_HOSTED_URL', 'https://mirror-flutter.pkg.shecan.ir', 'User')
[Environment]::SetEnvironmentVariable('FLUTTER_STORAGE_BASE_URL', 'https://mirror-flutter.pkg.shecan.ir', 'User')
```
Undo / restore the default (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('PUB_HOSTED_URL', $null, 'User')
[Environment]::SetEnvironmentVariable('FLUTTER_STORAGE_BASE_URL', $null, 'User')
```
#### flutter: persistent (user- or system-wide configuration)
Run (linux)
```sh
curl -fLO https://mirror-flutter.pkg.shecan.ir/flutter_infra_release/releases/stable/linux/flutter_linux_3.47.7-stable.tar.xz
tar -xJf flutter_linux_3.47.7-stable.tar.xz
```
## Composer mirror (pkg.shecan.ir)
> Mirror of Packagist (repo.packagist.org) for Composer 2: package metadata, dist archives of packages hosted on GitHub, and composer.phar releases from getcomposer.org.
- Upstream: repo.packagist.org, codeload.github.com, getcomposer.org
- Mirror URL:
- Clients: composer
- Service status: (key `composer`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Read-only. Disable packagist.org as shown (repos.packagist.org false); Composer 2.10 otherwise still asks packagist.org for security data.
- Only dists hosted on GitHub (most of Packagist) are served by the mirror; packages on GitLab or Bitbucket and --prefer-source (git) are fetched from their own hosts.
- The standalone composer audit command POSTs to the packagist.org API and does not work through the mirror; the security checks during require/update/install use the mirror's metadata.
- composer self-update downloads from getcomposer.org; download composer.phar from the mirror instead.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### composer: persistent (user- or system-wide configuration)
Run
```sh
composer config -g repos.packagist composer https://mirror-composer.pkg.shecan.ir
composer config -g repos.packagist.org false
```
Undo / restore the default
```sh
composer config -g --unset repos.packagist
composer config -g --unset repos.packagist.org
```
Run (linux)
```sh
curl -fLo composer.phar https://mirror-composer.pkg.shecan.ir/download/latest-stable/composer.phar
echo "$(curl -fsSL https://mirror-composer.pkg.shecan.ir/download/latest-stable/composer.phar.sha256) composer.phar" | sha256sum -c
sudo install -m 755 composer.phar /usr/local/bin/composer
```
#### composer: project (files inside the project)
Run
```sh
composer config repos.packagist composer https://mirror-composer.pkg.shecan.ir
composer config repos.packagist.org false
```
## Conda mirror (pkg.shecan.ir)
> Mirror of the conda-forge and bioconda channels (conda.anaconda.org) for conda, mamba, micromamba and pixi: repodata (including sharded repodata) and package files.
- Upstream: conda.anaconda.org (کانالهای conda-forge و bioconda)
- Mirror URLs: , ,
- Clients: conda, mamba, micromamba, pixi
- Service status: (key `conda`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Only the conda-forge and bioconda channels. Anaconda's defaults channels (pkgs/main, pkgs/r, pkgs/msys2 on repo.anaconda.com) are not mirrored because Anaconda's terms of service do not allow mirroring them; the conda setup points defaults at the conda-forge mirror.
- Other channels on anaconda.org (pytorch, nvidia, personal channels) are not served (404).
- Read-only: anaconda upload/login are not supported. Installers (Miniforge, Miniconda) are not served.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### conda, mamba: persistent (user- or system-wide configuration)
Run
```sh
conda config --set channel_alias https://mirror-conda.pkg.shecan.ir
conda config --add channels conda-forge
conda config --add default_channels https://mirror-conda.pkg.shecan.ir/conda-forge
```
Undo / restore the default
```sh
conda config --remove-key channel_alias
conda config --remove-key default_channels
```
#### conda, mamba: temporary (one command or the current shell; nothing saved)
Run
```sh
conda create -n myenv --override-channels -c https://mirror-conda.pkg.shecan.ir/conda-forge python=3.12
```
#### micromamba: persistent (user- or system-wide configuration)
Run
```sh
micromamba config set channel_alias https://mirror-conda.pkg.shecan.ir
micromamba config append channels conda-forge
```
#### pixi: persistent (user- or system-wide configuration)
Configuration file: `%USERPROFILE%\.pixi\config.toml` or `~/.pixi/config.toml`
```toml
[mirrors]
"https://conda.anaconda.org/conda-forge" = ["https://mirror-conda.pkg.shecan.ir/conda-forge"]
"https://conda.anaconda.org/bioconda" = ["https://mirror-conda.pkg.shecan.ir/bioconda"]
```
## CRAN mirror (pkg.shecan.ir)
> Mirror of CRAN (cloud.r-project.org) for R: source packages (also archived versions), Windows and macOS binary packages, R installers and the Ubuntu/Debian apt repositories of R.
- Upstream: cloud.r-project.org
- Mirror URL:
- Clients: r, rstudio, apt
- Service status: (key `cran`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Only CRAN; Bioconductor, R-universe and Posit Package Manager (Linux binary packages) are not mirrored.
- Windows and macOS binary packages are cached for up to 7 days; CRAN sometimes rebuilds a binary under the same version.
- Package files, indexes and R installers only: Rtools, manuals, web pages and directory listings are not served.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### r, rstudio: persistent (user- or system-wide configuration)
Run
```
cat('options(repos = c(CRAN = "https://mirror-cran.pkg.shecan.ir"))\n', file = "~/.Rprofile", append = TRUE)
```
Undo / restore the default (linux, macos)
```sh
sed -i.bak '/mirror-cran\.pkg\.shecan\.ir/d' ~/.Rprofile
```
#### r, rstudio: temporary (one command or the current shell; nothing saved)
Run
```
install.packages("jsonlite", repos = "https://mirror-cran.pkg.shecan.ir")
```
#### apt: persistent (user- or system-wide configuration)
Run (linux)
```sh
wget -qO- https://mirror-cran.pkg.shecan.ir/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
echo "deb https://mirror-cran.pkg.shecan.ir/bin/linux/ubuntu $(. /etc/os-release && echo $VERSION_CODENAME)-cran40/" | sudo tee /etc/apt/sources.list.d/cran-r.list
sudo apt update
sudo apt install -y --no-install-recommends r-base
```
## Hex mirror (pkg.shecan.ir)
> Mirror of the Hex package registry (repo.hex.pm) for Mix (Elixir) and rebar3 (Erlang), including the Hex and rebar builds that mix local.hex and mix local.rebar download from builds.hex.pm.
- Upstream: repo.hex.pm, builds.hex.pm
- Mirror URL:
- Clients: mix, rebar3
- Service status: (key `hex`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Read-only and public packages only: organisations (private repositories), mix hex.publish and the hex.pm API (search, mix hex.outdated, mix hex.audit) are not served.
- The registry is signed by hex.pm and checked by the client; HEX_MIRROR and HEX_CDN only change where files are downloaded from.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### mix: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export HEX_MIRROR=https://mirror-hex.pkg.shecan.ir
```
Undo / restore the default (linux, macos)
```sh
unset HEX_MIRROR
sed -i.bak -E '/^export (HEX_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```
Run (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('HEX_MIRROR', 'https://mirror-hex.pkg.shecan.ir', 'User')
```
Undo / restore the default (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('HEX_MIRROR', $null, 'User')
```
#### rebar3: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export HEX_CDN=https://mirror-hex.pkg.shecan.ir
```
Undo / restore the default (linux, macos)
```sh
unset HEX_CDN
sed -i.bak -E '/^export (HEX_CDN)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```
## CPAN mirror (pkg.shecan.ir)
> Mirror of CPAN (cpan.metacpan.org, including BackPAN) for cpanm, Carton and the cpan shell: the package indexes and all distributions.
- Upstream: cpan.metacpan.org
- Mirror URL:
- Clients: cpanm
- Service status: (key `cpan`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- cpanm must be run with --mirror-only; otherwise it resolves modules through the MetaCPAN API (fastapi.metacpan.org), which is not mirrored.
- Only CPAN files (indexes, distributions, CHECKSUMS); MetaCPAN search, its API and directory listings are not served.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### cpanm: temporary (one command or the current shell; nothing saved)
Run (linux, macos)
```sh
cpanm --mirror https://mirror-cpan.pkg.shecan.ir --mirror-only Try::Tiny
```
#### cpanm: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export PERL_CPANM_OPT="--mirror https://mirror-cpan.pkg.shecan.ir --mirror-only"
```
Undo / restore the default (linux, macos)
```sh
unset PERL_CPANM_OPT
sed -i.bak -E '/^export (PERL_CPANM_OPT)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```
## Julia mirror (pkg.shecan.ir)
> Julia Pkg server (JULIA_PKG_SERVER) for Pkg: registries (General), packages and artifacts by tree hash, served from the Julia storage servers.
- Upstream: us-east.storage.juliahub.com (سرور ذخیرهسازی Julia)
- Mirror URL:
- Clients: julia
- Service status: (key `julia`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Artifacts of 200 MB or more (for example CUDA) are downloaded through the mirror but not cached.
- Packages that are not in a registry (Pkg.add(url=...)) are cloned from their git host.
- Julia itself (juliaup, julialang-s3.julialang.org) is not mirrored.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### julia: persistent (user- or system-wide configuration)
Run (linux, macos)
```sh
export JULIA_PKG_SERVER=https://mirror-julia.pkg.shecan.ir
```
Undo / restore the default (linux, macos)
```sh
unset JULIA_PKG_SERVER
sed -i.bak -E '/^export (JULIA_PKG_SERVER)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```
Run (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('JULIA_PKG_SERVER', 'https://mirror-julia.pkg.shecan.ir', 'User')
```
Undo / restore the default (windows) (checked by hand)
```powershell
[Environment]::SetEnvironmentVariable('JULIA_PKG_SERVER', $null, 'User')
```
## RubyGems mirror (pkg.shecan.ir)
> Mirror of rubygems.org for Bundler and the gem command: the compact index (/versions, /info/, /names), .gem files and the legacy specs indexes.
- Upstream: rubygems.org
- Mirror URL:
- Clients: bundler, gem
- Service status: (key `rubygems`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `rubygems`, mirror `shecan`):
### Limitations
- Read-only: gem push, yank, owner, signin and the other API commands are not supported.
- Bundler keeps https://rubygems.org/ as the source in Gemfile and Gemfile.lock; the mirror setting redirects it, so neither file changes.
- Gems from git sources (git: or github: in the Gemfile) are fetched from their own hosts.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### bundler: persistent (user- or system-wide configuration)
Run
```sh
bundle config set --global mirror.https://rubygems.org https://mirror-rubygems.pkg.shecan.ir
```
Undo / restore the default
```sh
bundle config unset --global mirror.https://rubygems.org
```
#### bundler: project (files inside the project)
Run
```sh
bundle config set --local mirror.https://rubygems.org https://mirror-rubygems.pkg.shecan.ir
```
#### gem: persistent (user- or system-wide configuration)
Run
```sh
gem sources --add https://mirror-rubygems.pkg.shecan.ir/ --remove https://rubygems.org/
```
Undo / restore the default (checked by hand)
```sh
gem sources --add https://rubygems.org/ --remove https://mirror-rubygems.pkg.shecan.ir/
```
## CocoaPods mirror (pkg.shecan.ir)
> Mirror of the CocoaPods trunk CDN (cdn.cocoapods.org): the Specs index files and podspecs, used as a CDN source in the Podfile.
- Upstream: cdn.cocoapods.org
- Mirror URL:
- Clients: cocoapods
- Service status: (key `cocoapods`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Only the spec repository is mirrored: the pods' own sources (git repositories, mostly on GitHub, or http archives named in each podspec) are downloaded from their own hosts during pod install.
- Replace source "https://cdn.cocoapods.org/" in the Podfile; other (private) spec repositories are not affected.
- pod trunk (push, register) and full-text search (pod search --full) are not supported.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### cocoapods: project (files inside the project)
Configuration file (macos): `Podfile`
```ruby
source 'https://mirror-cocoapods.pkg.shecan.ir/'
```
#### cocoapods: persistent (user- or system-wide configuration)
Run (macos)
```sh
pod repo add-cdn shecan https://mirror-cocoapods.pkg.shecan.ir/
pod repo remove trunk
```
Undo / restore the default (macos) (checked by hand)
```sh
pod repo remove shecan
pod repo add-cdn trunk https://cdn.cocoapods.org/
```
## LuaRocks mirror (pkg.shecan.ir)
> Mirror of the LuaRocks rocks server (luarocks.org): the manifests, rockspecs and rock files (.src.rock, binary rocks) at the root, under /dev/ and under /manifests//, for luarocks install, luarocks search and luarocks make.
- Upstream: luarocks.org
- Mirror URL:
- Clients: luarocks
- Service status: (key `luarocks`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Rockspecs whose source is a git repository (most of them point at GitHub) are built from that repository, which the mirror does not serve; LuaRocks prefers the .src.rock when the rock has one, and most rocks do.
- Read-only: luarocks upload, the luarocks.org API and the website are not served.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### luarocks: temporary (one command or the current shell; nothing saved)
Run
```sh
luarocks install --only-server=https://mirror-luarocks.pkg.shecan.ir argparse
```
#### luarocks: persistent (user- or system-wide configuration)
Run
```sh
mkdir -p ~/.luarocks && luarocks config rocks_servers[1] https://mirror-luarocks.pkg.shecan.ir --scope=user
```
Undo / restore the default
```sh
luarocks config rocks_servers --unset --scope=user
```
## Arch Linux mirror (pkg.shecan.ir)
> Mirror of the official Arch Linux repositories (core, extra, multilib) for pacman, x86_64.
- Upstream: geo.mirror.pkgbuild.com
- Mirror URL:
- Clients: pacman
- Service status: (key `arch`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `archlinux`, mirror `shecan`):
### Limitations
- pacman still verifies the official package signatures.
- Only the official repositories, x86_64. Arch Linux ARM, the archive, the AUR (read-only) and the derivatives (Manjaro, EndeavourOS, CachyOS, Chaotic-AUR, BlackArch, Artix) have their own mirrors.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
```
Run (linux)
```sh
echo 'Server = https://mirror-arch.pkg.shecan.ir/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
```
Run (linux)
```sh
sudo pacman -Syu --noconfirm
```
Undo / restore the default (linux)
```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
```
## Arch Linux ARM mirror (pkg.shecan.ir)
> Mirror of Arch Linux ARM (/// for aarch64 and armv7h: core, extra, alarm, aur). mirror.archlinuxarm.org redirects every client to a mirror of its choice; this mirror reads from RWTH Aachen (de3), then the Florida mirror.
- Upstream: mirror.archlinuxarm.org
- Mirror URL:
- Clients: pacman
- Service status: (key `archarm`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the Arch Linux ARM signatures (archlinuxarm-keyring).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux) (checked by hand)
```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo 'Server = https://mirror-archarm.pkg.shecan.ir/$arch/$repo' | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syu --noconfirm
```
Undo / restore the default (linux)
```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
```
## Arch Linux Archive mirror (pkg.shecan.ir)
> Mirror of archive.archlinux.org: dated repository snapshots (/repos/////os/, also /repos/last/) and every old package version (/packages///), with directory listings.
- Upstream: archive.archlinux.org
- Mirror URL:
- Clients: pacman
- Service status: (key `arch-archive`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the package signatures; a snapshot date pins the whole system to that day.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: temporary (one command or the current shell; nothing saved)
Example, One old package (linux)
```sh
sudo pacman -U --noconfirm https://mirror-arch-archive.pkg.shecan.ir/packages/j/jq/jq-1.8.1-3-x86_64.pkg.tar.zst
```
#### pacman: persistent (user- or system-wide configuration)
Run, Whole system at a date (linux)
```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo 'Server = https://mirror-arch-archive.pkg.shecan.ir/repos/2026/10/01/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syyuu --noconfirm
```
Undo / restore the default, Whole system at a date (linux)
```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
sudo pacman -Syyuu --noconfirm
```
## Manjaro mirror (pkg.shecan.ir)
> Mirror of repo.manjaro.org/repo: /// for the stable, testing and unstable branches and arm-stable, arm-testing, arm-unstable.
- Upstream: repo.manjaro.org
- Mirror URL:
- Clients: pacman
- Service status: (key `manjaro`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the Manjaro signatures.
- pacman-mirrors rewrites /etc/pacman.d/mirrorlist; do not run it afterwards, or run the command below again.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo 'Server = https://mirror-manjaro.pkg.shecan.ir/repo/stable/$repo/$arch' | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syyu --noconfirm
```
Undo / restore the default (linux)
```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
```
## EndeavourOS mirror (pkg.shecan.ir)
> Mirror of the EndeavourOS repository (/repo//, read from mirror.alpix.eu, one of EndeavourOS's mirrors). The Arch base comes from mirror-arch.
- Upstream: mirror.alpix.eu/endeavouros
- Mirror URL:
- Clients: pacman
- Service status: (key `endeavouros`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the EndeavourOS signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo cp /etc/pacman.d/endeavouros-mirrorlist /etc/pacman.d/endeavouros-mirrorlist.bak
echo 'Server = https://mirror-endeavouros.pkg.shecan.ir/repo/$repo/$arch' | sudo tee /etc/pacman.d/endeavouros-mirrorlist
sudo pacman -Syy
```
Undo / restore the default (linux)
```sh
sudo mv /etc/pacman.d/endeavouros-mirrorlist.bak /etc/pacman.d/endeavouros-mirrorlist
```
## CachyOS mirror (pkg.shecan.ir)
> Mirror of mirror.cachyos.org/repo: // for x86_64, x86_64_v3, x86_64_v4 and znver4 (cachyos, cachyos-v3, cachyos-core-v3, cachyos-extra-v3, cachyos-v4, cachyos-znver4, ...).
- Upstream: mirror.cachyos.org
- Mirror URL:
- Clients: pacman
- Service status: (key `cachyos`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the CachyOS signatures.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo mkdir -p /root/pacman.d.bak && sudo cp /etc/pacman.d/cachyos*-mirrorlist /root/pacman.d.bak/
sudo sed -i -E 's#^Server = .*/repo/#Server = https://mirror-cachyos.pkg.shecan.ir/repo/#' /etc/pacman.d/cachyos*-mirrorlist
sudo pacman -Syy
```
Undo / restore the default (linux)
```sh
sudo cp /root/pacman.d.bak/cachyos*-mirrorlist /etc/pacman.d/
```
## Chaotic-AUR mirror (pkg.shecan.ir)
> Mirror of builds.garudalinux.org/repos (what cdn-mirror.chaotic.cx redirects to): /chaotic-aur/ with chaotic-keyring and chaotic-mirrorlist packages, and /garuda/ (Garuda Linux).
- Upstream: builds.garudalinux.org/repos
- Mirror URLs: ,
- Clients: pacman
- Service status: (key `chaotic`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the Chaotic-AUR signatures; the key comes from keyserver.ubuntu.com through the mirror.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
curl -fsSL https://mirror-ppa.pkg.shecan.ir/keys/EF925EA60F33D0CB85C44AD13056513887B78AEB.asc | sudo pacman-key --add -
sudo pacman-key --lsign-key EF925EA60F33D0CB85C44AD13056513887B78AEB
sudo pacman -U --noconfirm https://mirror-chaotic.pkg.shecan.ir/chaotic-aur/chaotic-keyring.pkg.tar.zst
printf '\n[chaotic-aur]\nServer = https://mirror-chaotic.pkg.shecan.ir/$repo/$arch\n' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[chaotic-aur\]$/,+1d' /etc/pacman.conf
sudo pacman -Sy
```
## BlackArch mirror (pkg.shecan.ir)
> Mirror of the BlackArch repository (www.blackarch.org/blackarch: /blackarch/os/) for pacman on Arch Linux and derivatives.
- Upstream: www.blackarch.org
- Mirror URL:
- Clients: pacman
- Service status: (key `blackarch`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the BlackArch signatures; the four trusted signing keys of strap.sh (KEYRING_SIGNERS) come from keyserver.ubuntu.com through the mirror (instead of strap.sh, which names upstream mirrors).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
for k in 8F9A9793CB8591147C2EC70566E0CDBD1E01F333 A0917C4147A37007CB54C1CFD295AA940EFDDF62 4345771566D76038C7FEB43863EC0ADBEA87E4E3 F9A6E68A711354D84A9B91637533BAFE69A25079; do
curl -fsSL https://mirror-ppa.pkg.shecan.ir/keys/$k.asc | sudo pacman-key --add -
sudo pacman-key --lsign-key $k
done
printf '\n[blackarch]\nServer = https://mirror-blackarch.pkg.shecan.ir/$repo/os/$arch\n' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy --noconfirm blackarch-keyring
```
Undo / restore the default (linux)
```sh
sudo sed -i '/^\[blackarch\]$/,+1d' /etc/pacman.conf
sudo pacman -Sy
```
## Artix Linux mirror (pkg.shecan.ir)
> Mirror of the Artix Linux repositories (//os/: system, world, galaxy, lib32 and their -gremlins/-goblins testing repos). Artix has no master host; this mirror reads from dotsrc (Denmark), then RWTH Aachen.
- Upstream: mirrors.dotsrc.org/artix-linux
- Mirror URL:
- Clients: pacman
- Service status: (key `artix`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- pacman still verifies the Artix signatures. The Arch repositories that artix-archlinux-support adds come from mirror-arch.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: persistent (user- or system-wide configuration)
Run (linux)
```sh
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo 'Server = https://mirror-artix.pkg.shecan.ir/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syyu --noconfirm
```
Undo / restore the default (linux)
```sh
sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
```
## AUR mirror (pkg.shecan.ir)
> Read-only mirror of aur.archlinux.org: the RPC API (/rpc/v5/info, /rpc/v5/search), PKGBUILD snapshots (/cgit/aur.git/snapshot/.tar.gz), raw files (/cgit/aur.git/plain/?h=) and the package lists (/packages.gz, /packages-meta-v1.json.gz).
- Upstream: aur.archlinux.org
- Mirror URL:
- Clients: pacman, curl
- Service status: (key `aur`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- git clone is not served (git-upload-pack needs POST), so AUR helpers that clone (yay, paru) do not use the mirror. Download the snapshot and run makepkg instead.
- The sources a PKGBUILD downloads come from their own hosts (GitHub, project sites), which are not mirrored. Prebuilt AUR packages are on mirror-chaotic.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### pacman: temporary (one command or the current shell; nothing saved)
Example (linux) (checked by hand)
```sh
curl -fsSL https://mirror-aur.pkg.shecan.ir/cgit/aur.git/snapshot/yay.tar.gz | tar xz
cd yay && makepkg -si
```
#### curl: temporary (one command or the current shell; nothing saved)
Verify (linux, macos)
```sh
curl -fsSL 'https://mirror-aur.pkg.shecan.ir/rpc/v5/info?arg%5B%5D=yay'
```
## Kali Linux mirror (pkg.shecan.ir)
> Mirror of the Kali Linux repository (kali-rolling and kali-last-snapshot) for apt.
- Upstream: kali.download
- Mirror URL:
- Clients: apt
- Service status: (key `kali`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `kali`, mirror `shecan`):
### Limitations
- apt still verifies the official Kali signatures.
- Plain HTTP is enabled, like the official Kali mirrors; apt verifies signatures either way.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/apt-sources.bak && sudo cp -a /etc/apt/sources.list* /root/apt-sources.bak/
```
Run (linux)
```sh
sudo sed -i -E 's#https?://http\.kali\.org/kali#http://mirror-kali.pkg.shecan.ir/kali#' $(grep -rl http.kali.org /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null)
```
Run (linux)
```sh
sudo apt update
```
Undo / restore the default (linux)
```sh
sudo cp -a /root/apt-sources.bak/sources.list* /etc/apt/
```
## Raspberry Pi OS mirror (pkg.shecan.ir)
> Mirror of the Raspberry Pi OS repositories for apt: archive.raspberrypi.com/debian (Raspberry Pi packages, 32- and 64-bit) and raspbian.raspberrypi.com/raspbian (the 32-bit armhf distribution). The Debian part of 64-bit Raspberry Pi OS uses the Debian mirror.
- Upstream: archive.raspberrypi.com, raspbian.raspberrypi.com
- Mirror URLs: ,
- Clients: apt
- Service status: (key `raspberrypi`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the official Raspberry Pi and Raspbian signatures.
- Plain HTTP is enabled like on the official hosts; switch to https after installing ca-certificates if you prefer.
- Raspbian packages are served from full Raspbian mirrors (RWTH Aachen, then Aliyun) because raspbian.raspberrypi.com redirects every package to a mirror; the signed index still comes from raspbian.raspberrypi.com.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
sudo mkdir -p /root/apt-sources.bak && sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.d /root/apt-sources.bak/
```
Run (linux)
```sh
sudo sed -i -E 's#https?://archive\.raspberrypi\.(com|org)/debian#http://mirror-raspberrypi.pkg.shecan.ir/debian#; s#https?://raspbian\.raspberrypi\.(com|org)/raspbian#http://mirror-raspberrypi.pkg.shecan.ir/raspbian#; s#https?://(deb|security)\.debian\.org/#http://mirror-debian.pkg.shecan.ir/#' $(grep -rlE 'raspberrypi\.(com|org)|debian\.org' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null)
```
Run (linux)
```sh
sudo apt update
```
Undo / restore the default (linux)
```sh
sudo cp -a /root/apt-sources.bak/sources.list /root/apt-sources.bak/sources.list.d /etc/apt/
```
## Ubuntu PPA mirror (pkg.shecan.ir)
> Mirror of every public Launchpad PPA (ppa.launchpadcontent.net///ubuntu) for apt on Ubuntu, with the PPA signing keys (keyserver.ubuntu.com) and the Launchpad API lookup of a PPA's key fingerprint.
- Upstream: ppa.launchpadcontent.net, keyserver.ubuntu.com
- Mirror URL:
- Clients: apt
- Service status: (key `ppa`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- add-apt-repository talks to Launchpad and writes ppa.launchpadcontent.net into the sources; add the PPA with the commands of this guide, or point PPAs added earlier at the mirror.
- apt verifies the PPA's own signature; keys are served over HTTPS only.
- Private PPAs (private-ppa.launchpadcontent.net, with credentials) are not supported.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Add a PPA (Ubuntu 22.04 and newer); set PPA= to / (linux)
```sh
PPA=deadsnakes/ppa
PPA_OWNER=${PPA%/*} PPA_NAME=${PPA#*/}
FPR=$(curl -fsS "https://mirror-ppa.pkg.shecan.ir/api/~$PPA_OWNER/+archive/ubuntu/$PPA_NAME" | grep -o '"signing_key_fingerprint": "[0-9A-F]*"' | grep -o '[0-9A-F]\{40\}')
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsS -o /etc/apt/keyrings/ppa-$PPA_OWNER-$PPA_NAME.asc "https://mirror-ppa.pkg.shecan.ir/keys/$FPR.asc"
CODENAME=$(. /etc/os-release && echo "$VERSION_CODENAME")
printf 'Types: deb\nURIs: https://mirror-ppa.pkg.shecan.ir/%s/ubuntu/\nSuites: %s\nComponents: main\nSigned-By: /etc/apt/keyrings/ppa-%s-%s.asc\n' "$PPA" "$CODENAME" "$PPA_OWNER" "$PPA_NAME" | sudo tee /etc/apt/sources.list.d/ppa-$PPA_OWNER-$PPA_NAME.sources
sudo apt update
```
Verify, Add a PPA (Ubuntu 22.04 and newer); set PPA= to / (linux)
```sh
sudo apt install -y python3.13
```
Run, PPAs added earlier with add-apt-repository (linux)
```sh
sudo sed -i -E 's#https?://ppa\.launchpad(content)?\.net/#https://mirror-ppa.pkg.shecan.ir/#' $(grep -rlE 'ppa\.launchpad(content)?\.net' /etc/apt/sources.list.d)
sudo apt update
```
Undo / restore the default, Add a PPA (Ubuntu 22.04 and newer); set PPA= to / (linux)
```sh
sudo rm /etc/apt/sources.list.d/ppa-deadsnakes-ppa.sources /etc/apt/keyrings/ppa-deadsnakes-ppa.asc
sudo apt update
```
## Alpine Linux mirror (pkg.shecan.ir)
> Mirror of the official Alpine Linux repositories (dl-cdn.alpinelinux.org/alpine: main, community, edge testing; every release branch and architecture) for apk.
- Upstream: dl-cdn.alpinelinux.org
- Mirror URL:
- Clients: apk
- Service status: (key `alpine`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `alpine`, mirror `shecan`):
### Limitations
- apk still verifies the signed APKINDEX and every package checksum.
- Release images (ISO, minirootfs under releases/) are not served.
- Commands in /etc/apk/repositories run as root (in containers the default user).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apk: persistent (user- or system-wide configuration)
Back up first (linux)
```sh
cp /etc/apk/repositories /etc/apk/repositories.bak
```
Run (linux)
```sh
sed -i -E 's#https?://(dl-cdn\.alpinelinux\.org/alpine|cdn\.alpinelinux\.org(/alpine)?)/#https://mirror-alpine.pkg.shecan.ir/alpine/#' /etc/apk/repositories
apk update
```
Undo / restore the default (linux)
```sh
mv /etc/apk/repositories.bak /etc/apk/repositories
```
Configuration file, Alpine 3.24 full file (alternative; write the branch you run instead of v3.24) (linux): `/etc/apk/repositories`
```
https://mirror-alpine.pkg.shecan.ir/alpine/v3.24/main
https://mirror-alpine.pkg.shecan.ir/alpine/v3.24/community
```
#### apk: project (files inside the project)
Configuration file, Dockerfile based on Alpine 3.24: `Dockerfile`
```dockerfile
FROM mirror-docker.pkg.shecan.ir/alpine:3.24
RUN sed -i -E 's#https?://(dl-cdn\.alpinelinux\.org/alpine|cdn\.alpinelinux\.org(/alpine)?)/#https://mirror-alpine.pkg.shecan.ir/alpine/#' /etc/apk/repositories \
&& apk add --no-cache curl
```
## Linux Mint mirror (pkg.shecan.ir)
> Mirror of packages.linuxmint.com (Linux Mint 19 to 22 and LMDE: dists//, pool/) for apt. The Ubuntu base of Linux Mint comes from mirror-ubuntu, the Debian base of LMDE from mirror-debian.
- Upstream: packages.linuxmint.com
- Mirror URL:
- Clients: apt
- Service status: (key `mint`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies Mint's signature (linuxmint-keyring is installed on every Mint system).
- If another mirror was chosen in Software Sources, the sed command replaces it as well; the Software Sources tool may later offer to switch back.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Linux Mint 21 and 22 (linux)
```sh
F=/etc/apt/sources.list.d/official-package-repositories.list
sudo cp $F $F.bak
sudo sed -i -E 's#^deb [^ ]+ ([a-z]+ main upstream)#deb https://mirror-mint.pkg.shecan.ir \1#; s#^deb [^ ]+ ([a-z-]+ main restricted)#deb https://mirror-ubuntu.pkg.shecan.ir/ubuntu \1#' $F
sudo apt update
```
Undo / restore the default, Linux Mint 21 and 22 (linux)
```sh
sudo mv /etc/apt/sources.list.d/official-package-repositories.list.bak /etc/apt/sources.list.d/official-package-repositories.list
```
Run, LMDE (linux)
```sh
F=/etc/apt/sources.list.d/official-package-repositories.sources
sudo cp $F $F.bak
sudo sed -i -E 's#^URIs: https?://[^ ]+/debian-security/?$#URIs: https://mirror-debian.pkg.shecan.ir/debian-security#; s#^URIs: https?://[^ ]+/debian/?$#URIs: https://mirror-debian.pkg.shecan.ir/debian#; s#^URIs: https?://packages\.linuxmint\.com/?$#URIs: https://mirror-mint.pkg.shecan.ir#' $F
sudo apt update
```
## Pop!_OS mirror (pkg.shecan.ir)
> Mirror of apt.pop-os.org /release/ (Pop!_OS and COSMIC packages) and /proprietary/ (NVIDIA drivers and other proprietary packages) for apt on Pop!_OS 24.04. apt.pop-os.org/ubuntu is a copy of the Ubuntu archive; it is pointed at mirror-ubuntu.
- Upstream: apt.pop-os.org
- Mirror URLs: ,
- Clients: apt
- Service status: (key `popos`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the System76 signature (pop-keyring is installed on every Pop!_OS system).
- Pop!_OS 22.04 gets its own packages from the system76/pop PPA; use the PPA mirror for it.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Pop!_OS 24.04 (linux) (checked by hand)
```sh
sudo cp -a /etc/apt/sources.list.d /etc/apt/sources.list.d.bak
sudo sed -i -E 's#https?://apt\.pop-os\.org/ubuntu/?#https://mirror-ubuntu.pkg.shecan.ir/ubuntu#; s#https?://apt\.pop-os\.org/(release|proprietary)/?#https://mirror-popos.pkg.shecan.ir/\1#' /etc/apt/sources.list.d/*.sources
sudo apt update
```
Undo / restore the default, Pop!_OS 24.04 (linux)
```sh
sudo rm -rf /etc/apt/sources.list.d
sudo mv /etc/apt/sources.list.d.bak /etc/apt/sources.list.d
```
## Zorin OS mirror (pkg.shecan.ir)
> Mirror of packages.zorinos.com (/stable/, /patches/, /apps/, /drivers/ with dists//) for apt on Zorin OS 16 to 18. The Ubuntu base comes from mirror-ubuntu.
- Upstream: packages.zorinos.com
- Mirror URL:
- Clients: apt
- Service status: (key `zorin`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies Zorin's signature.
- /premium/ (Zorin OS Pro) needs a login and is not mirrored.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Zorin OS 17 and 18 (linux) (checked by hand)
```sh
sudo cp /etc/apt/sources.list.d/zorin.list /etc/apt/sources.list.d/zorin.list.bak
sudo sed -i -E 's#https?://packages\.zorinos\.com/(stable|patches|apps|drivers)#https://mirror-zorin.pkg.shecan.ir/\1#' /etc/apt/sources.list.d/zorin.list
sudo apt update
```
Undo / restore the default, Zorin OS 17 and 18 (linux)
```sh
sudo mv /etc/apt/sources.list.d/zorin.list.bak /etc/apt/sources.list.d/zorin.list
```
## Devuan mirror (pkg.shecan.ir)
> Mirror of the Devuan archive (pkgmaster.devuan.org): /merged/ (what Devuan systems use, Devuan and Debian packages together) and /devuan/, every suite (excalibur, daedalus, chimaera, ceres, ...). Debian's packages in the merged pool are served from the same cache as mirror-debian.
- Upstream: pkgmaster.devuan.org
- Mirror URL:
- Clients: apt
- Service status: (key `devuan`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the Devuan signature.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Devuan (linux)
```sh
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i -E 's#https?://(deb|pkgmaster)\.devuan\.org/#http://mirror-devuan.pkg.shecan.ir/#' /etc/apt/sources.list
sudo apt update
```
Undo / restore the default, Devuan (linux)
```sh
sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list
```
## MX Linux mirror (pkg.shecan.ir)
> Mirror of the MX Linux repositories on mxrepo.com (/mx/repo/ and /mx/testrepo/ with dists//) for apt on MX 21, 23 and 25. The Debian base comes from mirror-debian.
- Upstream: mxrepo.com
- Mirror URL:
- Clients: apt
- Service status: (key `mx`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the MX signature (mx-archive-keyring).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, MX Linux 23 and 25 (linux) (checked by hand)
```sh
sudo cp -a /etc/apt/sources.list.d /etc/apt/sources.list.d.bak
sudo sed -i -E 's#https?://[^ ]+/mx/(repo|testrepo)/?#https://mirror-mx.pkg.shecan.ir/mx/\1/#; s#https?://(deb|security)\.debian\.org/#https://mirror-debian.pkg.shecan.ir/#' /etc/apt/sources.list.d/*.list
sudo apt update
```
Undo / restore the default, MX Linux 23 and 25 (linux)
```sh
sudo rm -rf /etc/apt/sources.list.d
sudo mv /etc/apt/sources.list.d.bak /etc/apt/sources.list.d
```
## Parrot OS mirror (pkg.shecan.ir)
> Mirror of the Parrot OS repository (deb.parrot.sh/parrot, fetched from deb.parrot.sh/direct/parrot) with every suite (echo, lory, -security, -updates, -backports) for apt.
- Upstream: deb.parrot.sh
- Mirror URL:
- Clients: apt
- Service status: (key `parrot`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the Parrot signature.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Parrot OS (linux)
```sh
sudo cp /etc/apt/sources.list.d/parrot.list /etc/apt/sources.list.d/parrot.list.bak
sudo sed -i -E 's#https?://deb\.parrot\.sh/(direct/)?parrot/?#https://mirror-parrot.pkg.shecan.ir/parrot/#' /etc/apt/sources.list.d/parrot.list
sudo apt update
```
Undo / restore the default, Parrot OS (linux)
```sh
sudo mv /etc/apt/sources.list.d/parrot.list.bak /etc/apt/sources.list.d/parrot.list
```
## deepin mirror (pkg.shecan.ir)
> Mirror of community-packages.deepin.com: /beige/ (deepin 23 beige and deepin 25 crimson) and the deepin 20 apricot repository at the root (dists/, pool/) for apt.
- Upstream: community-packages.deepin.com
- Mirror URL:
- Clients: apt
- Service status: (key `deepin`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt still verifies the deepin signature.
- The deepin app store and its separate hosts are not mirrored.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, deepin (linux)
```sh
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i -E 's#https?://community-packages\.deepin\.com/#https://mirror-deepin.pkg.shecan.ir/#' /etc/apt/sources.list
sudo apt update
```
Undo / restore the default, deepin (linux)
```sh
sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list
```
## ISO and cloud image mirror (pkg.shecan.ir)
> Install ISOs and cloud images on mirror-iso.pkg.shecan.ir under a prefix per source, upstream paths below it: /ubuntu/ (releases.ubuntu.com), /ubuntu-cdimage/ (cdimage.ubuntu.com: flavours, arm64 server), /ubuntu-cloud/ (cloud-images.ubuntu.com), /ubuntu-old/ (old-releases.ubuntu.com/releases), /debian-cd/, /debian-archive/ (cdimage.debian.org/cdimage/archive), /debian-cloud/ (cloud.debian.org/images/cloud), /archlinux/ (Arch ISOs), /kali/ (kali.download/base-images), /linuxmint/ (Linux Mint ISOs). Fedora, AlmaLinux, Rocky and CentOS ISOs are on their own mirror hosts with upstream paths; Proxmox ISOs on mirror-proxmox /iso/. Checksum and signature files come unchanged from upstream; directory listings are served.
- Upstream: releases.ubuntu.com, cdimage.ubuntu.com, cloud-images.ubuntu.com, cdimage.debian.org, geo.mirror.pkgbuild.com, kali.download, Linux Mint
- Mirror URL:
- Clients: curl
- Service status: (key `iso`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- Verify each download against the checksum file (and its signature, e.g. SHA256SUMS.gpg) as shown; the checksums come unchanged from the distribution.
- File names in the examples carry a release number; newer releases are in the same directories (browse them).
- openSUSE ISOs are not on this host.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### curl: temporary (one command or the current shell; nothing saved)
Run, Ubuntu ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/ubuntu/24.04/ubuntu-24.04.3-live-server-amd64.iso
curl -fsSL https://mirror-iso.pkg.shecan.ir/ubuntu/24.04/SHA256SUMS | sha256sum -c --ignore-missing
```
Run, Ubuntu cloud image (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/ubuntu-cloud/noble/current/noble-server-cloudimg-amd64.img
curl -fsSL https://mirror-iso.pkg.shecan.ir/ubuntu-cloud/noble/current/SHA256SUMS | sha256sum -c --ignore-missing
```
Run, Debian ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/debian-cd/current/amd64/iso-cd/debian-13.7.0-amd64-netinst.iso
curl -fsSL https://mirror-iso.pkg.shecan.ir/debian-cd/current/amd64/iso-cd/SHA256SUMS | sha256sum -c --ignore-missing
```
Run, Debian cloud image (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/debian-cloud/trixie/latest/debian-13-genericcloud-amd64.qcow2
curl -fsSL https://mirror-iso.pkg.shecan.ir/debian-cloud/trixie/latest/SHA512SUMS | sha512sum -c --ignore-missing
```
Run, Arch Linux ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/archlinux/latest/archlinux-x86_64.iso
curl -fsSL https://mirror-iso.pkg.shecan.ir/archlinux/latest/sha256sums.txt | sha256sum -c --ignore-missing
```
Run, Kali ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/kali/kali-2026.3/kali-linux-2026.3-installer-amd64.iso
curl -fsSL https://mirror-iso.pkg.shecan.ir/kali/kali-2026.3/SHA256SUMS | sha256sum -c --ignore-missing
```
Run, Linux Mint ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-iso.pkg.shecan.ir/linuxmint/stable/22.2/linuxmint-22.2-cinnamon-64bit.iso
curl -fsSL https://mirror-iso.pkg.shecan.ir/linuxmint/stable/22.2/sha256sum.txt | sha256sum -c --ignore-missing
```
Run, Fedora ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-fedora.pkg.shecan.ir/releases/43/Server/x86_64/iso/Fedora-Server-netinst-x86_64-43-1.6.iso
curl -fsSL https://mirror-fedora.pkg.shecan.ir/releases/43/Server/x86_64/iso/Fedora-Server-43-1.6-x86_64-CHECKSUM | sha256sum -c --ignore-missing
```
Run, AlmaLinux ISO (linux) (checked by hand)
```sh
curl -fLO https://mirror-almalinux.pkg.shecan.ir/9/isos/x86_64/AlmaLinux-9-latest-x86_64-boot.iso
curl -fsSL https://mirror-almalinux.pkg.shecan.ir/9/isos/x86_64/CHECKSUM | sha256sum -c --ignore-missing
```
## GitLab mirror (pkg.shecan.ir)
> Mirror of packages.gitlab.com (apt and dnf/yum repositories of gitlab-ce, gitlab-ee and gitlab-runner).
- Upstream: packages.gitlab.com
- Mirror URL:
- Clients: apt, dnf, yum
- Service status: (key `gitlab`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt and dnf still verify the official GitLab signatures.
- The install scripts (script.deb.sh, script.rpm.sh) are not served; configure the repository with the commands of this guide.
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, GitLab Runner on Ubuntu or Debian (linux)
```sh
sudo install -d /etc/apt/keyrings
sudo curl -fsSLo /etc/apt/keyrings/gitlab.asc https://mirror-gitlab.pkg.shecan.ir/gpgkey/gpg.key
. /etc/os-release
echo "deb [signed-by=/etc/apt/keyrings/gitlab.asc] https://mirror-gitlab.pkg.shecan.ir/runner/gitlab-runner/$ID $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/gitlab-runner.list
sudo apt update && sudo apt install -y gitlab-runner
```
Undo / restore the default, GitLab Runner on Ubuntu or Debian (linux)
```sh
sudo rm -f /etc/apt/sources.list.d/gitlab-runner.list
sudo apt update
```
Run, GitLab CE on Ubuntu or Debian (linux)
```sh
sudo install -d /etc/apt/keyrings
sudo curl -fsSLo /etc/apt/keyrings/gitlab.asc https://mirror-gitlab.pkg.shecan.ir/gpgkey/gpg.key
. /etc/os-release
echo "deb [signed-by=/etc/apt/keyrings/gitlab.asc] https://mirror-gitlab.pkg.shecan.ir/gitlab/gitlab-ce/$ID/$VERSION_CODENAME $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/gitlab-ce.list
sudo apt update
```
Undo / restore the default, GitLab CE on Ubuntu or Debian (linux)
```sh
sudo rm -f /etc/apt/sources.list.d/gitlab-ce.list
sudo apt update
```
Run, GitLab CE on Ubuntu or Debian (linux) (checked by hand)
```sh
sudo EXTERNAL_URL="https://gitlab.example.com" apt install -y gitlab-ce
```
#### dnf, yum: persistent (user- or system-wide configuration)
Configuration file, GitLab CE on EL 9 (linux): `/etc/yum.repos.d/gitlab_gitlab-ce.repo`
```ini
[gitlab_gitlab-ce]
name=gitlab_gitlab-ce
baseurl=https://mirror-gitlab.pkg.shecan.ir/gitlab/gitlab-ce/el/9/$basearch
repo_gpgcheck=1
gpgcheck=1
enabled=1
gpgkey=https://mirror-gitlab.pkg.shecan.ir/gpgkey/gpg.key
https://mirror-gitlab.pkg.shecan.ir/gpgkey/gitlab/3D645A26AB9FBD22.pub.gpg
https://mirror-gitlab.pkg.shecan.ir/gpgkey/gitlab/CB947AD886C8E8FD.pub.gpg
metadata_expire=300
```
Undo / restore the default, GitLab CE on EL 9 (linux)
```sh
sudo rm -f /etc/yum.repos.d/gitlab_gitlab-ce.repo
sudo dnf clean all
```
Configuration file, GitLab Runner on EL 9 (linux): `/etc/yum.repos.d/runner_gitlab-runner.repo`
```ini
[runner_gitlab-runner]
name=runner_gitlab-runner
baseurl=https://mirror-gitlab.pkg.shecan.ir/runner/gitlab-runner/el/9/$basearch
repo_gpgcheck=1
gpgcheck=1
enabled=1
gpgkey=https://mirror-gitlab.pkg.shecan.ir/gpgkey/gpg.key
https://mirror-gitlab.pkg.shecan.ir/gpgkey/runner/49F16C5CC3A0F81F.pub.gpg
https://mirror-gitlab.pkg.shecan.ir/gpgkey/runner/4C80FB51394521E9.pub.gpg
metadata_expire=300
```
Undo / restore the default, GitLab Runner on EL 9 (linux)
```sh
sudo rm -f /etc/yum.repos.d/runner_gitlab-runner.repo
sudo dnf clean all
```
## Docker CE mirror (pkg.shecan.ir)
> Mirror of download.docker.com/linux (apt and dnf repositories of Docker CE, containerd, Buildx and Compose plugins). For images use the Docker Hub mirror.
- Upstream: download.docker.com
- Mirror URL:
- Clients: apt, dnf
- Service status: (key `docker-ce`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
### Limitations
- apt and dnf still verify Docker's signature.
- This mirror installs Docker Engine; images are pulled through the separate Docker Hub mirror (mirror-docker.pkg.shecan.ir).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Ubuntu or Debian (linux)
```sh
sudo install -m 0755 -d /etc/apt/keyrings
. /etc/os-release
sudo curl -fsSLo /etc/apt/keyrings/docker.asc https://mirror-docker-ce.pkg.shecan.ir/$ID/gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirror-docker-ce.pkg.shecan.ir/$ID $VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```
Undo / restore the default, Ubuntu or Debian (linux)
```sh
sudo rm -f /etc/apt/sources.list.d/docker.list /etc/apt/keyrings/docker.asc
sudo apt update
```
#### dnf: persistent (user- or system-wide configuration)
Run, EL 8/9/10 (linux)
```sh
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://mirror-docker-ce.pkg.shecan.ir/centos/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```
Undo / restore the default, EL 8/9/10 (linux)
```sh
sudo rm -f /etc/yum.repos.d/docker-ce.repo
sudo dnf clean all
```
Run, Fedora 41+ (linux)
```sh
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager addrepo --from-repofile=https://mirror-docker-ce.pkg.shecan.ir/fedora/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```
Undo / restore the default, Fedora 41+ (linux)
```sh
sudo rm -f /etc/yum.repos.d/docker-ce.repo
sudo dnf clean all
```
## kubectl / kubeadm / Helm mirror (pkg.shecan.ir)
> Mirror of the Kubernetes package repositories (pkgs.k8s.io core stable and prerelease, apt and dnf), the release binaries on dl.k8s.io (kubectl, kubeadm, kubelet, kubectl-convert with checksums, stable.txt) and Helm releases from get.helm.sh. Container images (registry.k8s.io) are the separate mirror k8s (mirror-k8s.pkg.shecan.ir).
- Upstream: pkgs.k8s.io, dl.k8s.io, get.helm.sh
- Mirror URLs: , ,
- Clients: apt, dnf, curl
- Service status: (key `kubernetes`; up/down, refreshed every minute)
- Guide (Persian, HTML):
- JSON:
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `k8s`, mirror `shecan`):
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `helm`, mirror `shecan`):
### Limitations
- Each Kubernetes minor version has its own repository (core:/stable:/v1.37/...); change the version in the commands.
- apt and dnf still verify the repository signature; check binaries against the published sha256 as shown.
- Only kubectl, kubeadm, kubelet and kubectl-convert binaries; release tarballs (kubernetes-server-*.tar.gz) and CRI-O packages are not served.
- Helm is served at /helm/ (get.helm.sh/ = mirror-kubernetes.pkg.shecan.ir/helm/); the get-helm installer script and chart repositories are not mirrored.
- Images pulled by kubeadm and the cluster come from registry.k8s.io: configure containerd with the k8s mirror (mirror-k8s.pkg.shecan.ir).
### Setup
Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.
#### apt: persistent (user- or system-wide configuration)
Run, Ubuntu or Debian (linux)
```sh
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://mirror-kubernetes.pkg.shecan.ir/core:/stable:/v1.37/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://mirror-kubernetes.pkg.shecan.ir/core:/stable:/v1.37/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt update
sudo apt install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl
```
Undo / restore the default, Ubuntu or Debian (linux)
```sh
sudo rm -f /etc/apt/sources.list.d/kubernetes.list /etc/apt/keyrings/kubernetes-apt-keyring.gpg
sudo apt update
```
#### dnf: persistent (user- or system-wide configuration)
Run, EL 8/9/10 or Fedora (linux)
```sh
cat <<'EOF' | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirror-kubernetes.pkg.shecan.ir/core:/stable:/v1.37/rpm/
enabled=1
gpgcheck=1
gpgkey=https://mirror-kubernetes.pkg.shecan.ir/core:/stable:/v1.37/rpm/repodata/repomd.xml.key
exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
EOF
sudo dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
```
Undo / restore the default, EL 8/9/10 or Fedora (linux)
```sh
sudo rm -f /etc/yum.repos.d/kubernetes.repo
sudo dnf clean all
```
#### curl: persistent (user- or system-wide configuration)
Run, kubectl binary (linux)
```sh
V=$(curl -fsSL https://mirror-kubernetes.pkg.shecan.ir/release/stable.txt)
curl -fLO "https://mirror-kubernetes.pkg.shecan.ir/release/$V/bin/linux/amd64/kubectl"
echo "$(curl -fsSL https://mirror-kubernetes.pkg.shecan.ir/release/$V/bin/linux/amd64/kubectl.sha256) kubectl" | sha256sum -c
sudo install -m 0755 kubectl /usr/local/bin/kubectl
```
Run, Helm binary (linux)
```sh
curl -fLO https://mirror-kubernetes.pkg.shecan.ir/helm/helm-v4.3.1-linux-amd64.tar.gz
curl -fsSL https://mirror-kubernetes.pkg.shecan.ir/helm/helm-v4.3.1-linux-amd64.tar.gz.sha256sum | sha256sum -c
tar -xzf helm-v4.3.1-linux-amd64.tar.gz
sudo install -m 0755 linux-amd64/helm /usr/local/bin/helm
```
## PostgreSQL mirror (pkg.shecan.ir)
> Mirror of the PostgreSQL Global Development Group repositories: apt.postgresql.org (Debian/Ubuntu) and download.postgresql.org yum (RHEL-compatible).
- Upstream: apt.postgresql.org, download.postgresql.org
- Mirror URLs: ,
- Clients: apt, dnf, yum
- Service status: (key `postgresql`; up/down, refreshed every minute)
- Guide (Persian, HTML):