Skip to content

Instantly share code, notes, and snippets.

@parsibox
Created September 21, 2024 14:47
Show Gist options
  • Save parsibox/2fe22f2b0ed2bd8f29678e1d1a7b3b34 to your computer and use it in GitHub Desktop.
Save parsibox/2fe22f2b0ed2bd8f29678e1d1a7b3b34 to your computer and use it in GitHub Desktop.
centos 7 repo
# 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
@parsibox
Copy link
Author

sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo
sudo yum upgrade -y

@parsibox
Copy link
Author

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

@parsibox
Copy link
Author

@parsibox
Copy link
Author

parsibox commented Jan 8, 2025

@parsibox
Copy link
Author

@parsibox
Copy link
Author

@parsibox
Copy link
Author

parsibox commented Mar 3, 2025

@parsibox
Copy link
Author

parsibox commented Mar 4, 2025

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