Ubuntu下查看已经安装的包

To list all installed packages including version and description use
dpkg -l
This should be piped to less using | less for better reading.

You may also use the following to print only the packages without version and description using
dpkg --get-selections | awk '{print $1}'
This command can easily be piped to a file for saving using > file_name

It’s also easy to count the number of installed packages using

dpkg --get-selections | wc -l

http://thehook.eu/blog/page/2/

作者:xiaoxia

出处:http://cnblogs.com/xiaoxia

本文遵从GNU 的自由文档许可证(Free Document License)的条款,欢迎转载、修改、散布。 

原文地址:https://www.cnblogs.com/xiaoxia/p/2095853.html