๐What is a package manager in Linux?
A package manager in Linux is like a smart assistant for your computer. It helps you easily find, install, update, and remove programs. It's a handy tool that makes managing software on your Linux system quick and simple.
๐What is a package?
A package is like a digital box containing software. It has everything a program needs to work correctly. When you want to add or update a program on your computer, you use these packages. It's a neat way to organize and deliver software.
๐Kinds of package managers:
There are several package managers used across different operating systems. Here are a few notable ones:
Advanced Package Tool (APT): Used in Debian and Ubuntu-based systems.
dpkg: Works alongside APT in Debian-based systems for package installation.
yum: Used in Red Hat, CentOS, and Fedora-based systems.
dnf (Dandified YUM): The next-generation YUM, used in Fedora and other related distributions.
pacman: Used in Arch Linux and its derivatives.
zypper: Utilized in openSUSE and SUSE Linux Enterprise.
Homebrew: Popular on macOS, it provides a package manager for macOS software.
Chocolatey: A package manager for Windows.
Each of these package managers serves a similar purpose but is specific to the operating system it is designed for. They simplify the process of installing, updating, and removing software on their respective platforms.
Tasks: Installing docker and jekins using package managers
๐Install Docker
sudo apt-get update
sudo apt-get install docker.io
docker --version
๐Install Jenkins
Jenkins requires Java to run. Install OpenJDK
Install Java:
sudo apt update
sudo apt install fontconfig openjdk-17-jre
java --version
Now Install Jenkins:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
Systemctl :
systemctl is a tool in Linux that helps manage and control services (background tasks). It's like a remote control for starting, stopping, and checking the status of these services. In the world of DevOps, understanding and mastering systemctl is like having a superpower. It helps you keep your systems humming along smoothly and gives you the control you need to ensure everything works seamlessly. So, let's dive in and get comfortable with this powerful tool!"
Systemd:
systemd is the manager that keeps things organized and running efficiently in the background of your Linux machine. It's a key player in making sure your system behaves predictably, which is crucial for us in the DevOps world to keep things stable and manageable."
systemctl status docker
systemctl enable docker
systemctl restart docker
systemctl start jenkins
systemctl status jenkins
systemctl start jenkins
Systemd is the overarching system manager for Linux.Systemctl is the command-line tool to interact with systemd.
Together, they manage system processes, services, and configurations on a Linux system.
Thanks for reading my blog :)