0 前言
在Linux-Ubuntu卸载软件的时候,往往会因为不知道软件的名字而不知道该卸载谁?根据观察,大多数软件均包含关键字,如edge浏览器,查找edge并找到软件全名,将其卸载
1. 查找软件名
以microsoft-edge 为例
$ dpkg -l | grep edge
dpkg -l | grep edge
ii microsoft-edge-dev 113.0.1754.0-1 amd64 The web browser from Microsoft
ii microsoft-edge-stable 111.0.1661.54-1 amd64 The web browser from Microsoft
- 使用dpkg相关命令管理
$ dpkg --help
命令:
-i|--install <.deb 文件名> ... | -R|--recursive <目录> ...
--unpack <.deb 文件名> ... | -R|--recursive <目录> ...
-A|--record-avail <.deb 文件名> ... | -R|--recursive <目录> ...
--configure <软件包名> ... | -a|--pending
--triggers-only <软件包名> ... | -a|--pending
-r|--remove <软件包名> ... | -a|--pending
-P|--purge <软件包名> ... | -a|--pending
参考
Ubuntu下查看已安装软件名称/卸载软件 https://blog.csdn.net/sinat_19569023/article/details/47023641