$
Learn Linux handbook
en
XP:0
Quest 45Packager
+160 XP

Debian Package Management (dpkg)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

While apt automates downloading and resolving package dependencies from repositories, what if you have already downloaded a .deb package file manually and want to inspect or install it? In Linux, we use dpkg (Debian Package) to interact with packages directly.

- The dpkg -l command lists all packages currently installed on your Debian/Ubuntu system.
- The dpkg -s command displays status, version, and architecture information for a specific package.

Let's query the local package database. Check the list of packages by running dpkg -l. Then, query details for the tree program by running dpkg -s tree.

Command Syntax Reference

Command / SyntaxDescription
dpkg -lList installed Debian packages
dpkg -s treeDisplay details of the tree package

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Run "dpkg -l" to list packages
  • ○
    Run "dpkg -s tree" to query details

Ready to complete Quest 45?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.