wget -q -O - https://jenkins.io | sudo apt-key add -
If you prefer not to use a system-level repository, you can download Jenkins as a standalone package or container. Shakthimaan's Blog
The specific commands to "download" the repository configuration depend on your operating system.
sudo wget -O /etc/yum.repos.d/jenkins.repo https://jenkins.io
To install Jenkins via the official Ubuntu/Debian repository, use these commands to add the GPG key and the repository link:
sudo apt update && sudo apt install jenkins 2. For Red Hat/CentOS/Fedora (Yum/DNF Repository)