软件安装 - 如何删除已经安装的软件包

分享于 

2分钟阅读

ubuntu

  繁體

问题

当我输入:


sudo dpkg -i mysql_64_bit.deb 



系统要求我删除旧版本,所以我键入:


teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.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 `dselect' 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' !




答案1


dpkg --get-selections | grep mysql




sudo dpkg -P <packageName>




teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.deb




答案2


sudo apt-get remove --purge mysql-workbench


sudo apt-get update


sudo apt-get upgrade


sudo apt-get install mysql-workbench





PAC  PACK  
相关文章