#!/bin/sh # CERNify the centos7 installation # Download the CentOS-CERN.repo to ~/Downloads # Author: Lars Noehte sudo cp ~/Downloads/CentOS-CERN.repo /etc/yum.repos.d/ cd ~/Downloads wget http://linuxsoft.cern.ch/cern/centos/7/os/x86_64/RPM-GPG-KEY-cern sudo /usr/bin/rpm --import RPM-GPG-KEY-cern /usr/bin/yum clean all && \ echo -e "\033[32m \tupdate \033[0m" && \ sudo /usr/bin/yum -y update && \ echo -e "\033[32m \tinstall centos-release and epel-release\033[0m" && \ sudo /usr/bin/yum -y install centos-release epel-release && \ echo -e "\033[32m \tgroup install CERN Base Tools\033[0m" && \ sudo /usr/bin/yum -y group install 'CERN Base Tools' && \ echo -e "\033[32m \tclean all and update\033[0m" && \ sudo /usr/bin/yum -y clean all && sudo /usr/bin/yum -y update