Jenkins is a platform dedicated to making Continuous Delivery and Continuous Integration not only possible, but much easier. Find out how to install it on Rocky Linux.
For any company that wants to achieve agile development, there are certain tools you want to make available to your teams. One such tool is Jenkins, which supports over 1,000 plugins for building, deploying, and automating agile projects.
TO SEE: Rental Kit: Back-end Developer (Tech Republic Premium)
Key features of Jenkins include deployment-ready staging, extensibility, test customization, third-party integrations, process, workflow management, configuration management, reporting, access control, and automation.
In this tutorial, I’ll show you how to install Jenkins on Rocky Linux 9. The installation is relatively easy and should take no more than five to ten minutes.
What you need to install Jenkins
To participate, you need a running instance of Rocky Linux 9 and a user with sudo privileges. That is it.
How to set your time zone
The first thing we want to do is make sure your Rocky Linux server is in the correct time zone. To check, log into your copy of Rocky Linux and view the list of time zones with this command:
timedatectl list-timezones
Now find your time zone in this list and set it with the following, where TIMEZONE is the correct time zone for your area:
sudo timedatectl set-timezone TIMEZONE
How to install the necessary dependencies
Next, we’ll install the required dependencies. Start by opening a terminal window and install Java OpenJDK with this command:
sudo dnf install java-11-openjdk -y
Then install wget and curl with this command:
sudo dnf install wget curl -y
How to install the Jenkins repository
We need to add now the official Jenkins repository with the following:
sudo wget -O /etc/yum.repos.d/jenkins.repo
Now, to import the Jenkins GPG keyuse this:
sudo rpm --import
How to install Jenkins
You can now install Jenkins with this command:
sudo dnf install jenkins -y
When the installation is complete, reload the systemctl daemon with this command:
sudo systemctl daemon-reload
Now you can start and enable the service with:
sudo systemctl enable --now jenkins
If you don’t already allow HTTP traffic through the firewall, enable it now with the following commands:
sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --reload
Access Jenkins
It’s time to access the platform by pointing your web browser to http://SERVER:8080, where SERVER is the IP address or domain of the hosting server. You will be prompted to enter the administrator password, which can be retrieved by running this command:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Now copy and paste that password into the Admin password field (Image A).
Image A

You will then be prompted to install plugins. I recommend clicking Install Suggested Plugins to get the most commonly used plugins. After clicking Install Suggested Plugins, it will take a few minutes for the installation to complete, but eventually you will be prompted to create an admin user (Figure B).
Figure B

Once you’ve created the admin user, you’ll be presented with the main Jenkins page where you can start adding your projects.
Dexterity at your fingertips
Agile development is challenging so any tool you can get to simplify the process should be a must for you developers. If you want to put agility at your fingertips, Jenkins is a great place to start.
Looking for additional tips and tricks for development on Linux operating systems? Check out our guide, 8 must-have tools for developers on Linux.