27 lines
715 B
Bash
Executable File
27 lines
715 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
# EPEL & other repos
|
|
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
|
yum config-manager --enable PowerTools AppStream BaseOS *epel
|
|
|
|
# Node repo
|
|
echo "Setting up the NodeJS repo..."
|
|
curl -sL https://rpm.nodesource.com/setup_12.x | bash -
|
|
|
|
# Yarn repo
|
|
echo "Setting up the Yarn repo..."
|
|
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
|
|
|
|
# Install pre-reqs
|
|
echo "Installing build pre-requisites..."
|
|
yum groupinstall -y "Development Tools"
|
|
yum install -y fakeroot qt5-qtbase-devel libpq-devel python3-devel python3-sphinx nodejs yarn
|
|
|
|
|
|
|