mirror of
https://github.com/ceph/ceph
synced 2025-02-18 16:37:41 +00:00
Merge pull request #3871 from dachary/wip-install-deps
tests: install-deps.sh install EPEL and RHEL Optional Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
This commit is contained in:
commit
51f5feccac
@ -54,9 +54,21 @@ CentOS|Fedora|SUSE*|RedHatEnterpriseServer)
|
||||
SUSE*)
|
||||
$SUDO zypper -y yum-utils
|
||||
;;
|
||||
*)
|
||||
Fedora)
|
||||
$SUDO yum install -y yum-utils
|
||||
;;
|
||||
CentOS|RedHatEnterpriseServer)
|
||||
$SUDO yum install -y yum-utils
|
||||
MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.)
|
||||
if test $(lsb_release -si) == RedHatEnterpriseServer ; then
|
||||
$SUDO yum install subscription-manager
|
||||
$SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
|
||||
fi
|
||||
$SUDO yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/$MAJOR_VERSION/x86_64/
|
||||
$SUDO yum install --nogpgcheck -y epel-release
|
||||
$SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
|
||||
$SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
|
||||
;;
|
||||
esac
|
||||
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
|
||||
$SUDO yum-builddep -y $DIR/ceph.spec
|
||||
|
Loading…
Reference in New Issue
Block a user