LPIC-1 / パッケージ管理 ・ コマンド問題
$
- apt-cache search keyword✓ 正解
- apt-cache show keyword
- dpkg -l keyword
- apt list --installed
💡 apt-cache search はパッケージ名と説明文からキーワードを検索します。apt-cache show は特定パッケージの詳細情報を表示するコマンドです。
○ apt-cache search keyword:正解。apt-cache search はパッケージ名と説明文からキーワードを検索します。
✕ apt-cache show keyword:apt-cache show は特定パッケージの詳細情報を表示するもので、検索ではありません。
✕ dpkg -l keyword:dpkg -l は導入済みパッケージの一覧表示で、未導入パッケージの検索はできません。
✕ apt list --installed:apt list --installed は導入済み一覧で、未導入パッケージの検索には使えません。