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.

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 -land record the result - Install
treewithapt, confirm it resolves, and runtree /home/project - List the files a package placed with
dpkg -L, then remove and purge it sotreeno 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.
More labs like this
Linux Server Administration - Users, Services, and Storage on Azure
Manage users, systemd services, packages, cron jobs, and disk storage on a pre-provisioned Azure Linux VM via SSH.
Linux Networking and Firewall Configuration on Azure
Configure network interfaces, firewall rules with iptables and UFW, harden SSH, and troubleshoot with Linux networking tools.
Computer Hardware Essentials - CPU, Memory, and Virtualization
Count processors, measure memory, and identify whose hardware this is with nproc, free, and systemd-detect-virt.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Getting Started with the Linux Packages Workspace
- 02
Surveying Installed Packages with dpkg and apt
1 automated check
- 03
Installing the tree Package and Drawing the Workspace
1 automated check
- 04
Inspecting Then Removing and Purging the tree Package
1 automated check
Skills validated
Not the lab you were looking for?
Browse 250+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.