ubuntu 查看已安装软件命令
一、查看所有已安装软件包
dpkg -l
二、过滤安装包
yang@ubuntu:~/ansible$ dpkg -l | grep vim ii vim 2:8.1.2269-1ubuntu5.9 amd64 Vi IMproved - enhanced vi editor ii vim-common 2:8.1.2269-1ubuntu5.9 all Vi IMproved - Common files ii vim-runtime 2:8.1.2269-1ubuntu5.9 all Vi IMproved - Runtime files ii vim-tiny 2:8.1.2269-1ubuntu5.9 amd64 Vi IMproved - enhanced vi editor - compact version