Software Package Management

Learn Software Package Management. This module covers Package Managers APT and DNF, Searching for Packages, Installing and Removing Software, System Updates and Upgrades, Managing Repositories. You will master these essential Linux skills through hands-on labs and real-world challenges.

DevOps EngineerLinuxDevOps

Introduction

This beginner course develops a practical APT workflow for managing software on Ubuntu. Through five guided labs, you will refresh package metadata, search and inspect packages, install and remove software, apply system upgrades, clean unused dependencies, and examine where repository definitions come from.

The final challenge follows a small web-server lifecycle: inspect and install Apache, add curl for a local verification request, and then purge that temporary diagnostic package while leaving the server installed.

What You Will Learn

  • Distinguish the APT and DNF distribution families while working hands-on with APT on Ubuntu
  • Refresh the local package index and list packages with upgrades available
  • Search package names, inspect metadata with apt show, and save selected details
  • Install and verify a package, then compare apt remove with apt purge
  • Apply available upgrades and remove unused dependencies with apt autoremove
  • Read /etc/apt/sources.list and identify Ubuntu repository components such as main, universe, and restricted
  • Create a simulated source entry under /etc/apt/sources.list.d/ without contacting the fictional repository
  • Provision Apache, test it locally with curl, and remove the temporary diagnostic tool

Who This Course Is For

This course is for Ubuntu beginners, support technicians, and aspiring system or DevOps administrators who want a careful command-line foundation for package lifecycle and repository inspection.

Prerequisites: Basic terminal navigation, text-file editing, grep, output redirection, and sudo; no prior package-management experience is required.

Learning environment: A provided Ubuntu-based LabEx terminal with APT repositories, disposable package state, editable simulated source configuration, and a local Apache verification target.

Frequently Asked Questions

How is the course structured?

Five labs provide guided practice. The sixth item is a web-server lifecycle challenge where you refresh metadata, inspect and install apache2, test it with curl, and then purge only curl with less guidance.

Will I practice DNF commands?

No. The course explains that DNF belongs to Fedora and RHEL-family systems, but all hands-on work runs on Ubuntu and uses APT. It does not teach DNF syntax.

Does the repository lab add a working PPA?

No. It creates a clearly fictional entry in sources.list.d to teach repository-file structure. You are explicitly told not to run apt update afterward because that PPA does not exist.

What is the difference between removing and purging a package?

The course presents apt remove as removing package files while generally leaving package configuration, and apt purge as removing both the package and its configuration. The final challenge uses purge only for the temporary curl package, not Apache.

Teacher

labby
Labby
Labby is the LabEx teacher.