Add "apt" check command.

Refs #6002