📦 Package Management in Linux (Installing Tools)
In Linux, software is usually installed using package managers.
👉 A package manager helps you:
- Install software
- Update software
- Remove software
- Manage dependencies automatically
🔥 Popular Package Managers
Linux Distribution → Package Manager:
Ubuntu / Kali / Debian → apt
Fedora → dnf
Arch Linux → pacman
👉 In cybersecurity, you’ll mostly use:
Ubuntu
Kali Linux
So apt is very important 🔥
🖥️ Most Important Commands
✅ Update Package List
sudo apt update
👉 Refreshes available package information
✅ Upgrade Installed Packages
sudo apt upgrade
👉 Updates installed software
✅ Install Software
Example: Install Nmap
sudo apt install nmap
✅ Remove Software
sudo apt remove nmap
🔐 What is sudo?
👉 sudo = Super User Do
Allows you to run commands as administrator (root)
Example:
sudo apt update
⚠️ Use carefully because it gives high-level permissions
🎯 Real-Life Example
An ethical hacker may install tools like:
- Nmap
- Wireshark
- Burp Suite
Using package managers instead of downloading manually
🛡️ Cybersecurity Angle
Keeping software updated is critical because:
❌ Old software may contain vulnerabilities
✅ Updates patch security flaws
👉 Many attacks happen due to outdated systems
🔥 Important Security Habit
Always update systems regularly 👇
sudo apt update && sudo apt upgrade
📝 Quick Task
Try these commands safely 👇
sudo apt update
sudo apt install neofetch
neofetch
👉 neofetch displays system information beautifully
🚀 Mini Challenge
Install one tool using apt and remove it afterward