dpkg的介绍
“dpkg ”是“Debian Packager ”的简写。为 “Debian” 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自“Debian”的“Linux ”发行版都使用 “dpkg”,例如 “Ubuntu”、“Knoppix ”等。
查看已经安装的包
dpkg -l |grep xxx
使用help获取list的参数
root@ubuntu:~# dpkg --help |grep list
--get-selections [<pattern>...] Get list of selections to stdout.
-L|--listfiles <package>... List files 'owned' by package(s).
-l|--list [<pattern>...] List packages concisely.
--add-architecture <arch> Add <arch> to the list of architectures.
--remove-architecture <arch> Remove <arch> from the list of architectures.
例:查询openvpn包的安装信息
dpkg -l |grep vpn