如何从 Ubuntu 中彻底卸载 Google Chrome
Chrome
现在，你已经成功地 [在 Ubuntu 上安装 Google Chrome](https://itsfoss.com/install-chrome-ubuntu/)。毕竟，它是世界上最受欢迎的网页浏览器了。


但是，你可能会不喜欢 Google 的产品，因为它们对用户的信息进行追踪和数据挖掘。你决定选择 [Ubuntu 上的其他网页浏览器](https://itsfoss.com/best-browsers-ubuntu-linux/)，并且它或许是一个 [非 Chromium 核心的浏览器](https://itsfoss.com/open-source-browsers-linux/)。


既然你已经不再使用 [Google Chrome](https://www.google.com/chrome/index.html) 了，那么，把它从 Ubuntu 系统中移除是一个明智的选择。


如何才能做到这一点呢？我来告诉你具体的步骤。


### 从 Ubuntu 中完全移除 Google Chrome


![Illustration for removing Google Chrome from Ubuntu](/data/attachment/album/202203/18/105902r6yiccyzm6xxvqx6.png)


你可能使用了图形界面的方式安装 Google Chrome，但不幸的是，你得使用命令行的方式来移除它，除非你选择 [使用 Synaptic 软件包管理器](https://itsfoss.com/synaptic-package-manager/)。


使用命令行来做这件事也不是很难。首先，按下 [键盘上的 Ctrl+Alt+T 快捷键来打开一个终端](https://itsfoss.com/open-terminal-ubuntu/)。


在终端中输入下面的命令：



```
sudo apt purge google-chrome-stable

```

此时它会向你索要一个密码，这个密码是你的用户账户密码，也就是你用来登录 Ubuntu 系统的密码。


当你输入密码的时候，屏幕上什么也不会显示。这是 Linux 系统的正常行为。继续输入密码，完成后按下回车键。


此时它会让你确认是否删除 Google Chrome，输入 `Y` 来确认，或者直接按下回车键也行。


![Removing Google Chrome for Ubuntu](/data/attachment/album/202203/18/110056x2gz2spid0kk888z.jpg)


这个操作会从你的 Ubuntu Linux 系统中移除 Google Chrome，同时也会移除大多数相关的系统文件。


但是，你的个人设置文件仍然保留在用户主目录中。它包含了 Cookie、会话、书签和其他与你的账户相关的 Chrome 设置信息。当你下次安装 Google Chrome 时，这些文件可以被 Chrome 再次使用。


![Google Chrome leftover settings in Ubuntu](/data/attachment/album/202203/18/105905y29akozuwoa22da4.png)


如果你想要彻底地移除 Google Chrome，你可能会想要把这些文件也移除掉。那么，下面是你需要做的：


切换到 `.config` 目录。 **注意 config 前面有个点**`，这是 [Linux 隐藏文件和目录的方式](https://itsfoss.com/hide-folders-and-show-hidden-files-in-ubuntu-beginner-trick/)。



```
cd ~/.config

```

然后移除 `google-chrome` 目录：



```
rm -rf google-chrome

```

![Removing the leftover Google Chrome settings from Ubuntu](/data/attachment/album/202203/18/105906cii8bbaojj2erjti.png)


你也可以仅使用一个命令 `rm -rf ~/.config/google-chrome` 来删除它。因为本教程面向的对象是完完全全的初学者，所以我把这个命令拆分为以上两个步骤来完成，这样可以减少由于拼写问题造成的可能错误。



> 
> 小技巧
> 
> 
> 想要你的终端和截图里看起来一样漂亮吗？试试这些 [终端定制小技巧](https://itsfoss.com/customize-linux-terminal/)。
> 
> 
> 


我希望这篇快速的入门技巧可以帮助你在 Ubuntu 上摆脱 Google Chrome。




---


via: <https://itsfoss.com/uninstall-chrome-from-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[lkxed](https://github.com/lkxed) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

So, you managed to [install Google Chrome on Ubuntu](https://itsfoss.com/install-chrome-ubuntu/). It is the most popular web browser in the world, after all.

But perhaps you dislike Google products for the heavy tracking and data mining they employ on its users. You decided to opt for [other web browsers on Ubuntu](https://itsfoss.com/best-browsers-ubuntu-linux/), perhaps a [non-Chromium browser](https://itsfoss.com/open-source-browsers-linux/).

Now that you are no longer using it, it would be wise to remove [Google Chrome](https://www.google.com/chrome/index.html?ref=itsfoss.com) from Ubuntu.

How to do that? Let me show you the steps.

## Remove Google Chrome completely from Ubuntu

![Removing Google Chrome from Ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/removing-google-chrome-ubuntu.png)

You probably installed Google Chrome graphically. Unfortunately, you’ll have to resort to the command line for removing it, unless you opt to [use Synaptic Package Manager](https://itsfoss.com/synaptic-package-manager/).

It is not too difficult. Press the [Ctrl+Alt+T keyboard shortcut in Ubuntu to open a terminal](https://itsfoss.com/open-terminal-ubuntu/).

Type the following command in the terminal:

`sudo apt purge google-chrome-stable`


It asks for a password. It is your user account’s password, the one which you use to log in to your Ubuntu system.

When you type the password, nothing is displayed on the screen. This is normal behavior in Linux. Just type the password blindly and press enter.

It will ask you to confirm the removal of Google Chrome by entering Y or simply pressing the enter key.

![remove google chrome ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/remove-google-chrome-ubuntu.webp)

This will remove Google Chrome from your Ubuntu Linux system along with most of the system files.

However, the personal setting files remain in your home directory. This includes cookie sessions, bookmarks and other Chrome-related settings for your user account. If you install Google Chrome again, the same files could be used by Chrome again.

![Google Chrome leftover settings in Ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/google-chrome-ubuntu-leftover-settings-800x518.png)

## Removing Chrome related personal settings files, if you really want it (for experts only)

If you want to uninstall Google Chrome completely, you may also want to remove these files.

Here’s what you should do.

Change to the .config directory. **Mind the dot before config**. That’s the

[way to hide files and folders in Linux](https://itsfoss.com/hide-folders-and-show-hidden-files-in-ubuntu-beginner-trick/).

`cd ~/.config`


And now remove the google-chrome directory:

`rm -rf google-chrome`


![Removing the leftover Google Chrome settings from Ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/remove-google-chrome-leftover-settings-from-Ubuntu-800x277.png)

You could have also used rm -rf ~/.config/google-chrome to delete it in one single command. Since this tutorial is focused on absolute beginners, I made it in two steps to reduce the error margin because of a typo.

Similarly, **you could also remove the Google Chrome cache located in ~/.cache/google-chrome**.

If you are unfamiliar with the terminal, our tutorial series will help you.

[Linux Command Tutorials for Absolute BeginnersNever used Linux commands before? No worries. This tutorial series is for absolute beginners to the Linux terminal.](https://itsfoss.com/tag/terminal-basics/)![](https://itsfoss.com/content/images/2023/03/terminal-basics-series-tag.png)


![](https://itsfoss.com/content/images/2023/03/terminal-basics-series-tag.png)

I hope this quick beginner tip helped you to get rid of Google Chrome from Ubuntu Linux.