Module 6: Package Management

Package management is one of Linux's greatest strengths. Unlike other operating systems where you hunt for software online, Linux provides centralized systems for installing, updating, and removing software.

Key Advantage: Linux package managers handle dependencies automatically, resolve conflicts, and provide security updates - all from trusted repositories.

What You'll Learn in This Module

Module Objectives

By the end of this module, you will be able to:

Why This Matters

Understanding package management is crucial because:

What is a Package?

A package is a compressed archive containing:

Package Management Systems

Ubuntu supports multiple package management systems, each with different strengths:

APT (Advanced Package Tool)

Flatpak

Snap

Package Repositories

Packages are stored in repositories - servers that host collections of software:

Main Repositories

Third-Party Repositories

Package Management Workflow

The typical workflow for managing packages:

  1. Update: Refresh package lists
  2. Search: Find the desired package
  3. Install: Install the package
  4. Configure: Set up the software
  5. Upgrade: Keep packages updated
  6. Remove: Uninstall when no longer needed
Best Practice: Always update package lists before installing new software. This ensures you get the latest versions and security updates.

Getting Started

Ready to master package management? Start with APT, Ubuntu's traditional package manager.

Start with APT

Quick Terms to Know

Here are some terms we'll be using throughout this module:

Security Note: Only install packages from trusted repositories. Third-party repositories can contain malicious software or break system stability.