Skip to content

Commit

Permalink
Update the CentOS repo config
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Rivkin committed Jul 3, 2024
1 parent 462e63c commit 9cbe6ae
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions ci/vm/provision1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,29 @@ install_packages() {
git \
libtool &&
apt-get clean && rm -rf /var/lib/apt/lists/*

elif [[ $OS == *"centos"* ]]; then
yum install -y -q centos-release-scl
yum install -y -q \
# Update repo config to vault links
sudo sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-*.repo
sudo sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo

# Install centos-release-scl and update its repo config
sudo yum install -y -q centos-release-scl scl-utils
sudo rm -f /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
sudo sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-SCLo*.repo
sudo sed -i \
's|# baseurl=http://mirror.centos.org/centos/7/sclo/\$basearch/sclo/|\baseurl=http://vault.centos.org/centos/7/sclo/x86_64/rh/|' \
/etc/yum.repos.d/CentOS-SCLo-scl.repo

sudo yum install -y \
automake \
devtoolset-8-gcc \
devtoolset-8-gcc-c++ \
elfutils-libelf-devel \
git \
libtool \
make &&
yum clean all
sudo yum clean all
fi
}

Expand Down

0 comments on commit 9cbe6ae

Please sign in to comment.