- How to Uninstall Google Chrome in Ubuntu using Terminal
- How to Uninstall Google Chrome in Ubuntu 18.04/20.04/22.04 using Terminal
- Step 1 – Open Terminal
- Step 2 – Update System Packages
- Step 3 – Uninstall Google Chrome From Ubuntu
- Conclusion
- Uninstall Chrome in Ubuntu 22.04
- Prerequisites:
- Google Chrome in Ubuntu
- Chromium in Ubuntu
- Conclusion
- About the author
- Sidratul Muntaha
- Как полностью удалить Google Chrome в Ubuntu 12.04?
- How do I completely uninstall Google Chrome and Chromium?
- 3 Answers 3
- How to uninstall Google Chrome?
- 2 Answers 2
How to Uninstall Google Chrome in Ubuntu using Terminal
Uninstall google chrome from ubuntu 18.04/20.04/22.04; Through this tutorial, we will learn how to uninstall google chrome from linux ubuntu 18.04/20.04/22.04 using terminal or command line.
Whenever we have to remove Google Chrome from our Linux Ubuntu system due to some reason. So we see many tutorials for this. But in this simple tutorial, we have to follow only 3 steps. And we will easily remove google chrome from Linux ubuntu system using terminal or command line.
How to Uninstall Google Chrome in Ubuntu 18.04/20.04/22.04 using Terminal
- Step 1 – Open Terminal
- Step 2 – Update System Packages
- Step 3 – Uninstall Google Chrome From Ubuntu
Step 1 – Open Terminal
First of all, open terminal or command line by pressing Ctrl + Alt + T key from keyboard.
Step 2 – Update System Packages
Once the command line is open, then execute the following command on command line to update system packages:
Step 3 – Uninstall Google Chrome From Ubuntu
Then execute the following command on terminal or command line to remove or uninstall google chrome from Linux ubuntu system:
sudo apt-get remove google-chrome-stable
Also, we can use the following commands to remove or uninstall google chrome from Linux ubuntu system:
sudo apt-get purge google-chrome-stable
Conclusion
Through this tutorial, we have learned how to uninstall or remove google chrome from linux ubuntu 18.04/20.04/22.04 using terminal or command line.
Uninstall Chrome in Ubuntu 22.04
Google Chrome is the most popular web browser. It’s a cross-platform web browser that is developed by Google and is available for all the major platforms: Windows, Linux, macOS, iOS, Android, etc. It’s based on the open-source Chromium project.
In this guide, we will have a look at uninstalling Chrome in Ubuntu 22.04.
Prerequisites:
To follow this guide, you need the following components:
Google Chrome in Ubuntu
For Debian/Ubuntu, Google offers an installable DEB package. If installed, the package also configures the official Chrome repo for Debian/Ubuntu. Hence, we can use the APT package manager to uninstall Chrome.
The following guide demonstrates an in-depth discussion about installing Google Chrome in Ubuntu 22.04.
Note that Chrome and Chromium are different applications. Chrome is offered by Google that contains proprietary codes whereas Chromium is directly derived from the source code of the Chromium project.
Step 1: Finding the Chrome Packages
Check the existence of the Chrome package using the following command:
Depending on the release channel, the package name is different:
-
- Stable channel: google-chrome-stable
- Unstable channel: google-chrome-unstable
- Beta channel: google-chrome-beta
Step 2: Uninstalling Chrome
Now that we have the package names, we can use APT to uninstall them.
To uninstall the stable Chrome, run the following command:
To uninstall the unstable Chrome, use the following command instead:
To uninstall the beta Chrome, use this command instead:
Alternatively, we can remove all the installed Google Chrome packages using the following command:
Step 3: Removing the Chrome Repo
If you want to install Chrome in the future, it’s recommended to keep the Chrome repo as you can seamlessly install Chrome and get updates. However, there are ways to remove it.
First, we need to find where the Chrome repo is stored. There are two places where repo info is stored in Ubuntu:
-
- /etc/apt/sources.list: The default file that APT uses to get the list of repos. Ideally, it should only contain the system repos.
- /etc/apt/sources.list.d/: A directory that can contain the additional “.list” files. Ideally, third-party repo files should be stored here.
Instead of manually checking every single “.list” files under /etc/apt, we can use grep to automate the process:
If the entries are stored in their dedicated files, you can safely remove them. If the entries are part of a bigger file, you have to edit the files and manually remove the entries.
Chromium in Ubuntu
The Chromium browser is an open-source software that includes no proprietary web codes. Most Linux distros offer the Chromium browser directly from their official package repos. In the case of Ubuntu, however, Chromium is available as a snap package from Snapcraft.
The chromium-browser package from Ubuntu repos is a transitional package, not the actual program:
Step 1: Finding Chromium Snap
The first step is to verify the existence of the Chromium snap package. Check the list of the installed snap packages:
Note that snap uses different channels for the various Chromium releases:
-
- Chromium stable: latest/stable
- Chromium beta: latest/beta
- Chromium candidate: latest/candidate
- Chromium edge: latest/edge
Uninstalling the Chromium snap removes the packages from all the channels as well.
Step 2: Uninstalling Chromium Snap
To uninstall the Chromium snap package, run the following command:
Verify if the uninstallation is successful:
Conclusion
We demonstrated how to uninstall Chrome from Ubuntu 22.04. In addition, we discussed how to remove the Chrome repo from the system. This guide also showcased how to uninstall the Chromium browser from the system.
Not satisfied with Chromium/Chrome? There are plenty of web browsers to choose from. Check out the best web browsers of 2023 for Ubuntu.
About the author
Sidratul Muntaha
Student of CSE. I love Linux and playing with tech and gadgets. I use both Ubuntu and Linux Mint.
Как полностью удалить Google Chrome в Ubuntu 12.04?
Доброго времени суток хабровчане! Столкнулся с проблемой в Chrome — зашел на инфицированный сайт, с которого мне нужна была информация и, собственно, подверг браузер заражению. Проявляется это в том, что на разных сайтах, таких как ВКонтакте появляется реклама в самом низу (в подвале) ведущая на какую то игру про танчики…
Собственно это все лирика. Проблема не в вирусе… Захотел я значит полностью удалить браузер и установить его по новой. И тут же возникла проблема: Google Chrome наотрез отказывается полностью удаляться из Ubuntu. В официальной документации Google рекомендуют воспользоваться Synaptic и поставить пакет на полное удаление. Что ж, сделал — не помогло. После удаления устанавливаю браузер по новой, а он и вкладки сохранил и пароли и все остальное…
Не беда — пробую autoremove (sudo apt-get autoremove) и снова, после установки вижу, что все сохранилось. Пытаюсь использовать железный вариант — sudo apt-get purge google-chrome-stable* и удаляю все папки и файлы с названием google или chrome с машины… Отдельно выполняю sudo apt-get purge google и sudo apt-get purge chrome, на что система удаляет Chromium.
В итоге, после всех стараний сохранения остались… Смотрел в синаптике, где все папки Chrome и после удаления все почистил… Сохранения остались — естесственно с вирусом в куках. Очистка браузера не помогает. Отключение от аккаунта Google тоже.
Подскажите, как полностью удалить Chrome? Я уже его ненавижу…
How do I completely uninstall Google Chrome and Chromium?
I’m having a problem with Chrome and one of its extensions, so I want to completely uninstall everything. I’ve uninstalled Chrome through the Software Center, but when I reinstall it, all of my extensions and preferences are still there. If I want to start over from scratch, what do I need to do?
I’m going to make this into a more general question, since the directions here will cover both Chromium and Google Chrome.
3 Answers 3
Note: this recipe has been updated in 2020 to more safely backup the files rather than using a recursive delete.
To uninstall Chromium Browser, run these commands from your terminal:
$ sudo apt-get purge chromium-browser $ mv ~/.config/chromium/ ~/.config/chromium.bak/
To uninstall Google Chrome, run these commands from your terminal:
$ sudo apt-get purge google-chrome-stable $ mv ~/.config/google-chrome/ ~/.config/google-chrome.bak/
In both examples, the first command removes the package while the second command will move custom settings, such as plugins, to a backup directory.
Don’t forget there are also files in ~/.cache/google-chrome/ and ~/.config/google-chrome/ . And there are variants of Google chrome like google-chrome-beta and google-chrome-stable . If in doubt you can check you’ve got everything by running locate google-chrome . locate is a local search tool that can be installed with sudo apt install locate
For me, locate google-chrome returned a lot of files that had already been deleted. If anyone faces the same problem, run sudo updatedb to update mlocate database. ( locate searches for entries in mlocate database)
For Google Chrome:
Deleting ~/.config/google-chrome (where ~ is your home directory) should be sufficient. Why don’t you try it and see? (Of course, this will delete all your bookmarks too.)
If that’s not sufficient, you may want to also remove Google Chrome from the Terminal using the sudo apt-get purge . command (where . is replaced by the package you want to remove or a space-separated list of the packages you want to remove), or remove it in the Synaptic Package Manager (which you can install in the Software Center if you don’t have it; it’s itself provided by the package synaptic ) by right-clicking on the packages you want to remove and clicking «Mark for Complete Removal». These ways of removing packages will remove all global (i.e., non-user-specific) configuration files.
For Chromium (the completely open source counterpart to Chrome):
You can do it the same way, just delete ~/.config/chromium . You can also remove the package as mentioned above for Google Chrome. The package that provides Chromium in Ubuntu is called chromium-browser .
How to uninstall Google Chrome?
I decided to try out Google Chrome and see if it was any different from Chromium, but now I can’t figure out how to uninstall it. That’s what I have installed. How to get rid of it is the question.
It is unfortunate that Ubuntu won’t show Chrome in the installed software list or anywhere else when searched as «Chrome», «Google» or «Google Chrome». I HAD to type «google-chrome». So much for Unity :\
2 Answers 2
Run sudo apt-get remove google-chrome-stable in a terminal.
@rab They will stay in ~/.config/google-chrome (not sure about the name), and other browsers should be able to import them. If you reinstall Chrome without deleting this folder, you should see them.
It’s usually better to purge:
sudo apt-get purge google-chrome-stable
This will make sure you don’t have unnecessary packages remaining, and will remove config files, saving a little space and making sure it won’t interfere with other programs or future reinstallations.
This will not remove the ~/.config/google-chrome , this has to be done manually through rm -rf ~/.config/google-chrome
I ran those 3 commands (sudo apt-get purge google-chrome-stable, sudo apt-get autoremove and sudo rm -rf ~/.config/google-chrome), but I still have the downloaded original deb file i.e. google-chrome-stable_83.0.4103.61-1_amd64.deb (size 68,7 MB) in my directory var/cache/apt/archives. How to uninstall / delete it from there ?
I found the following a command which can delete all files from directory var/cache/apt/archives: sudo apt-get clean. Source: howtogeek.com/229699/…
Is this dpkg: warning: while removing google-chrome-stable, directory ‘/opt’ not empty so not removed warning message normal?