Created
September 21, 2024 14:47
-
-
Save parsibox/2fe22f2b0ed2bd8f29678e1d1a7b3b34 to your computer and use it in GitHub Desktop.
centos 7 repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CentOS-Base.repo | |
# | |
# The mirror system uses the connecting IP address of the client and the | |
# update status of each mirror to pick mirrors that are updated to and | |
# geographically close to the client. You should use this for CentOS updates | |
# unless you are manually picking other mirrors. | |
# | |
# If the mirrorlist= does not work for you, as a fall back you can try the | |
# remarked out baseurl= line instead. | |
# | |
# | |
[base] | |
name=CentOS-$releasever - Base | |
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra | |
baseurl=http://el7.repo.almalinux.org/centos/$releasever/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
#released updates | |
[updates] | |
name=CentOS-$releasever - Updates | |
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra | |
baseurl=http://el7.repo.almalinux.org/centos/$releasever/updates/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
#additional packages that may be useful | |
[extras] | |
name=CentOS-$releasever - Extras | |
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra | |
baseurl=http://el7.repo.almalinux.org/centos/$releasever/extras/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
#additional packages that extend functionality of existing packages | |
[centosplus] | |
name=CentOS-$releasever - Plus | |
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra | |
baseurl=http://el7.repo.almalinux.org/centos/$releasever/centosplus/$basearch/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 |
sudo echo -e "[epel-archive]\nname=Fedora EPEL 7.9 Archive\nbaseurl=https://archives.fedoraproject.org/pub/archive/epel/7.9/x86_64/\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/epel-7-archive.repo
sudo yum-config-manager --add-repo https://mirrors.vcea.wsu.edu/centos-vault/epel-7/x86_64/
disable ipv6
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
sysctl -p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo
sudo yum upgrade -y