Sunday, May 19, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 6611  / 1 Year ago, fri, february 10, 2023, 2:11:09

I know that there are similar questions in Ask Ubuntu regarding uninstalling Google Chrome, like these:



But the answers of those posts are kinda outdated.




As far as I remember, the steps I followed to install Google Chrome were:



  1. I downloaded the 64-bit .deb package from https://www.google.com/chrome/.

  2. I installed the .deb package (I don't remember if I installed it using the terminal or GUI, but I guess it doesn't matter).


One thing which is crucial to note, which is mentioned before downloading the .deb package from the website, is (emphasis from the original):



Note: Installing Google Chrome will add the Google repository so your
system will automatically keep Google Chrome up to date. If you don’t
want Google's repository, do “sudo touch /etc/default/google-chrome”
before installing the package.



Screenshot of Google Chrome's download page (https://www.google.com/chrome/)


As far as I remember, I didn't execute sudo touch /etc/default/google-chrome before installing the package .


So as far as I know about Ubuntu and package management, I must remove the Google repository and then uninstall the app. I've heard of ppa-purge but I'm not sure if ppa-purge is helpful in this case since Google is using a repository, not PPA. Or am I mistaken?


What's the proper way to uninstall Google Chrome (I don't need any configuration files to be left behind)?


More From » google-chrome

 Answers
7

To completely uninstall Google Chrome do the following:



  1. Run the following command to remove Google Chrome along with any dependencies:


    sudo apt purge --auto-remove google-chrome-stable


  2. Run the following command to remove the Google Chrome repository:


    sudo rm /etc/apt/sources.list.d/google-chrome.list*


  3. Run the following command to remove Google Chrome directories in your ~ directory:


    rm -rf ~/{.cache,.config}/google-chrome



If you'd like to do all the above in one line, you can run:


sudo apt purge --auto-remove google-chrome-stable && sudo rm /etc/apt/sources.list.d/google-chrome.list* && rm -rf ~/{.cache,.config}/google-chrome

Regarding ppa-purge, you are right. You cannot use it to remove the Chrome repository, since it is not a PPA.


[#2483] Saturday, February 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;