Debian Package Management (dpkg)
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.
dpkg -l. Then, query details for the tree program by running dpkg -s tree.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
dpkg -l | List installed Debian packages |
dpkg -s tree | Display 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.