apt list
manpage
執行
$ man apt
可以找到一段說明
list (work-in-progress)
list is somewhat similar to dpkg-query --list in that it can display a list of packages satisfying certain
criteria. It supports glob(7) patterns for matching package names as well as options to list installed
(--installed), upgradeable (--upgradeable) or all available (--all-versions) versions.
help
執行
$ apt -h
可以找到一段說明
list - list packages based on package names
指令範例
執行
$ apt list
執行
$ apt list | grep bash
執行
$ apt list bash
執行
$ apt list bash*
執行
$ apt list *bash*
執行
$ apt list *bash
執行
$ apt list bash* --installed
執行
$ apt list bash* --all-versions
執行
$ apt list --upgradeable