#!/bin/bash
set -Eeuo pipefail

echo "----- install prerequisite packages -----"
yum install -y \
    bash \
    sudo \
    expect \
    which \
    python3 \
    procps \
    gcc \
    libxml2-devel \
    openssl-devel \
    libcurl-devel \
    python3-devel \
    python3-pip \
    nc \
    squid \
    jq
sudo squid -k shutdown || true
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true

