我知道在Ask Ubuntu中有关于卸载Google Chrome的类似问题,例如:
但是这些帖子的答案有点过时了。
据我所知,我遵循的安装Google Chrome的步骤是:
从网站下载.deb软件包之前要提到的一件值得注意的事情是(从原始内容中强调):
注意:安装Google Chrome浏览器会添加Google存储库,因此您的系统将自动使Google Chrome浏览器保持最新状态。如果您不希望使用Google的存储库,请在安装软件包之前执行“ sudo touch / etc / default / google-chrome”。
据我所知,我sudo touch /etc/default/google-chrome
在安装软件包之前没有执行过。
据我所知,关于Ubuntu和软件包管理,我必须删除Google存储库,然后卸载该应用程序。我听说过,ppa-purge
但是我不确定ppa-purge
在这种情况下是否有帮助,因为Google使用的是存储库而不是PPA。还是我弄错了?
卸载Google Chrome浏览器的正确方法是什么(我不需要留下任何配置文件)?
要完全卸载Google Chrome,请执行以下操作:
运行以下命令以删除Google Chrome和所有依赖项:
sudo apt purge --auto-remove google-chrome-stable
运行以下命令以删除Google Chrome存储库:
sudo rm /etc/apt/sources.list.d/google-chrome.list*
运行以下命令以删除目录中的Google Chrome浏览器~
目录:
rm -rf ~/{.cache,.config}/google-chrome
如果您想在一行中完成以上所有操作,则可以运行:
sudo apt purge --auto-remove google-chrome-stable && sudo rm /etc/apt/sources.list.d/google-chrome.list* && rm -rf ~/{.cache,.config}/google-chrome
关于ppa-purge
,您是正确的。您不能使用它删除Chrome存储库,因为它不是PPA。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句