Hands-On LabBeginner

Package Management Essentials - Install, Inspect, and Remove Software

Install, inspect, and remove software with apt and dpkg, then see what a package puts on disk.

40 minEstimated time
4Guided steps
AutoVerification
IsolatedSandbox
Package Management Essentials - Install, Inspect, and Remove Software

Lab overview

Debian-family Linux tracks every installed program as a package. dpkg is the database and installer that records what is on disk. apt is the front end that finds packages in repositories, downloads them, resolves dependencies, and then calls dpkg. Together they answer three admin questions: what is already here, what would this package install, and how do I take it back off. dpkg -l lists the database. dpkg -L lists every file a package dropped, which is how you connect a command you run to the package that shipped it. apt show describes a package from the cache before you install it. Remove leaves configuration behind. Purge removes that leftover state too.

In this lab, you will survey the live dpkg database, install the tree package, draw /home/project with it, inspect the files it placed, then remove and purge it.

Objectives

By completing this beginner lab, you will be able to:

  • Count the installed packages on a Debian host with dpkg -l and record the result
  • Install tree with apt, confirm it resolves, and run tree /home/project
  • List the files a package placed with dpkg -L, then remove and purge it so tree no longer resolves

Who is this lab for?

This lab is designed for:

  • IT Administrator Foundations learners who already walked the filesystem map in Course 1
  • Helpdesk students who need to install and remove software without guessing what landed on disk

Verified against your live environment

An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed, not multiple choice, real-world proficiency.

[CHECK] validation_activelive
Inspecting deployed resources...
Verifying configuration state...
✓ Step requirements satisfied

More labs like this

Related reading

PremiumIncluded in Premium
Duration
40 min
Steps
4

Environment

Dedicated VM IDE

Every lab includes

  • Real environment, pre-credentialed
  • Automated checks on every step
  • Isolated sandbox, auto cleanup
  • AI-recommended next steps

Lab curriculum

  1. 01

    Getting Started with the Linux Packages Workspace

  2. 02

    Surveying Installed Packages with dpkg and apt

    1 automated check

  3. 03

    Installing the tree Package and Drawing the Workspace

    1 automated check

  4. 04

    Inspecting Then Removing and Purging the tree Package

    1 automated check

Skills validated

Files and DirectoriesServer Administration

Not the lab you were looking for?

Browse 250+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.

Explore the catalog