# 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): - JSON: ### Limitations - apt and dnf still verify the PGDG 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) Run, Ubuntu or Debian (linux) ```sh sudo install -d /usr/share/postgresql-common/pgdg sudo curl -fsSLo /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://mirror-postgresql.pkg.shecan.ir/apt/ACCC4CF8.asc . /etc/os-release echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://mirror-postgresql.pkg.shecan.ir/apt $VERSION_CODENAME-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list sudo apt update && sudo apt install -y postgresql-17 ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/pgdg.list /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file, EL 9 (linux): `/etc/yum.repos.d/pgdg.repo` ```ini [pgdg17] name=PostgreSQL 17 - $basearch baseurl=https://mirror-postgresql.pkg.shecan.ir/yum/17/redhat/rhel-9-$basearch enabled=1 gpgcheck=1 gpgkey=https://mirror-postgresql.pkg.shecan.ir/yum/keys/PGDG-RPM-GPG-KEY-RHEL [pgdg-common] name=PostgreSQL common RPMs - $basearch baseurl=https://mirror-postgresql.pkg.shecan.ir/yum/common/redhat/rhel-9-$basearch enabled=1 gpgcheck=1 gpgkey=https://mirror-postgresql.pkg.shecan.ir/yum/keys/PGDG-RPM-GPG-KEY-RHEL ``` Undo / restore the default, EL 9 (linux) ```sh sudo rm -f /etc/yum.repos.d/pgdg.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run, EL 9 (linux) (checked by hand) ```sh sudo dnf -qy module disable postgresql sudo dnf install -y postgresql17-server ``` ## VS Code mirror (pkg.shecan.ir) > Mirror of the VS Code repositories on packages.microsoft.com (repos/code for apt, yumrepos/vscode for dnf). - Upstream: packages.microsoft.com - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `vscode`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Only the VS Code repositories are mirrored, not other packages.microsoft.com repositories. - Extensions (Marketplace) and the Windows/macOS installers 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, Ubuntu or Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/microsoft.asc https://mirror-vscode.pkg.shecan.ir/keys/microsoft.asc echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/microsoft.asc] https://mirror-vscode.pkg.shecan.ir/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list sudo apt update && sudo apt install -y code ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/vscode.list sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/vscode.repo` ```ini [code] name=Visual Studio Code baseurl=https://mirror-vscode.pkg.shecan.ir/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://mirror-vscode.pkg.shecan.ir/keys/microsoft.asc ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/vscode.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y code ``` ## Microsoft (.NET, PowerShell) mirror (pkg.shecan.ir) > Mirror of the Microsoft production repositories on packages.microsoft.com for apt and dnf (PowerShell, .NET, Azure CLI, Azure Functions Core Tools, mssql-tools, msodbcsql, SQL Server), at the same paths: //prod, //mssql-server-*, repos/azure-cli, keys/, config/. - Upstream: packages.microsoft.com - Mirror URL: - Clients: apt, dnf - Service status: (key `pmc`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify Microsoft's signature. - packages-microsoft-prod.deb is not served: it would point apt back at packages.microsoft.com. Add the key and the source as shown instead. - Ubuntu 24.04 and newer get .NET from Ubuntu's own archive (dotnet-sdk-8.0 through the Ubuntu mirror); Microsoft's repository for those releases has PowerShell, SQL tools and Azure tools but no .NET SDK. - VS Code has its own mirror (mirror-vscode.pkg.shecan.ir); other packages.microsoft.com repositories (Edge, Teams, ...) 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, Ubuntu or Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/microsoft.asc https://mirror-pmc.pkg.shecan.ir/keys/microsoft.asc . /etc/os-release echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.asc] https://mirror-pmc.pkg.shecan.ir/$ID/$VERSION_ID/prod $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/microsoft-prod.list sudo apt update && sudo apt install -y powershell ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list sudo apt update ``` Run, Debian, .NET SDK (linux) ```sh sudo apt install -y dotnet-sdk-8.0 ``` Run, Azure CLI (linux) ```sh . /etc/os-release echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.asc] https://mirror-pmc.pkg.shecan.ir/repos/azure-cli/ $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/azure-cli.list sudo apt update && sudo apt install -y azure-cli ``` Undo / restore the default, Azure CLI (linux) ```sh sudo rm -f /etc/apt/sources.list.d/azure-cli.list sudo apt update ``` #### dnf: persistent (user- or system-wide configuration) Run, EL 8/9/10 (linux) ```sh sudo curl -fsSLo /etc/yum.repos.d/microsoft-prod.repo https://mirror-pmc.pkg.shecan.ir/config/rhel/$(rpm -E %rhel)/prod.repo sudo dnf install -y powershell ``` Undo / restore the default, EL 8/9/10 (linux) ```sh sudo rm -f /etc/yum.repos.d/microsoft-prod.repo sudo dnf clean all ``` ## Eclipse Temurin mirror (pkg.shecan.ir) > Mirror of Eclipse Temurin (Adoptium): the apt and rpm repositories of packages.adoptium.net (temurin--jdk/-jre) at /deb/ and /rpm/, the release archives and installers of github.com/adoptium/temurin-binaries at /github/temurin-binaries/releases/download//, and api.adoptium.net's /v3/binary and /v3/installer "latest" links, whose redirects point at the mirror. - Upstream: packages.adoptium.net, api.adoptium.net, GitHub Releases (adoptium/temurin*-binaries) - Mirror URLs: , - Clients: apt, dnf, yum, curl - Service status: (key `adoptium`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify Adoptium's signature; release archives have a .sha256.txt next to them. - Only the Temurin release repositories on GitHub are served (no other GitHub content), and of api.adoptium.net only /v3/binary and /v3/installer. - Tools that resolve JDKs themselves (Gradle toolchains via foojay, SDKMAN, actions/setup-java) keep using their own download URLs. - Docker images (eclipse-temurin) come from the Docker Hub 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. #### apt: persistent (user- or system-wide configuration) Run, Ubuntu or Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/adoptium.asc https://mirror-adoptium.pkg.shecan.ir/api/gpg/key/public . /etc/os-release echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://mirror-adoptium.pkg.shecan.ir/deb $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/adoptium.list sudo apt update && sudo apt install -y temurin-21-jdk ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/adoptium.list /etc/apt/keyrings/adoptium.asc sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/adoptium.repo` ```ini [adoptium] name=Eclipse Temurin baseurl=https://mirror-adoptium.pkg.shecan.ir/rpm/rhel/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=https://mirror-adoptium.pkg.shecan.ir/api/gpg/key/public ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/adoptium.repo sudo dnf clean all ``` #### curl: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh curl -fL -o temurin-21-jdk.tar.gz https://mirror-adoptium.pkg.shecan.ir/v3/binary/latest/21/ga/linux/x64/jdk/hotspot/normal/eclipse ``` Run (linux) ```sh curl -fLO https://mirror-adoptium.pkg.shecan.ir/github/temurin21-binaries/releases/download/jdk-21.0.13%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.13_9.tar.gz curl -fLO https://mirror-adoptium.pkg.shecan.ir/github/temurin21-binaries/releases/download/jdk-21.0.13%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.13_9.tar.gz.sha256.txt sha256sum -c OpenJDK21U-jre_x64_linux_hotspot_21.0.13_9.tar.gz.sha256.txt ``` ## Elastic mirror (pkg.shecan.ir) > Mirror of the Elastic package repositories on artifacts.elastic.co (packages/.x apt and yum: Elasticsearch, Kibana, Logstash, Beats, Elastic Agent) and the signing key GPG-KEY-elasticsearch. artifacts.elastic.co refuses Iranian addresses (403). - Upstream: artifacts.elastic.co - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `elastic`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify the official Elastic signature. For version 8 replace 9.x with 8.x in the paths. - Only the apt/yum repositories (packages/.x) and the key are served; tar.gz/zip downloads (artifacts.elastic.co/downloads) and Docker images (docker.elastic.co) are not. ### 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 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/elastic.asc https://mirror-elastic.pkg.shecan.ir/GPG-KEY-elasticsearch echo "deb [signed-by=/etc/apt/keyrings/elastic.asc] https://mirror-elastic.pkg.shecan.ir/packages/9.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-9.x.list sudo apt update ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/elastic-9.x.list /etc/apt/keyrings/elastic.asc sudo apt update ``` Run, Ubuntu or Debian (linux) (checked by hand) ```sh sudo apt install -y elasticsearch ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/elastic.repo` ```ini [elastic-9.x] name=Elastic repository for 9.x packages baseurl=https://mirror-elastic.pkg.shecan.ir/packages/9.x/yum gpgcheck=1 gpgkey=https://mirror-elastic.pkg.shecan.ir/GPG-KEY-elasticsearch enabled=1 type=rpm-md ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/elastic.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y elasticsearch ``` ## MongoDB mirror (pkg.shecan.ir) > Mirror of repo.mongodb.org (apt for Ubuntu/Debian, yum for RHEL-compatible and Amazon Linux: mongodb-org, mongosh, database tools) and the signing keys of pgp.mongodb.com under /static/pgp/. repo.mongodb.org refuses Iranian addresses (403). - Upstream: repo.mongodb.org, pgp.mongodb.com - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `mongodb`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify the official MongoDB signature. The guide uses 8.0; for another version replace 8.0 in the repository path (the 8.2 repository is signed with the server-8.0 key). - MongoDB Enterprise (repo.mongodb.com), Atlas and the Compass/tarball downloads (fastdl.mongodb.org) 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, Ubuntu (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/mongodb-server-8.0.asc https://mirror-mongodb.pkg.shecan.ir/static/pgp/server-8.0.asc . /etc/os-release echo "deb [signed-by=/etc/apt/keyrings/mongodb-server-8.0.asc] https://mirror-mongodb.pkg.shecan.ir/apt/ubuntu $VERSION_CODENAME/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list sudo apt update && sudo apt install -y mongodb-org ``` Undo / restore the default, Ubuntu (linux) ```sh sudo rm -f /etc/apt/sources.list.d/mongodb-org-8.0.list /etc/apt/keyrings/mongodb-server-8.0.asc sudo apt update ``` Run, Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/mongodb-server-8.0.asc https://mirror-mongodb.pkg.shecan.ir/static/pgp/server-8.0.asc . /etc/os-release echo "deb [signed-by=/etc/apt/keyrings/mongodb-server-8.0.asc] https://mirror-mongodb.pkg.shecan.ir/apt/debian $VERSION_CODENAME/mongodb-org/8.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list sudo apt update && sudo apt install -y mongodb-org ``` Undo / restore the default, Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/mongodb-org-8.0.list /etc/apt/keyrings/mongodb-server-8.0.asc sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/mongodb-org-8.0.repo` ```ini [mongodb-org-8.0] name=MongoDB Repository baseurl=https://mirror-mongodb.pkg.shecan.ir/yum/redhat/$releasever/mongodb-org/8.0/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://mirror-mongodb.pkg.shecan.ir/static/pgp/server-8.0.asc ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/mongodb-org-8.0.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y mongodb-org ``` ## MySQL mirror (pkg.shecan.ir) > Mirror of repo.mysql.com (apt for Debian/Ubuntu, yum for EL and Fedora: MySQL Community Server 8.0/8.4 LTS/9.x, MySQL Shell, Router, connectors) and its signing keys. repo.mysql.com redirects Iranian addresses to its embargo page. - Upstream: repo.mysql.com - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `mysql`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify the MySQL signature. Use RPM-GPG-KEY-mysql-2025: the 2023 file holds the same key with an expiry date that has passed. - The apt repository has amd64 packages only (no arm64). - The release packages mysql-apt-config and mysql*-community-release are not served (they point the system at repo.mysql.com); 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, Ubuntu or Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/mysql.asc https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025 . /etc/os-release echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/mysql.asc] https://mirror-mysql.pkg.shecan.ir/apt/$ID $VERSION_CODENAME mysql-8.4-lts mysql-tools" | sudo tee /etc/apt/sources.list.d/mysql.list sudo apt update && sudo apt install -y mysql-server ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/mysql.list /etc/apt/keyrings/mysql.asc sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/mysql-community.repo` ```ini [mysql-8.4-lts-community] name=MySQL 8.4 LTS Community Server baseurl=https://mirror-mysql.pkg.shecan.ir/yum/mysql-8.4-community/el/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025 [mysql-tools-8.4-lts-community] name=MySQL Tools 8.4 LTS Community baseurl=https://mirror-mysql.pkg.shecan.ir/yum/mysql-tools-8.4-community/el/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025 ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/mysql-community.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y mysql-community-server ``` ## Google Cloud CLI mirror (pkg.shecan.ir) > Mirror of the Google Cloud CLI repositories on packages.cloud.google.com (apt suite cloud-sdk, yum repositories cloud-sdk-el-: google-cloud-cli, its components and kubectl) and their keys. packages.cloud.google.com refuses Iranian addresses (403). - Upstream: packages.cloud.google.com - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `gcloud`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify Google's signature. - Only the cloud-sdk repositories are mirrored, not the other repositories on packages.cloud.google.com (gcsfuse, legacy Kubernetes). - The mirror installs the CLI; using Google Cloud itself from Iran is still subject to Google's restrictions. ### 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 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/cloud.google.asc https://mirror-gcloud.pkg.shecan.ir/apt/doc/apt-key.gpg echo "deb [signed-by=/etc/apt/keyrings/cloud.google.asc] https://mirror-gcloud.pkg.shecan.ir/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list sudo apt update && sudo apt install -y google-cloud-cli ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/google-cloud-sdk.list /etc/apt/keyrings/cloud.google.asc sudo apt update ``` Run, Ubuntu or Debian (linux) ```sh sudo apt install -y google-cloud-cli-gke-gcloud-auth-plugin ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/google-cloud-sdk.repo` ```ini [google-cloud-cli] name=Google Cloud CLI baseurl=https://mirror-gcloud.pkg.shecan.ir/yum/repos/cloud-sdk-el9-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://mirror-gcloud.pkg.shecan.ir/yum/doc/rpm-package-key.gpg ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/google-cloud-sdk.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y google-cloud-cli ``` ## NVIDIA mirror (pkg.shecan.ir) > Mirror of the NVIDIA CUDA network repositories (developer.download.nvidia.com/compute/cuda/repos///, apt and dnf: drivers, CUDA toolkit, cuDNN, NCCL) and of the NVIDIA Container Toolkit repository (nvidia.github.io/libnvidia-container, under /libnvidia-container/). developer.download.nvidia.com intermittently refuses Iranian addresses (403). - Upstream: developer.download.nvidia.com, nvidia.github.io - Mirror URLs: , - Clients: apt, dnf - Service status: (key `nvidia`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify NVIDIA's signatures. The .repo and .list files served by the mirror name the mirror. - Do not install the cuda-keyring package: it adds a source list pointing at developer.download.nvidia.com. The guide only takes the key from it. - Local installers (.run, local .deb/.rpm repositories) and other developer.download.nvidia.com paths are not mirrored. CUDA packages are large; the shared vendor cache keeps only recently used files. ### 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, Container Toolkit on Ubuntu or Debian (linux) ```sh sudo install -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/nvidia-container-toolkit.asc https://mirror-nvidia.pkg.shecan.ir/libnvidia-container/gpgkey echo "deb [signed-by=/etc/apt/keyrings/nvidia-container-toolkit.asc] https://mirror-nvidia.pkg.shecan.ir/libnvidia-container/stable/deb/$(dpkg --print-architecture) /" | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list sudo apt update && sudo apt install -y nvidia-container-toolkit ``` Undo / restore the default, Container Toolkit on Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/nvidia-container-toolkit.list /etc/apt/keyrings/nvidia-container-toolkit.asc sudo apt update ``` Run, CUDA on Ubuntu or Debian (linux) ```sh . /etc/os-release DIST=$ID$(echo "$VERSION_ID" | tr -d .) curl -fsSLo /tmp/cuda-keyring.deb https://mirror-nvidia.pkg.shecan.ir/compute/cuda/repos/$DIST/x86_64/cuda-keyring_1.1-1_all.deb dpkg-deb -x /tmp/cuda-keyring.deb /tmp/cuda-keyring sudo install -m 0644 /tmp/cuda-keyring/usr/share/keyrings/cuda-archive-keyring.gpg /usr/share/keyrings/ echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://mirror-nvidia.pkg.shecan.ir/compute/cuda/repos/$DIST/x86_64/ /" | sudo tee /etc/apt/sources.list.d/cuda.list sudo apt update ``` Undo / restore the default, CUDA on Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/cuda.list /usr/share/keyrings/cuda-archive-keyring.gpg sudo apt update ``` Run, CUDA on Ubuntu or Debian (linux) (checked by hand) ```sh sudo apt install -y cuda-toolkit sudo apt install -y nvidia-open ``` #### dnf: persistent (user- or system-wide configuration) Run, Container Toolkit on EL or Fedora (linux) ```sh sudo curl -fsSLo /etc/yum.repos.d/nvidia-container-toolkit.repo https://mirror-nvidia.pkg.shecan.ir/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo sudo dnf install -y nvidia-container-toolkit ``` Undo / restore the default, Container Toolkit on EL or Fedora (linux) ```sh sudo rm -f /etc/yum.repos.d/nvidia-container-toolkit.repo sudo dnf clean all ``` Run, CUDA on EL 9 (linux) ```sh sudo curl -fsSLo /etc/yum.repos.d/cuda-rhel9.repo https://mirror-nvidia.pkg.shecan.ir/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo ``` Undo / restore the default, CUDA on EL 9 (linux) ```sh sudo rm -f /etc/yum.repos.d/cuda-rhel9.repo sudo dnf clean all ``` Run, CUDA on EL 9 (linux) (checked by hand) ```sh sudo dnf install -y cuda-toolkit sudo dnf install -y nvidia-open ``` ## Trivy mirror (pkg.shecan.ir) > Mirror of the Trivy package repositories (aquasecurity.github.io/trivy-repo: apt at /deb, suite generic; rpm at /rpm/releases/) for installing Trivy. The vulnerability database (ghcr.io/aquasecurity/trivy-db) and the Java index database are OCI artifacts pulled through the GHCR mirror with --db-repository / --java-db-repository. - Upstream: aquasecurity.github.io/trivy-repo, ghcr.io (پایگاه‌دادهٔ آسیب‌پذیری‌ها) - Mirror URLs: , - Clients: apt, dnf, yum, trivy - Service status: (key `trivy`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify Aqua Security's signature. - The database repositories must be pointed at mirror-ghcr.pkg.shecan.ir (flags, TRIVY_DB_REPOSITORY/TRIVY_JAVA_DB_REPOSITORY or trivy.yaml); the checks bundle (ghcr.io/aquasecurity/trivy-checks) works the same way with --checks-bundle-repository. - GitHub release binaries, the install script and the Homebrew formula 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 (linux) ```sh sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/trivy.asc https://mirror-trivy.pkg.shecan.ir/deb/public.key echo "deb [signed-by=/etc/apt/keyrings/trivy.asc] https://mirror-trivy.pkg.shecan.ir/deb generic main" | sudo tee /etc/apt/sources.list.d/trivy.list sudo apt update && sudo apt install -y trivy ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/trivy.repo` ```ini [trivy] name=Trivy repository baseurl=https://mirror-trivy.pkg.shecan.ir/rpm/releases/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://mirror-trivy.pkg.shecan.ir/rpm/public.key ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y trivy ``` #### trivy: persistent (user- or system-wide configuration) Configuration file: `~/.trivy.yaml` ``` db: repository: mirror-ghcr.pkg.shecan.ir/aquasecurity/trivy-db:2 java-repository: mirror-ghcr.pkg.shecan.ir/aquasecurity/trivy-java-db:1 ``` Undo / restore the default ```sh mv ~/.trivy.yaml ~/.trivy.yaml.shecan-off ``` #### trivy: temporary (one command or the current shell; nothing saved) Example (checked by hand) ```sh trivy image --db-repository mirror-ghcr.pkg.shecan.ir/aquasecurity/trivy-db:2 --java-db-repository mirror-ghcr.pkg.shecan.ir/aquasecurity/trivy-java-db:1 mirror-docker.pkg.shecan.ir/library/alpine:3.20 ``` ## Zabbix mirror (pkg.shecan.ir) > Mirror of repo.zabbix.com with its paths: /zabbix// (apt for Ubuntu, Debian (arm64: ubuntu-arm64, debian-arm64) and Raspberry Pi OS; rpm for RHEL, AlmaLinux, Rocky, Oracle, Amazon Linux and SLES), /zabbix-tools, /zabbix-agent2-plugins, /non-supported and the signing keys at the root (zabbix-official-repo.key, RPM-GPG-KEY-ZABBIX-*). - Upstream: repo.zabbix.com - Mirror URL: - Clients: apt, dnf, yum - Service status: (key `zabbix`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt and dnf still verify Zabbix's signature. The guide installs 7.0 LTS; 7.4 and 8.0 live under /zabbix//stable/ and /zabbix/8.0/release/ (replace the path, the key is the same). - The zabbix-release packages are not used: their source files name repo.zabbix.com. Write the source file as shown 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. #### apt: persistent (user- or system-wide configuration) Run, Ubuntu or Debian (linux) ```sh sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/zabbix.asc https://mirror-zabbix.pkg.shecan.ir/zabbix-official-repo.key . /etc/os-release [ "$(dpkg --print-architecture)" = arm64 ] && arch=-arm64 || arch= echo "deb [signed-by=/etc/apt/keyrings/zabbix.asc] https://mirror-zabbix.pkg.shecan.ir/zabbix/7.0/$ID$arch $VERSION_CODENAME main deb [signed-by=/etc/apt/keyrings/zabbix.asc] https://mirror-zabbix.pkg.shecan.ir/zabbix-tools/debian-ubuntu $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/zabbix.list sudo apt update && sudo apt install -y zabbix-agent2 ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/zabbix.list /etc/apt/keyrings/zabbix.asc sudo apt update ``` Run, Debian (linux) ```sh sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/zabbix.asc https://mirror-zabbix.pkg.shecan.ir/zabbix-official-repo.key . /etc/os-release [ "$(dpkg --print-architecture)" = arm64 ] && arch=-arm64 || arch= echo "deb [signed-by=/etc/apt/keyrings/zabbix.asc] https://mirror-zabbix.pkg.shecan.ir/zabbix/7.0/$ID$arch $VERSION_CODENAME main deb [signed-by=/etc/apt/keyrings/zabbix.asc] https://mirror-zabbix.pkg.shecan.ir/zabbix-tools/debian-ubuntu $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/zabbix.list sudo apt update && sudo apt install -y zabbix-agent2 ``` Undo / restore the default, Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/zabbix.list /etc/apt/keyrings/zabbix.asc sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/zabbix.repo` ```ini [zabbix] name=Zabbix Official Repository - $basearch baseurl=https://mirror-zabbix.pkg.shecan.ir/zabbix/7.0/rhel/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://mirror-zabbix.pkg.shecan.ir/RPM-GPG-KEY-ZABBIX-B5333005 [zabbix-tools] name=Zabbix Official Repository (tools) - $basearch baseurl=https://mirror-zabbix.pkg.shecan.ir/zabbix-tools/rhel/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://mirror-zabbix.pkg.shecan.ir/RPM-GPG-KEY-ZABBIX-TOOLS ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/zabbix.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y zabbix-agent2 ``` ## Waydroid mirror (pkg.shecan.ir) > Mirror of the Waydroid apt repository (repo.waydro.id) for Ubuntu, Debian and their derivatives: the signed metadata and packages under /dists// and the signing key /waydroid.gpg. - Upstream: repo.waydro.id - Mirror URL: - Clients: apt - Service status: (key `waydroid`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - apt still verifies the repository signature. - Only the packages: the Android system and vendor images that waydroid init downloads (ota.waydro.id, SourceForge) are not mirrored, and Waydroid needs a kernel with the binder module and a Wayland session to run. ### 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) ```sh sudo curl -fsSLo /usr/share/keyrings/waydroid.gpg https://mirror-waydroid.pkg.shecan.ir/waydroid.gpg . /etc/os-release echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://mirror-waydroid.pkg.shecan.ir/ $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/waydroid.list sudo apt update && sudo apt install -y waydroid ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/apt/sources.list.d/waydroid.list /usr/share/keyrings/waydroid.gpg sudo apt update ``` ## Proxmox mirror (pkg.shecan.ir) > Mirror of download.proxmox.com with its paths: the no-subscription and test apt repositories under /debian//dists// (pve, pbs, pbs-client, pmg, pdm, ceph-squid, ceph-reef, ceph-quincy, ...; packages inside dists/, no pool), the keys /debian/proxmox-release-.gpg and /debian/proxmox-archive-keyring-trixie.gpg, the LXC templates under /images/system/ (with aplinfo-pve-.dat) and the installer ISOs under /iso/ (directory listings of /iso/ and /images/system/ are served). - Upstream: download.proxmox.com - Mirror URLs: , , - Clients: apt, curl - Service status: (key `proxmox`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Only the no-subscription and test repositories: the enterprise repositories (enterprise.proxmox.com) need a subscription key and are not mirrored. Disable them on hosts without a subscription. - apt still verifies Proxmox's signature. pveam (the template tool) always downloads from download.proxmox.com; download templates from /images/system/ into /var/lib/vz/template/cache/ instead. - Proxmox VE and Backup Server hosts also need their Debian repositories; use the Debian mirror (mirror-debian.pkg.shecan.ir) for those. ### 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, Proxmox VE 9 (linux) (checked by hand) ```sh cat > /etc/apt/sources.list.d/proxmox.sources <<'EOF' Types: deb URIs: https://mirror-proxmox.pkg.shecan.ir/debian/pve Suites: trixie Components: pve-no-subscription Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg EOF cat > /etc/apt/sources.list.d/ceph.sources <<'EOF' Types: deb URIs: https://mirror-proxmox.pkg.shecan.ir/debian/ceph-squid Suites: trixie Components: no-subscription Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg EOF apt update && apt full-upgrade ``` Run, Proxmox VE 8 (linux) (checked by hand) ```sh echo "deb https://mirror-proxmox.pkg.shecan.ir/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list echo "deb https://mirror-proxmox.pkg.shecan.ir/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list apt update && apt full-upgrade ``` Run, Proxmox Backup Server 4 (linux) (checked by hand) ```sh cat > /etc/apt/sources.list.d/proxmox.sources <<'EOF' Types: deb URIs: https://mirror-proxmox.pkg.shecan.ir/debian/pbs Suites: trixie Components: pbs-no-subscription Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg EOF apt update && apt full-upgrade ``` Run, Debian 13 (linux) ```sh sudo curl -fsSLo /usr/share/keyrings/proxmox-archive-keyring.gpg https://mirror-proxmox.pkg.shecan.ir/debian/proxmox-archive-keyring-trixie.gpg echo "Types: deb URIs: https://mirror-proxmox.pkg.shecan.ir/debian/pbs-client Suites: trixie Components: main Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/pbs-client.sources sudo apt update && sudo apt install -y proxmox-backup-client ``` Undo / restore the default, Debian 13 (linux) ```sh sudo rm -f /etc/apt/sources.list.d/pbs-client.sources /usr/share/keyrings/proxmox-archive-keyring.gpg sudo apt update ``` #### curl: persistent (user- or system-wide configuration) Run, LXC template (linux) (checked by hand) ```sh cd /var/lib/vz/template/cache curl -fLO https://mirror-proxmox.pkg.shecan.ir/images/system/debian-13-standard_13.6-1_amd64.tar.zst ``` #### curl: temporary (one command or the current shell; nothing saved) Run, ISO (linux) (checked by hand) ```sh curl -fLO https://mirror-proxmox.pkg.shecan.ir/iso/proxmox-ve_9.2-1.iso curl -fsSL https://mirror-proxmox.pkg.shecan.ir/iso/proxmox-ve_9.2-1.iso.sha256 | sha256sum -c ``` ## HPE mirror (pkg.shecan.ir) > Mirror of downloads.linux.hpe.com (HPE Software Delivery Repository) with its paths: /SDR/repo// (also /repo//) for the apt and rpm repositories of the Management Component Pack (mcp: ssacli, ssaducli, amsd, hponcfg, storcli; apt dists//current, rpm ///current), ilorest, sut, hpsum, sum, spp-gen* and others, and the signing keys /SDR/hpePublicKey2048_key1.pub, /SDR/hpePublicKey2048_key2.pub, /SDR/hpPublicKey2048_key1.pub (directory listings are served). - Upstream: downloads.linux.hpe.com - Mirror URLs: , - Clients: apt, dnf, yum - Service status: (key `hpe`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - The firmware packs (fwpp, fwpp-gen*) are not served: HPE gives ProLiant firmware to customers with an active warranty or support contract only. Repositories that need an HPE token (hpe-foundation, csrepo, ...) answer 401 and cannot be used through the mirror. - apt and dnf still verify HPE's signature (the three public keys; the guide installs them). The apt repositories are signed with a detached Release.gpg, not InRelease. - The Management Component Pack is for community distributions (Ubuntu, Debian, Rocky, AlmaLinux, Oracle Linux, CentOS); on Red Hat Enterprise Linux and SUSE HPE ships the same tools in the Service Pack for ProLiant. The packages are amd64 only. ### 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 apt update && sudo apt install -y curl gpg sudo install -m 0755 -d /etc/apt/keyrings for k in hpePublicKey2048_key1 hpePublicKey2048_key2 hpPublicKey2048_key1; do curl -fsSL https://mirror-hpe.pkg.shecan.ir/SDR/$k.pub done | sudo gpg --dearmor --yes -o /etc/apt/keyrings/hpe.gpg . /etc/os-release echo "deb [signed-by=/etc/apt/keyrings/hpe.gpg] https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp $VERSION_CODENAME/current non-free" | sudo tee /etc/apt/sources.list.d/hpe-mcp.list sudo apt update && sudo apt install -y ssacli ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/hpe-mcp.list /etc/apt/keyrings/hpe.gpg sudo apt update ``` Run, Debian (linux) ```sh sudo apt update && sudo apt install -y curl gpg sudo install -m 0755 -d /etc/apt/keyrings for k in hpePublicKey2048_key1 hpePublicKey2048_key2 hpPublicKey2048_key1; do curl -fsSL https://mirror-hpe.pkg.shecan.ir/SDR/$k.pub done | sudo gpg --dearmor --yes -o /etc/apt/keyrings/hpe.gpg . /etc/os-release echo "deb [signed-by=/etc/apt/keyrings/hpe.gpg] https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp $VERSION_CODENAME/current non-free" | sudo tee /etc/apt/sources.list.d/hpe-mcp.list sudo apt update && sudo apt install -y ssacli ``` Undo / restore the default, Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/hpe-mcp.list /etc/apt/keyrings/hpe.gpg sudo apt update ``` #### dnf, yum: persistent (user- or system-wide configuration) Configuration file (linux): `/etc/yum.repos.d/hpe.repo` ```ini [hpe-mcp] name=HPE Management Component Pack baseurl=https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp/rocky/$releasever/x86_64/current/ enabled=1 gpgcheck=1 gpgkey=https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key1.pub https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key2.pub [hpe-ilorest] name=HPE iLOrest baseurl=https://mirror-hpe.pkg.shecan.ir/SDR/repo/ilorest/rhel/$releasever/x86_64/current/ enabled=1 gpgcheck=1 gpgkey=https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key1.pub https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key2.pub ``` Undo / restore the default (linux) ```sh sudo rm -f /etc/yum.repos.d/hpe.repo sudo dnf clean all ``` #### dnf: persistent (user- or system-wide configuration) Run (linux) (checked by hand) ```sh sudo dnf install -y ssacli ilorest ``` ## Helm Charts mirror (pkg.shecan.ir) > Helm chart repositories: /hashicorp/ mirrors helm.releases.hashicorp.com (index.yaml with chart URLs rewritten to this host, chart .tgz and .prov files) and /bitnami/ mirrors Bitnami's index (repo.broadcom.com/bitnami-files) with its oci://registry-1.docker.io/bitnamicharts/... URLs rewritten to oci://mirror-docker.pkg.shecan.ir/bitnamicharts/..., so the charts come through the Docker Hub mirror. - Upstream: helm.releases.hashicorp.com, repo.broadcom.com (Bitnami) - Mirror URLs: , - Clients: helm - Service status: (key `helm`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Only the HashiCorp and Bitnami repositories are mirrored; other chart repositories are not. - The Bitnami index is large (about 27 MB); `helm repo add` and `helm repo update` take a few seconds the first time. Charts can also be pulled directly: helm pull oci://mirror-docker.pkg.shecan.ir/bitnamicharts/. - A chart installs the container images named in its values (Docker Hub, GHCR, ...); give the node the container registry mirrors (https://pkg.shecan.ir/setup.sh) or override the image registry. Bitnami has moved many of its images to Docker Hub namespaces such as bitnamilegacy. - The index is cached for 10 minutes: a chart version published upstream appears here after that. ### 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. #### helm: persistent (user- or system-wide configuration) Run ```sh helm repo add hashicorp https://mirror-helm.pkg.shecan.ir/hashicorp helm repo update helm search repo hashicorp/vault ``` Undo / restore the default ```sh helm repo remove hashicorp ``` Example (checked by hand) ```sh helm install vault hashicorp/vault --namespace vault --create-namespace ``` Run ```sh helm repo add bitnami https://mirror-helm.pkg.shecan.ir/bitnami helm repo update helm search repo bitnami/nginx ``` Undo / restore the default ```sh helm repo remove bitnami ``` #### helm: temporary (one command or the current shell; nothing saved) Run ```sh helm pull oci://mirror-docker.pkg.shecan.ir/bitnamicharts/nginx ``` ## Android SDK mirror (pkg.shecan.ir) > Mirror of the Android SDK repository (dl.google.com/android/repository) for the Android CLI (cmdline-tools 2026+), the legacy Java sdkmanager and Android Studio, plus the Android CLI binary itself. - Upstream: dl.google.com/android/repository - Mirror URL: - Clients: android-cli, sdkmanager, android-studio - Service status: (key `android`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - The Android CLI options --sdk_url and --sdk_index are hidden options of Android CLI 1.0; verified on 2026-10-12. - Android Studio uses the mirror as an HTTP proxy (port 80) with "Force https:// sources to be fetched using http://"; packages are still verified by their SHA-1 checksums. - Gradle dependencies (Google Maven) come from the separate Maven 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. #### android-cli: persistent (user- or system-wide configuration) Run (linux) ```sh curl -fLo commandlinetools.zip https://mirror-android.pkg.shecan.ir/android/repository/commandlinetools-linux-16111833_latest.zip mkdir -p ~/Android/Sdk/cmdline-tools && unzip -q commandlinetools.zip -d ~/Android/Sdk/cmdline-tools && mv ~/Android/Sdk/cmdline-tools/cmdline-tools ~/Android/Sdk/cmdline-tools/latest ``` Configuration file (linux) ```sh export ANDROID_CLI_DOWNLOAD_URL=https://mirror-android.pkg.shecan.ir/android/cli/latest/linux_x86_64/android-cli export PATH="$HOME/Android/Sdk/cmdline-tools/latest/bin:$PATH" android() { command android --sdk_url=https://mirror-android.pkg.shecan.ir/android/repository --sdk_index=https://mirror-android.pkg.shecan.ir/android/repository/package_list.binpb "$@"; } ``` Run (linux) ```sh android --sdk=$HOME/Android/Sdk sdk install platform-tools build-tools/35.0.0 platforms/android-35 ``` #### sdkmanager: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh export SDK_TEST_BASE_URL=https://mirror-android.pkg.shecan.ir/android/repository/ sdkmanager "platform-tools" "platforms;android-35" ``` Run, HTTP proxy mode (linux, macos) ```sh sdkmanager --no_https --proxy=http --proxy_host=mirror-android.pkg.shecan.ir --proxy_port=80 "platform-tools" ``` #### android-studio: persistent (user- or system-wide configuration) Configuration file (checked by hand) ``` Settings → Appearance & Behavior → System Settings → HTTP Proxy Manual proxy configuration → HTTP Host name: mirror-android.pkg.shecan.ir Port number: 80 Settings → Languages & Frameworks → Android SDK → SDK Update Sites ☑ Force https://... sources to be fetched using http:// ``` ## Kotlin/Native mirror (pkg.shecan.ir) > Mirror of download.jetbrains.com/kotlin/native: the Kotlin/Native toolchain dependencies (LLVM, GCC toolchain and sysroots, lldb, libffi) that the compiler downloads into ~/.konan/dependencies from dependenciesUrl in konan.properties, and the prebuilt compiler distributions under builds/ used by Kotlin Gradle plugin 1.9 and older (kotlin.native.distribution.baseDownloadUrl). - Upstream: download.jetbrains.com/kotlin/native - Mirror URL: - Clients: kotlin-native, gradle, curl - Service status: (key `jetbrains`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - From Kotlin Gradle plugin 2.0 the compiler itself is downloaded from Maven Central (kotlin-native-prebuilt); use the Maven mirror (mirror-maven.pkg.shecan.ir/central/) in the project repositories. JetBrains no longer publishes 2.2+ compilers under download.jetbrains.com/kotlin/native/builds. - The Gradle plugin has no property for the dependencies URL: edit dependenciesUrl in konan.properties of each installed compiler (~/.konan/kotlin-native-prebuilt-*/konan/konan.properties), as shown. - IDE, Toolbox App and other download.jetbrains.com files 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. #### kotlin-native: persistent (user- or system-wide configuration) Run (linux, macos) ```sh for f in ~/.konan/kotlin-native-prebuilt-*/konan/konan.properties; do sed -i.bak 's#^dependenciesUrl *=.*#dependenciesUrl = https://mirror-jetbrains.pkg.shecan.ir/kotlin/native#' "$f" done ``` #### gradle: project (files inside the project) Configuration file, Kotlin Gradle plugin 1.9 or older: `gradle.properties` (checked by hand) ```ini kotlin.native.distribution.baseDownloadUrl=https://mirror-jetbrains.pkg.shecan.ir/kotlin/native/builds ``` #### curl: temporary (one command or the current shell; nothing saved) Verify ```sh curl -fLO https://mirror-jetbrains.pkg.shecan.ir/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz ``` ## Open VSX mirror (pkg.shecan.ir) > Mirror of the Open VSX Registry (open-vsx.org), the extension gallery of VSCodium, code-server, Gitpod and other VS Code-compatible editors: the VS Code gallery API (/vscode/gallery, /vscode/asset, /vscode/unpkg; search with POST extensionquery) and the REST API (/api/), with extension files from Open VSX's storage. - Upstream: open-vsx.org - Mirror URLs: , - Clients: vscodium, code-server, curl - Service status: (key `openvsx`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Open VSX only. The Microsoft Visual Studio Marketplace is not mirrored (its terms allow it only for Microsoft's products), so this does not apply to Microsoft's VS Code. - Cursor and other editors with their own marketplace service cannot be pointed at the mirror. - itemUrl stays on open-vsx.org: it only opens the extension's web page in a browser. - Searches and "latest" metadata are cached for 10 minutes, so a just-published version can take that long to appear. ### 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. #### vscodium: persistent (user- or system-wide configuration) Configuration file: `%APPDATA%\VSCodium\product.json` or `~/.config/VSCodium/product.json` (checked by hand) ```json { "extensionsGallery": { "serviceUrl": "https://mirror-openvsx.pkg.shecan.ir/vscode/gallery", "itemUrl": "https://open-vsx.org/vscode/item", "extensionUrlTemplate": "https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest", "resourceUrlTemplate": "https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}" } } ``` #### vscodium: temporary (one command or the current shell; nothing saved) Run (linux, macos) (checked by hand) ```sh export VSCODE_GALLERY_SERVICE_URL=https://mirror-openvsx.pkg.shecan.ir/vscode/gallery export VSCODE_GALLERY_ITEM_URL=https://open-vsx.org/vscode/item export VSCODE_GALLERY_EXTENSION_URL_TEMPLATE='https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest' export VSCODE_GALLERY_RESOURCE_URL_TEMPLATE='https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}' codium --install-extension redhat.vscode-yaml ``` #### code-server: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh export EXTENSIONS_GALLERY='{"serviceUrl":"https://mirror-openvsx.pkg.shecan.ir/vscode/gallery","itemUrl":"https://open-vsx.org/vscode/item","extensionUrlTemplate":"https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest","resourceUrlTemplate":"https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}"}' code-server --install-extension rust-lang.rust-analyzer ``` #### curl: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh curl -fLo redhat.vscode-yaml.vsix "$(curl -fsSL https://mirror-openvsx.pkg.shecan.ir/api/redhat/vscode-yaml/latest | grep -o '"download":"[^"]*"' | cut -d'"' -f4)" ``` ## Node.js mirror (pkg.shecan.ir) > Mirror of nodejs.org/dist (Node.js release binaries, headers, SHASUMS) for nvm, n, nvm-windows and direct downloads. - Upstream: nodejs.org/dist - Mirror URL: - Clients: nvm, n, nvm-windows, curl - Service status: (key `nodejs`; 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 `nodejs`, mirror `shecan`): ### Limitations - npm packages come from the separate npm 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. #### nvm: persistent (user- or system-wide configuration) Run (linux, macos) (checked by hand) ```sh export NVM_NODEJS_ORG_MIRROR=https://mirror-nodejs.pkg.shecan.ir/dist nvm install --lts ``` Undo / restore the default (linux, macos) ```sh unset NVM_NODEJS_ORG_MIRROR sed -i.bak -E '/^export (NVM_NODEJS_ORG_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` #### n: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh N_NODE_MIRROR=https://mirror-nodejs.pkg.shecan.ir/dist n lts ``` #### nvm-windows: persistent (user- or system-wide configuration) Run (windows) (checked by hand) ```powershell nvm node_mirror https://mirror-nodejs.pkg.shecan.ir/dist/ ``` #### curl: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh curl -fLO https://mirror-nodejs.pkg.shecan.ir/dist/v24.21.0/node-v24.21.0-linux-x64.tar.xz ``` ## Python mirror (pkg.shecan.ir) > Mirror of www.python.org/ftp/python (sources and installers) for pyenv and direct downloads, and of python-build-standalone releases for uv python install. - Upstream: python.org/ftp, python-build-standalone - Mirror URLs: , - Clients: uv, pyenv, curl - Service status: (key `python`; 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 `python`, mirror `shecan`): ### Limitations - Python packages come from the separate PyPI 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. #### uv: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export UV_PYTHON_INSTALL_MIRROR=https://mirror-python.pkg.shecan.ir/standalone uv python install 3.13 ``` Undo / restore the default (linux, macos) ```sh unset UV_PYTHON_INSTALL_MIRROR sed -i.bak -E '/^export (UV_PYTHON_INSTALL_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` #### pyenv: persistent (user- or system-wide configuration) Run (linux, macos) (checked by hand) ```sh export PYTHON_BUILD_MIRROR_URL=https://mirror-python.pkg.shecan.ir/ftp/python export PYTHON_BUILD_MIRROR_URL_SKIP_CHECKSUM=1 pyenv install 3.13 ``` Undo / restore the default (linux, macos) ```sh unset PYTHON_BUILD_MIRROR_URL PYTHON_BUILD_MIRROR_URL_SKIP_CHECKSUM sed -i.bak -E '/^export (PYTHON_BUILD_MIRROR_URL|PYTHON_BUILD_MIRROR_URL_SKIP_CHECKSUM)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` #### curl: temporary (one command or the current shell; nothing saved) Run ```sh curl -fLO https://mirror-python.pkg.shecan.ir/ftp/python/3.14.8/python-3.14.8-amd64.exe ``` ## Go toolchain mirror (pkg.shecan.ir) > Mirror of dl.google.com/go (Go release archives, installers, source and their .sha256 files) and of the go.dev release list (/dl/?mode=json, /VERSION?m=text) for direct downloads, mise and goenv. - Upstream: dl.google.com/go, go.dev/dl - Mirror URLs: , - Clients: curl, go, mise, goenv - Service status: (key `golang`; 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 `golang`, mirror `shecan`): ### Limitations - Go modules come from the separate GOPROXY mirror (mirror-go.pkg.shecan.ir); with GOPROXY set to it, GOTOOLCHAIN downloads of other Go versions also go through that mirror. - The golang.org/dl wrappers (go1.X.Y download) and asdf-golang always download from dl.google.com; use GOTOOLCHAIN or mise instead. - mise reads the list of Go versions from mise-versions.jdx.dev (or GitHub); only the archives come 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. #### curl: temporary (one command or the current shell; nothing saved) Run (linux) ```sh V=$(curl -fsSL 'https://mirror-golang.pkg.shecan.ir/VERSION?m=text' | head -n1) curl -fLO "https://mirror-golang.pkg.shecan.ir/go/$V.linux-amd64.tar.gz" echo "$(curl -fsSL "https://mirror-golang.pkg.shecan.ir/go/$V.linux-amd64.tar.gz.sha256") $V.linux-amd64.tar.gz" | sha256sum -c ``` Verify ```sh curl -fsSL 'https://mirror-golang.pkg.shecan.ir/dl/?mode=json&include=all' ``` #### go: temporary (one command or the current shell; nothing saved) Run (linux, macos) ```sh GOPROXY=https://mirror-go.pkg.shecan.ir GOTOOLCHAIN=go1.25.3 go version ``` #### mise: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export MISE_GO_DOWNLOAD_MIRROR=https://mirror-golang.pkg.shecan.ir/go mise use -g go@1.25.3 ``` Undo / restore the default (linux, macos) ```sh unset MISE_GO_DOWNLOAD_MIRROR sed -i.bak -E '/^export (MISE_GO_DOWNLOAD_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` #### goenv: persistent (user- or system-wide configuration) Run (linux, macos) (checked by hand) ```sh export GO_BUILD_MIRROR_URL=https://mirror-golang.pkg.shecan.ir/go goenv install 1.25.3 ``` Undo / restore the default (linux, macos) ```sh unset GO_BUILD_MIRROR_URL sed -i.bak -E '/^export (GO_BUILD_MIRROR_URL)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` ## Chrome for Testing mirror (pkg.shecan.ir) > Mirror of Chrome for Testing: Chrome, chrome-headless-shell and chromedriver builds (storage.googleapis.com/chrome-for-testing-public) and the JSON version endpoints (googlechromelabs.github.io/chrome-for-testing, download URLs rewritten to the mirror) for Puppeteer, @puppeteer/browsers, Selenium Manager and direct downloads. - Upstream: storage.googleapis.com/chrome-for-testing-public, googlechromelabs.github.io - Mirror URLs: , , , - Clients: curl, puppeteer, puppeteer-browsers, selenium - Service status: (key `chrome`; 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 `chrome`, mirror `shecan`): - Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `chromedriver`, mirror `shecan`): ### Limitations - @puppeteer/browsers resolves channel and milestone names (chrome@stable, chrome@131) at googlechromelabs.github.io directly; give an exact version, or install the version pinned by Puppeteer (npx puppeteer browsers install chrome). - npx puppeteer browsers install ignores PUPPETEER_*_DOWNLOAD_BASE_URL; pass --base-url. - Firefox for Puppeteer is not mirrored. - Chromium snapshots (/chromium-browser-snapshots///) and chromedriver before 115 (/chromedriver//) are mirrored as plain downloads; list pages and chromedriver release notes are not. ### 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 ```sh curl -fsS https://mirror-chrome.pkg.shecan.ir/chromium-browser-snapshots/Linux_x64/LAST_CHANGE ``` Run (linux) ```sh curl -fLO https://mirror-chrome.pkg.shecan.ir/chromedriver/114.0.5735.90/chromedriver_linux64.zip ``` Run ```sh curl -fLO https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public/156.0.8078.47/linux64/chromedriver-linux64.zip ``` #### puppeteer: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export PUPPETEER_CHROME_DOWNLOAD_BASE_URL=https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public export PUPPETEER_CHROME_HEADLESS_SHELL_DOWNLOAD_BASE_URL=https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public npm install puppeteer ``` Undo / restore the default (linux, macos) ```sh unset PUPPETEER_CHROME_DOWNLOAD_BASE_URL PUPPETEER_CHROME_HEADLESS_SHELL_DOWNLOAD_BASE_URL sed -i.bak -E '/^export (PUPPETEER_CHROME_DOWNLOAD_BASE_URL|PUPPETEER_CHROME_HEADLESS_SHELL_DOWNLOAD_BASE_URL)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` #### puppeteer: project (files inside the project) Configuration file: `.puppeteerrc.json` ```json { "chrome": { "downloadBaseUrl": "https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public" }, "chrome-headless-shell": { "downloadBaseUrl": "https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public" } } ``` #### puppeteer: temporary (one command or the current shell; nothing saved) Run ```sh npx puppeteer browsers install chrome --base-url https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public ``` #### puppeteer-browsers: temporary (one command or the current shell; nothing saved) Run ```sh npx @puppeteer/browsers install chrome@156.0.8078.47 --base-url https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public npx @puppeteer/browsers install chromedriver@156.0.8078.47 --base-url https://mirror-chrome.pkg.shecan.ir/chrome-for-testing-public ``` #### selenium: persistent (user- or system-wide configuration) Configuration file (linux, macos) ```sh export SE_BROWSER_MIRROR_URL=https://mirror-chrome.pkg.shecan.ir/chrome-for-testing/ export SE_DRIVER_MIRROR_URL=https://mirror-chrome.pkg.shecan.ir/chrome-for-testing/ ``` Undo / restore the default (linux, macos) ```sh unset SE_BROWSER_MIRROR_URL SE_DRIVER_MIRROR_URL sed -i.bak -E '/^export (SE_BROWSER_MIRROR_URL|SE_DRIVER_MIRROR_URL)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` ## Playwright mirror (pkg.shecan.ir) > Mirror of the Playwright browser downloads (PLAYWRIGHT_DOWNLOAD_HOST): Chromium (Chrome for Testing builds), Chromium headless shell, Firefox, WebKit and FFmpeg for playwright install in Node.js, Python, Java and .NET. - Upstream: cdn.playwright.dev, playwright.download.prss.microsoft.com - Mirror URL: - Clients: playwright - Service status: (key `playwright`; 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 `playwright`, mirror `shecan`): ### Limitations - The Playwright package itself comes from the npm or PyPI mirror. - Branded channels (playwright install chrome, msedge) download from Google and Microsoft directly. - playwright install --with-deps installs system packages with apt or dnf; point those at the Linux distribution 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. #### playwright: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export PLAYWRIGHT_DOWNLOAD_HOST=https://mirror-playwright.pkg.shecan.ir npx playwright install chromium ``` Run (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('PLAYWRIGHT_DOWNLOAD_HOST', 'https://mirror-playwright.pkg.shecan.ir', 'User') ``` Undo / restore the default (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('PLAYWRIGHT_DOWNLOAD_HOST', $null, 'User') ``` Run, Playwright for Python (linux, macos) ```sh export PLAYWRIGHT_DOWNLOAD_HOST=https://mirror-playwright.pkg.shecan.ir pip install playwright playwright install firefox ``` Undo / restore the default (linux, macos) ```sh unset PLAYWRIGHT_DOWNLOAD_HOST sed -i.bak -E '/^export (PLAYWRIGHT_DOWNLOAD_HOST)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` ## Prisma engines mirror (pkg.shecan.ir) > Mirror of binaries.prisma.sh (PRISMA_ENGINES_MIRROR): the Prisma ORM engine files (schema-engine; query-engine and the Node-API library in Prisma 6 and older) with their .sha256 files, downloaded by npm install, prisma generate and prisma migrate. - Upstream: binaries.prisma.sh - Mirror URL: - Clients: prisma - Service status: (key `prisma`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - The prisma and @prisma/client packages themselves come from the npm mirror. - PRISMA_ENGINES_MIRROR must be set where the engines are downloaded: in the shell or CI job before npm install, and with ENV in a Dockerfile; Prisma does not read it from the project .env file during npm install. - Prisma Accelerate, Prisma Postgres and Prisma Studio online are cloud services and 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. #### prisma: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export PRISMA_ENGINES_MIRROR=https://mirror-prisma.pkg.shecan.ir npm install ``` Undo / restore the default (linux, macos) ```sh unset PRISMA_ENGINES_MIRROR sed -i.bak -E '/^export (PRISMA_ENGINES_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` Run (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('PRISMA_ENGINES_MIRROR', 'https://mirror-prisma.pkg.shecan.ir', 'User') ``` Undo / restore the default (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('PRISMA_ENGINES_MIRROR', $null, 'User') ``` #### prisma: project (files inside the project) Example, Dockerfile (checked by hand) ```dockerfile FROM node:22 ENV PRISMA_ENGINES_MIRROR=https://mirror-prisma.pkg.shecan.ir WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npx prisma generate ``` ## Homebrew mirror (pkg.shecan.ir) > Mirror of the Homebrew JSON API (formulae.brew.sh) and of Homebrew bottles (ghcr.io/v2/homebrew) for brew install. - Upstream: formulae.brew.sh و bottle های Homebrew - Mirror URL: - Clients: brew - Service status: (key `homebrew`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - brew update (git) and the Homebrew install script still need GitHub; set HOMEBREW_NO_AUTO_UPDATE=1. - Formulae without bottles and casks download from their vendors; brew falls back to the original URLs for anything the mirror does not serve. ### 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. #### brew: persistent (user- or system-wide configuration) Configuration file (linux, macos): `~/.zprofile` or `~/.bashrc` ```sh export HOMEBREW_API_DOMAIN=https://mirror-brew.pkg.shecan.ir/api export HOMEBREW_ARTIFACT_DOMAIN=https://mirror-brew.pkg.shecan.ir export HOMEBREW_NO_AUTO_UPDATE=1 ``` Undo / restore the default (linux, macos) ```sh unset HOMEBREW_API_DOMAIN HOMEBREW_ARTIFACT_DOMAIN HOMEBREW_NO_AUTO_UPDATE sed -i.bak -E '/^export (HOMEBREW_API_DOMAIN|HOMEBREW_ARTIFACT_DOMAIN|HOMEBREW_NO_AUTO_UPDATE)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` ## Hugging Face mirror (pkg.shecan.ir) > Mirror of the Hugging Face Hub (HF_ENDPOINT) for huggingface_hub, the hf CLI, transformers, diffusers and datasets: public models and datasets. - Upstream: huggingface.co - Mirror URL: - Clients: huggingface-hub, hf, transformers - Service status: (key `huggingface`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Public repositories only; gated and private repositories (tokens) are not supported. - Set HF_HUB_DISABLE_XET=1: Xet downloads bypass the mirror. - Files of 5 GB or more are downloaded through the mirror but not cached. - Uploads and other write operations 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. #### huggingface-hub, hf, transformers: persistent (user- or system-wide configuration) Run (linux, macos) ```sh export HF_ENDPOINT=https://mirror-hf.pkg.shecan.ir export HF_HUB_DISABLE_XET=1 ``` Undo / restore the default (linux, macos) ```sh unset HF_ENDPOINT HF_HUB_DISABLE_XET sed -i.bak -E '/^export (HF_ENDPOINT|HF_HUB_DISABLE_XET)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true ``` Run (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('HF_ENDPOINT', 'https://mirror-hf.pkg.shecan.ir', 'User') [Environment]::SetEnvironmentVariable('HF_HUB_DISABLE_XET', '1', 'User') ``` Undo / restore the default (windows) (checked by hand) ```powershell [Environment]::SetEnvironmentVariable('HF_ENDPOINT', $null, 'User') [Environment]::SetEnvironmentVariable('HF_HUB_DISABLE_XET', $null, 'User') ``` #### huggingface-hub, transformers: project (files inside the project) Example ```python import os os.environ["HF_ENDPOINT"] = "https://mirror-hf.pkg.shecan.ir" os.environ["HF_HUB_DISABLE_XET"] = "1" from huggingface_hub import hf_hub_download print(hf_hub_download("openai-community/gpt2", "config.json")) ``` ## Ollama mirror (pkg.shecan.ir) > Mirror of the Ollama model registry (registry.ollama.ai, the ollama.com library) for ollama pull; models are pulled by the mirror host name. - Upstream: registry.ollama.ai - Mirror URL: - Clients: ollama - Service status: (key `ollama`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Models are named after the mirror host (ollama pull mirror-ollama.pkg.shecan.ir/library/:); ollama cp gives them their usual short name. - Model files of 5 GB or more are downloaded through the mirror but not cached; the cache holds about 10 GiB, so large models are often fetched from upstream again. - Pull only: ollama push, ollama signin, cloud models and models from hf.co 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. #### ollama: temporary (one command or the current shell; nothing saved) Run ```sh ollama pull mirror-ollama.pkg.shecan.ir/library/qwen2.5:0.5b ollama cp mirror-ollama.pkg.shecan.ir/library/qwen2.5:0.5b qwen2.5:0.5b ``` ## Terraform mirror (pkg.shecan.ir) > Mirror for Terraform and HashiCorp tools: a provider network mirror for registry.terraform.io providers (/providers/, provider_installation network_mirror), releases.hashicorp.com (Terraform, Vault, Packer, Consul, Nomad, ... zips, SHA256SUMS and signatures) at the host root with the same paths, and the HashiCorp apt (/apt) and dnf (/rpm) repositories. - Upstream: registry.terraform.io, releases.hashicorp.com, apt.releases.hashicorp.com, rpm.releases.hashicorp.com - Mirror URLs: , , , - Clients: terraform, curl, apt, dnf - Service status: (key `hashicorp`; 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 `hashicorp`, mirror `shecan`): ### Limitations - Providers only: modules from the public Terraform registry (registry.terraform.io module sources) are not served. - Archives of hashicorp/* providers come from the mirror; third-party providers whose archives are published on GitHub releases are downloaded from GitHub directly, checked against the registry's SHA-256. - Through a network mirror Terraform records only the current platform's checksum in .terraform.lock.hcl; add other platforms with terraform providers lock -net-mirror=https://mirror-hashicorp.pkg.shecan.ir/providers/ -platform=.... - OpenTofu does not need this mirror (registry.opentofu.org and its GitHub downloads are reachable); the mirror answers for registry.opentofu.org providers too. - Read-only. HCP Terraform (app.terraform.io), api.releases.hashicorp.com and checkpoint-api.hashicorp.com are not proxied; the all-products /index.json is 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. #### terraform: persistent (user- or system-wide configuration) Configuration file (linux, macos): `~/.terraformrc` ```hcl provider_installation { network_mirror { url = "https://mirror-hashicorp.pkg.shecan.ir/providers/" include = ["registry.terraform.io/*/*"] } direct { exclude = ["registry.terraform.io/*/*"] } } ``` Undo / restore the default (linux, macos) ```sh mv ~/.terraformrc ~/.terraformrc.shecan-off ``` Configuration file (windows): `%APPDATA%\terraform.rc` (checked by hand) ```hcl provider_installation { network_mirror { url = "https://mirror-hashicorp.pkg.shecan.ir/providers/" include = ["registry.terraform.io/*/*"] } direct { exclude = ["registry.terraform.io/*/*"] } } ``` #### terraform: project (files inside the project) Run ```sh terraform providers lock -net-mirror=https://mirror-hashicorp.pkg.shecan.ir/providers/ -platform=linux_amd64 -platform=darwin_arm64 -platform=windows_amd64 ``` #### curl: persistent (user- or system-wide configuration) Run (linux) ```sh curl -fLO https://mirror-hashicorp.pkg.shecan.ir/terraform/1.17.0/terraform_1.17.0_linux_amd64.zip curl -fLO https://mirror-hashicorp.pkg.shecan.ir/terraform/1.17.0/terraform_1.17.0_SHA256SUMS sha256sum -c --ignore-missing terraform_1.17.0_SHA256SUMS unzip -o terraform_1.17.0_linux_amd64.zip terraform sudo install -m 755 terraform /usr/local/bin/terraform ``` #### apt: persistent (user- or system-wide configuration) Run, Ubuntu or Debian (linux) ```sh sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSLo /etc/apt/keyrings/hashicorp.asc https://mirror-hashicorp.pkg.shecan.ir/apt/gpg . /etc/os-release echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/hashicorp.asc] https://mirror-hashicorp.pkg.shecan.ir/apt $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/hashicorp.list sudo apt update sudo apt install -y terraform ``` Undo / restore the default, Ubuntu or Debian (linux) ```sh sudo rm -f /etc/apt/sources.list.d/hashicorp.list /etc/apt/keyrings/hashicorp.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-hashicorp.pkg.shecan.ir/rpm/RHEL/hashicorp.repo sudo dnf -y install terraform ``` Undo / restore the default, EL 8/9/10 (linux) ```sh sudo rm -f /etc/yum.repos.d/hashicorp.repo sudo dnf clean all ``` Run, Fedora 43 (linux) ```sh sudo dnf -y install dnf-plugins-core sudo dnf config-manager addrepo --from-repofile=https://mirror-hashicorp.pkg.shecan.ir/rpm/fedora/hashicorp.repo sudo dnf -y install terraform ``` Undo / restore the default, Fedora 43 (linux) ```sh sudo rm -f /etc/yum.repos.d/hashicorp.repo sudo dnf clean all ``` ## PyTorch mirror (pkg.shecan.ir) > Mirror of the official PyTorch wheel indexes (download.pytorch.org/whl/: cpu, cu126, cu128, cu130, rocm6.4, xpu, ...) for pip and uv, including the CUDA libraries from pypi.nvidia.com that the cu* indexes link to. - Upstream: download.pytorch.org, pypi.nvidia.com - Mirror URLs: , - Clients: pip, uv - Service status: (key `pytorch`; up/down, refreshed every minute) - Guide (Persian, HTML): - JSON: ### Limitations - Replace cpu in the URL with the variant shown on pytorch.org (cu126, cu128, cu130, rocm6.4, xpu, ...). - Use it together with mirror-pypi (pip --extra-index-url, uv: a default index plus an explicit PyTorch index) so that other packages come from PyPI. - Nightly and test indexes (/whl/nightly/, /whl/test/) and LibTorch archives are not mirrored. - Files of 3 GB or more (ROCm torch wheels) are downloaded through the mirror but not cached. ### 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 torch torchvision torchaudio --index-url https://mirror-pytorch.pkg.shecan.ir/whl/cpu --extra-index-url https://mirror-pypi.pkg.shecan.ir/simple/ ``` #### pip: project (files inside the project) Configuration file: `requirements.txt` ``` --index-url https://mirror-pytorch.pkg.shecan.ir/whl/cpu --extra-index-url https://mirror-pypi.pkg.shecan.ir/simple/ torch ``` #### uv: project (files inside the project) Configuration file: `pyproject.toml` ```toml [[tool.uv.index]] url = "https://mirror-pypi.pkg.shecan.ir/simple/" default = true [[tool.uv.index]] name = "pytorch-cpu" url = "https://mirror-pytorch.pkg.shecan.ir/whl/cpu" explicit = true [tool.uv.sources] torch = [{ index = "pytorch-cpu" }] ``` #### uv: temporary (one command or the current shell; nothing saved) Run ```sh uv pip install --system torch --default-index https://mirror-pypi.pkg.shecan.ir/simple/ --index https://mirror-pytorch.pkg.shecan.ir/whl/cpu ```