Skip to content

Instantly share code, notes, and snippets.

@ImanMousavi
Created June 26, 2025 09:51
Show Gist options
  • Save ImanMousavi/00c3a6e20154cb693a044b262e0c97e4 to your computer and use it in GitHub Desktop.
Save ImanMousavi/00c3a6e20154cb693a044b262e0c97e4 to your computer and use it in GitHub Desktop.
Iran CentOS-Base.repo nano /etc/yum.repos.d/CentOS-Base.repo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
[base]
name=CentOS-7 - Base
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
[updates]
name=CentOS-7 - Updates
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
[extras]
name=CentOS-7 - Extras
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
[centosplus]
name=CentOS-7 - CentOSPlus
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment