Installing Google Chrome on Clear Linux*

Some time ago I answered a question about installing Google Chrome on Clear. I’m updating the step by step process using this installation method suggested by @paulcarroty.

Step by step process

  1. Open a terminal

  2. Run the following command to obtain root privileges

    sudo -s
    

    and type your admin password.

  3. Run the following commands, one by one:

    swupd bundle-add package-utils
    curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
    rpm -U --nodeps google-chrome*.rpm
    
  4. Now you can delete the .rpm package and, if you don’t need it, the package-utils bundle. To do this run the following commands, one by one:

    rm -f google-chrome*.rpm
    swupd bundle-remove package-utils
    
  5. And the following command will fix the font loading (thanks to @TomL for his workaround):

    f=/etc/environment; s='export FONTCONFIG_PATH=/usr/share/defaults/fonts'; touch $f; if ! grep -q "$s" $f; then echo $s >> $f; fi
    

Done!

Updating Google Chrome

To update Google Chrome you can re-follow the procedure above, or periodically run it in a script.

Uninstalling Google Chrome

  1. Open a terminal

  2. Run the following command to obtain root privileges

    sudo -s
    

    and type your admin password.

  3. Run the following commands, one by one:

    swupd bundle-add package-utils
    rpm -e google-chrome-browser
    
  4. Now if you don’t need it you can delete the package-utils bundle by running:

    swupd bundle-remove package-utils
    

Done!

I noted some errors during the installation that obviously didn’t emerge using rpm2cpio in the previous tutorial, but the browser works anyway. Let me know your thoughts, and if there’s something that can be improved, especially about those errors. I hope it’s helpful! :smile:

5 Likes