致力于Ubuntu中文推广http://forum.ubuntu.org.cn/
http://forum.ubuntu.org.cn/viewtopic.php?t=110469
代码: 全选
dpkg -l|grep '^ii'|awk '{s++} END{print s}'