What is a package manager in Linux?
In simpler words, 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 or pacman.
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.
Task 01
We would be installing docker and jenkins on the ubuntu machine using packet manager :
Please check the below screenshots :
Command -> sudo apt-get install docker.io
After the installation of docker we checked if docker is present by running a command -> which docker
It gave us a result and location where docker got installed. (Second Last Line)
Now we would be installing Jenkins in Ubuntu.
Jenkins has a pre-requisit to install java jdk package before installing Jenkins.
Please find the page below from where we can get the commands to install Java Jdk and then to install Jenkins :
Website -> https://www.jenkins.io/doc/book/installing/linux/
We would be taking these commands and using them on ubuntu to install Jenkins.
What is Systemctl ?
The systemctl command is a utility which is responsible for examining and controlling the systemd system and service manager. It is a collection of system management libraries, utilities and daemons which function as a successor to the System V init daemon. The new systemctl commands have proven quite useful in managing a servers services. It provides detailed information about specific systemd services, and others that have server-wide utilization.
systemctl is used to examine and control the state of “systemd” system and service manager. systemd is system and service manager for Unix like operating systems(most of the distributions, not all).
Syntax -> systemctl start servicename
-> sudo systemctl start docker (to start docker service)
-> sudo systemctl status docker (to check status of docker)
Along with it we need to show the result of cmd -> service docker status
Other commands which can be run :
-> sudo systemctl start docker
-> sudo systemctl reload docker
Now we will do the same practice with Jenkins :
Result of the cmd -> service jenkins status
\============================================================
Thank you for visiting My Blog.