INTRODUCTION:
Welcome to the world of linux management ,where we will explore the package managers and systemctl (essential tools for handling software and services on your operating system). from scratch and how it's work?, Everything and will install docker and jenkins using package manager in our cloud terminal platform (AWS) .
⚙️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. When we talk about "packages" we mean bundles of software that include everything needed for an application to run, 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.
Some of the Package Managers with Brief:
🔧$apt(Advance Package Tool): It's a high-level package management tool used in Debian-based system like Ubuntu.
sudo apt-get update sudo apt-get upgrade sudo apt-get install docker
🔧$yum (Yellowdog Updater, Modified): It manage packages on Red Hat-based systems like centOS etc.
sudo yum install nginx
🛠️Tasks:
✨Docker Installation on your terminal using package managers.
🐳Installing docker on Ubuntu:
Connect to your AWS EC2 instance
Open your terminal
Type: sudo apt-get update(This will Update your software list).
Now, Type: sudo apt-get install docker.io (This will install docker).
press "y" to proceed further.
To verify docker is installed or not use command docker --version.
This Indicates you have successfully installed Docker.
✨Jenkins Installation on your terminal using package managers.
Enable Jenkins Repository (If Not Available):
If the jenkins
package is not available in the default repositories, you may need to add the Jenkins repository. Follow these steps:
a. Add the jenkins repository and then Add the Jenkins Repository to your sources list:
b. Install Jenkins:
Now, you should be able to install Jenkins using:
sudo apt-get install jenkins
systemctl and systemd:
Now, let's check out another tool called "systemctl." It helps us understand and control the state of services on our system, like Docker. 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)
Checking Docker Service Status:
After installing Docker, you can see its status by typing: systemctl status docker
in your terminal. This tells you if Docker is running properly.
Conclusion:
In summary, 🛠️ understanding Package Managers and Systemctl is crucial for effective system administration. These tools, governing software management and system control, are essential for maintaining stability, optimizing performance, and navigating the complexities of modern computing. Mastering these elements empowers administrators to streamline operations and enhance system security, ensuring a seamless and efficient computing environment. 🚀
Happy Learning 😊