packageInstalled() {
dpkg -l | awk '{print $1, $2}' | grep "^ii.* $1"
}
@test "Verify that whoopsie is not installed" {
run packageInstalled 'whoopsie'
[ "$status" -eq 1 ]
}
Ensure Whoopsie is not installed
Description
Ensure that the whoopsie service is not installed.
Rationale
Whoopsie collects the crash report generated by Apport and makes it possible
to send them to Canonical.
Audit
Remediation
shell
apt-get --assume-yes purge whoopsie*