DPKG package list
Use dpkg to review installed package records.
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 -lii 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-nginxPackage: 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.log2 /var/log/dpkg.log
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: DPKG filesTry an incident drillAnonymous 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.