Skip to content

Commit

Permalink
update dnf cache on centos (facebookincubator#302)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan authored Jun 9, 2023
1 parent cd897b1 commit 7e73041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/setup-centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ function install_velox_deps {
run_and_time install_conda
}

$SUDO dnf makecache

# dnf install dependency libraries
dnf_install epel-release dnf-plugins-core # For ccache, ninja
# PowerTools only works on CentOS8
Expand All @@ -252,6 +254,8 @@ dnf_install gettext-devel texinfo help2man
# Activate gcc9; enable errors on unset variables afterwards.
# GCC9 install via yum and devtoolset
# dnf install gcc-toolset-9 only works on CentOS8

$SUDO yum makecache
yum_install centos-release-scl
yum_install devtoolset-9
source /opt/rh/devtoolset-9/enable || exit 1
Expand Down
2 changes: 2 additions & 0 deletions scripts/setup-centos8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function dnf_install {
$SUDO dnf install -y -q --setopt=install_weak_deps=False "$@"
}

$SUDO dnf makecache

dnf_install epel-release dnf-plugins-core # For ccache, ninja
$SUDO dnf config-manager --set-enabled powertools
dnf_install ninja-build ccache gcc-toolset-9 git wget which libevent-devel \
Expand Down

0 comments on commit 7e73041

Please sign in to comment.