dpkg --get-selections |grep firefox
2.删除相面出现的包的命令:
sudo apt-get purge pck1-name pck2-name2
dpkg命令选项 : --get-selections [<pattern> ...] Get list of selections to stdout.