First lets install some dependency sudo yum install epel-release -y sudo yum-config-manager –enable epel sudo yum install java-1.8.0-openjdk-devel Jenkins package is not available in the default CentOS and RHEL repositories. So we need to add jenkins repository using the beneath commands. curl –silent –location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo sudo …
Install Jenkins Create EC2 instance with Amazon Linux 2 AMI We will be using open java for our demo, Get latest version from http://openjdk.java.net/install/ yum -y install java-1.8.0-openjdk Lets install java and set the java home java -version find /usr/lib/jvm/java-1.8* | head -n 3 #JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64 export JAVA_HOME PATH=$PATH:$JAVA_HOME # To …