You want to install Jenkins on a RedHat derivative Linux server (e.g., CentOS, RHEL, or Fedora). What do you do?
1. Run these commands:
curl https://pkg.jenkins.io/redhat-stable/jenkins.repo > /tmp/jenkins.repo
sudo mv -i /tmp/jenkins.repo /etc/yum.repos.d/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2. Run this command:
sudo yum -y install java jenkins
# When you see the "Package configuration" menu that says "Configuring grub-pc" press the tab key (to get to the "Ok" option for "keep the local version currently installed"). Then press enter. In other words, press the tab key when you see this:
3. Run these commands:
sudo systemctl start jenkins
4.a. From a workstation with a GUI, open a web browser and go to this URL where x.x.x.x is the IP address obtained from the icanhazip.com command above: http://x.x.x.x:8080
4.b. Follow the on screen steps. The web browser must allow cookies from x.x.x.x. We recommend installing the suggested plugins when prompted. But the choice is yours.