我用dpkg安装了dropbox
sudo dpkg -i dropbox_2020.03.04_amd64.deb
现在想要卸载
sudo dpkg --purge dropbox_2020.03.04_amd64.deb
这样做不行
dpkg: error: you must specify packages by their own names, not by quoting the names of the files they come in
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
提示直接指定名字就可以了
查看安装的软件名字
dpkg -l
找到了它的名字叫 “dropbox”
sudo dpkg --purge dropbox
卸载成功了!
(Reading database ... 363050 files and directories currently installed.)
Removing dropbox (2020.03.04) ...
Purging configuration files for dropbox (2020.03.04) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...