UNIT 8: Package Management

In Windows, you search Google for .exe files. This is risky. In Linux, we use a trusted Package Manager.

1. What is a Package Manager?

Think of it as the App Store for Hackers. It is a tool that connects to a secure "Warehouse" (Repository) to download, install, and update software automatically.

The most common manager for Ubuntu/Kali is APT (Advanced Package Tool).

2. APT Basics

You must use sudo because installing software affects the whole system.

sudo apt update # 1. Refresh the list of available apps
sudo apt install vlc # 2. Install an app (e.g., VLC Player)
sudo apt remove vlc # 3. Uninstall the app
sudo apt upgrade # 4. Update ALL installed apps at once

3. Software Repositories

Repositories are secure servers maintained by the Linux community. When you type install python, Linux asks the repository: "Do you have Python?" and downloads the safest version.

⚠️ SAFE PRACTICES

MISSION: Install the tool neofetch. (Remember to update first!)

root@learnix:~#