Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
digitalnewsservices.com
digitalnewsservices.com
  • Home
  • Linux
  • Git
  • Docker
  • Jenkins
  • Kubernetes
  • DevOps Projects
  • Home
  • Blog
  • Home
  • Linux
  • Git
  • Docker
  • Jenkins
  • Kubernetes
  • DevOps Projects
  • Home
  • Blog
Close

Search

  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
Subscribe
digitalnewsservices.com
digitalnewsservices.com
  • Home
  • Linux
  • Git
  • Docker
  • Jenkins
  • Kubernetes
  • DevOps Projects
  • Home
  • Blog
  • Home
  • Linux
  • Git
  • Docker
  • Jenkins
  • Kubernetes
  • DevOps Projects
  • Home
  • Blog
Close

Search

  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
Subscribe
Home/Linux/Linux Package Management (APT & YUM)
Linux

Linux Package Management (APT & YUM)

By Sumit Sharma
April 19, 2026 2 Min Read
0

Install, Update & Manage Software Like a Senior DevOps Engineer

CHAPTER 5: SOFTWARE MANAGEMENT

Linux Package Management (APT & YUM)

Install, Update & Manage Software Like a Senior DevOps Engineer

1. Introduction (ELI5 Mode)

Think of Package Management like the App Store or Play Store on your phone. You don’t build apps from scratch; you just search and click “Install”.
Sochiye Package Management aapke phone ke Play Store jaisa hai. Aapko software ki coding nahi chahiye, bas ek command dena hai aur Linux khud use download aur install kar dega.

DevOps Context: Servers par hume Nginx, Docker, ya Git install karna hota hai. Package managers ensure karte hain ki software ke sath-sath uski zaroori dependencies (supportive files) bhi install ho jayein.

2. Core Concepts

What is a Package?

Linux mein software ek “Compressed File” (.deb ya .rpm) ke roop mein hota hai jise Package kehte hain.

APT vs YUM/DNF

  • APT (Advanced Package Tool): Ubuntu aur Debian systems ke liye.
  • YUM / DNF: RHEL, CentOS, aur Fedora systems ke liye.

Repositories (The Warehouse)

Repository ek online godown (warehouse) hai jahan hazaron software rakhe hote hain. Linux hamesha pehle Repository check karta hai software download karne ke liye.

3. The Commands Toolbox 🛠️

For Ubuntu/Debian (APT)

sudo apt update
# Ye repository ki list ko update karta hai. Software install se pehle ye mandatory hai.
sudo apt upgrade
# Ye installed softwares ko naye version par le jata hai.

For CentOS/RHEL (YUM/DNF)

sudo yum install nginx
# Nginx web server install karne ke liye.

4. 12 Real-World DevOps Scenarios

Scenario 1

Situation: Server setup shuru karna hai.

sudo apt update && sudo apt upgrade -y

Upgrade se pehle update karna zaroori hai.

Scenario 2

Situation: Docker install karna hai.

sudo apt install docker.io
Scenario 3

Situation: Kisi package ka naam nahi pata.

apt search network-tool
Scenario 4

Situation: Unused software ko remove karna.

sudo apt autoremove

Ye फालतू dependencies ko saaf kar deta hai.

Scenario 5

Situation: Specific version install karna.

sudo apt install nginx=1.18.0
Scenario 6

Situation: Downloaded cache saaf karna.

sudo apt clean

🚀 Project 1: Production Server Baselining

Scenario: Naya production server mila hai, use baseline (ready) karna hai.

sudo apt update -y
sudo apt install nginx git curl unzip -y
systemctl start nginx
systemctl enable nginx
👉 Pro Tip: Production me hamesha -y use karein taaki prompt par rukna na pade.

🚀 Project 2: Automated Provisioning Script

Scenario: 10 servers par same tools dalne hain. Ek script banaiye.

# setup.sh
#!/bin/bash
PACKAGES=”git docker.io vim htop”
sudo apt update
for pkg in $PACKAGES; do
  sudo apt install $pkg -y
done

Chapter Summary 🎯

Package Management ke bina DevOps automation namumkin hai. APT aur YUM/DNF se aap dependencies ko handle karte ho aur system ko hamesha updated rakhte ho.

Update: List update karta hai. | Upgrade: Software update karta hai.

Author

Sumit Sharma

Follow Me
Other Articles
Previous

Quiz

Next

Quiz – Linux Package Management (APT & YUM)

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Dockerfile — Build Production-Ready Images Like a DevOps Engineer
  • Docker Images & Containers
  • Docker Introduction — Learn Containers with Real DevOps Projects (Beginner to Advanced)
  • Git Branching & Team Collaboration — Work Like a Real DevOps Engineer
  • Remote Repositories & Cloud Workflow

Recent Comments

No comments to show.

Archives

  • April 2026

Categories

  • Docker
  • Git
  • Linux
  • Uncategorized
Copyright 2026 — digitalnewsservices.com. All rights reserved. Blogsy WordPress Theme