/ bootstrap / _rpm_common.sh
_rpm_common.sh
 1  #!/bin/sh
 2  
 3  # Tested with:
 4  #   - Fedora 22 (x64)
 5  #   - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
 6  
 7  if type yum 2>/dev/null
 8  then
 9    tool=yum
10  elif type dnf 2>/dev/null
11  then
12    tool=dnf
13  else
14    echo "Neither yum nor dnf found. Aborting bootstrap!"
15    exit 1
16  fi
17  
18  # "git-core" seems to be an alias for "git" in CentOS 7 (yum search fails)
19  $tool install -y \
20    git-core \
21    python \
22    python-devel \
23    python-virtualenv \
24    python-devel \
25    gcc \
26    dialog \
27    augeas-libs \
28    openssl-devel \
29    libffi-devel \
30    ca-certificates \