Mission 54

Package log basics

Inspect simulated package activity without installing anything.

Text and logs
7 minutes Core Lesson 54 of 360
greptailwc
Lesson 54 of 360 0/360 lessons 0/17 missions Text and logs · 7 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 7 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Search install

Run grep install /var/log/dpkg.log.

grep install /var/log/dpkg.log
Tail package log

Run tail -n 2 /var/log/dpkg.log.

tail -n 2 /var/log/dpkg.log
Count package log

Run wc -l /var/log/dpkg.log.

wc -l /var/log/dpkg.log
Lesson support

What to notice while you play.

Objective

Read package install and upgrade traces.

Hint

Search for install in dpkg.log.

Why it matters

Recent package changes can explain new failures.

Common mistakes
  • Assuming packages never changed.
  • Installing more packages before reading logs.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

wc [-l] <file>

Count lines, words, and characters.