How to install Jenkins in Ubuntu

Osanda Herath
1 min readAug 13, 2023

--

In this article i will tell you how to install Jenkins in your Ubuntu machine successfully.

  1. First, you need to add the Jenkins repository key to your system. This will allow you to download the latest version of Jenkins from the official source. To do this, open a terminal and run the following command.
wget -q -O - [6](https://pkg.jenkins.io/debian-stable/jenkins.io.key) | sudo apt-key add -

2. Next, you need to add the Jenkins repository to your system’s sources list. This will tell your system where to look for Jenkins packages. To do this, run the following command.

sudo sh -c 'echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \\ [7](http://pkg.jenkins.io/debian-stable) binary/ | sudo tee \\ /etc/apt/sources.list.d/jenkins.list > /dev/null'

3. Then, you need to update your system’s package index to fetch the latest information from the Jenkins repository. To do this, run the following command.

sudo apt update

4. Finally, you can install Jenkins and its dependencies by running the following command.

sudo apt install jenkins

5. You have successfully installed Jenkins on your Ubuntu system! You can verify that Jenkins is running by checking its status with the following command.

sudo systemctl status jenkins

6. You should see something like this.

--

--