Skip to main content

Command Palette

Search for a command to run...

90DaysOfDevOps:Day#7

Published
2 min readView as Markdown
90DaysOfDevOps:Day#7

What is a package manager in Linux?

A package manager is a tool that allows users to install, remove, upgrade, configure and manage software packages on an operating system. The package manager can be a graphical application like a software center or a command line tool like apt-get.

What is a package?

A package is usually referred to an application but it could be a GUI application, command line tool or a software library (required by other software programs). A package is essentially an archive file containing the binary executable, configuration file and sometimes information about the dependencies.

Different kinds of package managers

Package Managers differ based on packaging system but same packaging system may have more than one package manager.

For example, RPM has Yum and DNF package managers. For DEB, you have apt-get, aptitude command line based package managers.

Tasks

You have to install docker and jenkins in your system from your terminal using package managers

$ sudo apt-get update

$ sudo apt install docker.io

$ docker --version

$ sudo systemctl status docker

$ sudo docker run hello-world

Write a small blog or article to install these tools using package managers on Ubuntu and CentOS

systemctl and systemd

Step 1 — Installing Jenkins

Installation of java

$ sudo apt update
$ sudo apt install openjdk-11-jre
$ java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

#jenkins

sudo wget -O /etc/yum.repos.d/jenkins.repo \
    https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
sudo dnf upgrade
# Add required dependencies for the jenkins package
sudo dnf install java-11-openjdk
sudo dnf install jenkins
sudo systemctl daemon-reload

systemctl is used to examine and control the state of “systemd” system and service manager. system is system and service manager for Unix like operating systems(most of the distributions, not all).

Tasks

check the status of docker service in your system (make sure you completed above tasks, else docker won't be installed)

stop the service jenkins and post before and after screenshots

read about the commands systemctl vs service

eg. systemctl status docker vs service docker status