Skip to main content

Command Palette

Search for a command to run...

Day 17 - Debian Package Management and Network Tools on Day 17

A Deep Dive into dpkg, apt, and Key Networking Tools

Published
โ€ข2 min read
Day 17 - Debian Package Management and Network Tools on Day 17

Todayโ€™s DevOps journey focused on managing packages and performing network diagnostics on a Debian-based system. I worked with .deb packages using dpkg, handled dependency-aware installs with apt, managed users, and explored essential networking tools like dig, ss, and telnet.


๐Ÿง‘โ€๐Ÿ’ป User Management & sudo Access

useradd devops
su - devops
userdel -r devops
adduser devops
id devops

๐Ÿ” Grant sudo access:

export EDITOR=vim
visudo

๐Ÿ“ฆ Installing .deb Packages with dpkg

wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tree/tree_1.7.0-3_amd64.deb
dpkg -i tree_1.7.0-3_amd64.deb
tree

Check or remove:

dpkg -l | grep tree
dpkg -r tree

๐Ÿ“ฅ Using apt Properly

apt update
apt search tree
apt install tree

Install, remove & purge Apache:

๐ŸŒ Network Troubleshooting Tools

๐Ÿ“ traceroute or mtr

Trace the path packets take to a host:

traceroute google.com
mtr google.com

๐Ÿง  dig

DNS lookup tool:

dig google.com

Returns A records and DNS resolution path.

๐Ÿงช telnet

Test open ports:

telnet <IP> <PORT>

e.g. telnet 192.168.1.10 22 โ€” useful for checking SSH access.

๐Ÿ”Ž netstat (legacy) vs ss (modern)

netstat -antp | grep LISTEN
ss -tunlp

Shows listening ports, associated services, and open sockets.

๐Ÿ›ฃ๏ธ route -n

Display network gateways:

route -n

๐Ÿ’ก What I Learned

  • โœ… dpkg is for local .deb files, apt handles dependencies

  • โœ… adduser vs useradd โ€“ interactive vs raw

  • โœ… ss is a modern replacement for netstat

  • โœ… dig, telnet, mtr = must-have tools for debugging connectivity

๐ŸŒ Real-World Use Cases Test if Jenkins or Apache is reachable

  • Diagnose DNS misconfigurations

  • Confirm firewall rules with telnet or ss

๐Ÿ”ฎ Next Steps

On Day 18, I plan to dive into cron jobs and automating system tasks like log backups or service checks.

DevOps overview as a beginner

Part 17 of 50

Sharing my journey of learning DevOps as a beginner โ€” covering essential tools, cloud setup, CI/CD, Docker, monitoring, and more, step by step with practical examples.

Up next

Day 18 โ€“ Automating Tasks with Cron Jobs

Scheduling backups and custom tasks with crontab