Native OS Installation
Learn how to install Jenkins directly on host operating systems using native package managers and manage it as a persistent system background service.
What is a Native OS Installation?
A Native OS Installation involves running Jenkins directly inside your host's operating system environment rather than wrapping it in an isolated container. Jenkins configures itself as a system daemon or background process (such as a systemd service on Linux or a standard Windows Service), allowing it to boot up automatically when the server starts.
Key Concepts By Platform
1. Debian / Ubuntu Linux
Uses official apt repositories. Requires importing the GPG authentication key before adding the Jenkins source list.
Package Manager:apt-get install jenkins
2. Red Hat / CentOS / Fedora
Configured by pulling down the official Jenkins yum configuration file and importing the corresponding Red Hat key.
Package Manager:yum install jenkins
3. Microsoft Windows
Distributed as a standard graphical installer (.msi). It guides users through setup wizard screens and configures a background Windows Service.
services.msc
4. Service Orchestration
On modern Linux nodes, Jenkins relies heavily on system managers to gracefully start, stop, restart, or evaluate daemon status hooks.
Daemon Utility:systemctl
Ubuntu Linux Installation Script Example
The following workflow shows how to register the official Jenkins LTS (Long-Term Support) repository key, inject the repository into your system package manager list, and trigger the install sequence:
# 1. Download and register the official Jenkins repository GPG signing key
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://jenkins.io
# 2. Append the authenticated Debian package repository to the host source configurations
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://jenkins.io binary/" | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
# 3. Synchronize package index indices and deploy the application service binary
sudo apt-get update
sudo apt-get install jenkins -y
# 4. Initialize and evaluate the state of the native system background daemon
sudo systemctl start jenkins
sudo systemctl status jenkins
Practice Exercise
- Log into your target target test Linux server infrastructure utilizing an SSH client connection.
- Follow the sequential system package commands detailed in the example script above to register and download the binary.
- Run
sudo systemctl status jenkinsto guarantee your automation engine state flag evaluates as active (running). - Locate your default administrator security entry password string by reading the initial initialization setup path:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword.
Summary
You have completed the Native OS Installation lesson! You now know how to deploy Jenkins directly to an operating system as a managed service, handle keys, and inspect background service statuses.