Debian && Ubuntu

apt update
apt install build-essential wget -y

Centos

yum install wget -y
yum groupinstall 'Development Tools' -y