summaryrefslogtreecommitdiff
path: root/prep_for_ybd.sh
blob: 28e7ad86c006772c562fc3f074214bc92f0dc774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Script to set up yum-y or apt-y machine for ybd use

if [ -x /usr/bin/apt ]; then
    apt-get install -y make automake gcc g++ linux-headers-$(uname -r) git gawk python-pip
elif [ -x /usr/bin/yum ]; then
    yum install -y make automake gcc gcc-c++ kernel-devel git gawk python-pip
else
    echo "Unsuported package manager, try apt or yum."
    exit 1
fi

pip install pyyaml sandboxlib jsonschema requests