0PricingLogin
Linux Command Line Mastery · Lesson

Package Management (Debian/Ubuntu): `apt`, `dpkg`

Learn to manage software packages on Debian-based systems using `apt` and `dpkg`.

Intro to Package Management

Welcome to package management! On Linux, software comes in packages. These are archives containing program files, documentation, and metadata.

A package manager is a tool that automates the installation, upgrade, configuration, and removal of software. It handles dependencies, ensuring all necessary components are installed.

`dpkg`: The Core Tool

On Debian-based systems (like Ubuntu), the fundamental tool for managing packages is dpkg. It's a low-level tool that directly interacts with .deb files (Debian package files).

  • dpkg installs, removes, and manages individual .deb packages.
  • It does NOT automatically handle dependencies. If a package needs others, you must install them yourself.

All lessons in this course

  1. Archiving and Compression: `tar`, `gzip`, `bzip2`
  2. Package Management (Debian/Ubuntu): `apt`, `dpkg`
  3. Package Management (CentOS/Fedora): `yum`, `dnf`, `rpm`
  4. Building from Source: configure, make, and make install
← Back to Linux Command Line Mastery