Skip to content
Clairos Learn

Package/process ops · Lesson 3 of 20 · 8 minutes

DPKG package list

Use dpkg to review installed package records.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Junior operators build confidence by gathering evidence before changing systems.

dpkg
Inspect installed-package records in the synthetic Debian-style environment.

Repository availability and installed package state are separate evidence.

wc
Count input. -l counts newline characters, -w counts whitespace-delimited words, and -c counts bytes.

Text without a final newline may have fewer counted lines than visible rows.

Worked example and expected result
$ dpkg -l
ii  fake-nginx     1.0  training web server
ii  fake-openssh   9.9  training ssh server
ii  coreutils      9.5  training utilities

Exit status: 0. The command completed successfully in the training fixture.

$ dpkg -s fake-nginx
Package: fake-nginx
Status: install ok installed
Version: 1.0-training

Exit status: 0. The command completed successfully in the training fixture.

$ wc -l /var/log/dpkg.log
2 /var/log/dpkg.log

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “DPKG package list”, which interpretation is safe?

Apply it elsewhere

Before adapting the dpkg workflow from “DPKG package list” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: DPKG filesTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01APT package detailsInspect simulated package policy and metadata.Practice
  2. 02DPKG filesList simulated files owned by a package.Practice
  3. 03DPKG status reviewConnect package status to logs.Practice