Skip to main content

Command Palette

Search for a command to run...

Day 7 - Understanding package manager and systemctl

Updated
2 min readView as Markdown
Day 7 - Understanding package manager and systemctl
S
Hi, I’m Sarika 👋 I’m a QA Engineer with 2+ years of experience in software testing. I have hands-on experience in: * Functional & Regression Testing * API Testing using Postman * Database validation using SQL * Cross-browser testing Currently, I’m focusing on: * Automation Testing using Selenium & Playwright (Java) * Building real-world testing frameworks * End-to-End testing (UI + API + DB) This blog is where I share: * What I learn daily * Real testing scenarios * Practical examples (not just theory) * Interview-focused concepts 🚀 Learning | Building | Sharing Follow me on LinkedIn: https://www.linkedin.com/in/sarika-kamble-3153b3218/

💡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 lines tool like apt-get or Pacman.

You’ll often find me using the term ‘package’ in tutorials and articles, To understand package manager, you must understand what a package is.

💡What is a package?

A package is usually referred to as 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 the packaging system but the 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

  1. You have to install docker and check the status of the docker service in your system
  • ◼️Installation of Docker on Ubuntu

    • ◼️Check the status of docker service in your system

  • ◼️Check the version of the docker

  1. You have to install Jenkins in your system from your terminal using package managers stop the service Jenkins and post before and after screenshots
  • ◼️Update Package List

         sudo apt update #Update Package List
    
  • ◼️Install Java Development Kit (JDK): Jenkins requires Java to run.

        sudo apt install -y openjdk-11-jdk #Install Java 11
    
  • ◼️For Installing the 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
    
  • ◼️Check the status of Jenkins

        sudo systemctl status jenkins
    

  • ◼️Stop the Jenkins service

💡systemctl and systemd

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

📚 Happy Learning :)😊

More from this blog

S

Sarika Tech Journey

42 posts