Those of you who use the distribution will know that Google Chrome (unfortunately) no longer supports the most famous commercial RHEL 6.x distribution – RHEL 7 and its free clones, such as CentOS and Scientific Linux.
Below we will see how you can install Google Chrome on the CentOS 7 distribution:
First, we will use a script written by Richard Lloyd. The script will download and install the latest version of Google's browser, while also selecting and installing the required libraries in /opt/google/chrome/lib.
Open the terminal and run the following commands (3) as root:
wget https://chrome.richardlloyd.org.uk/install_chrome.sh
chmod u+x install_chrome.sh
./install_chrome.sh
That was….
To run the browser, type the command in a new terminal (as a regular user)
Google Chrome
To upgrade Google Chrome, run one of the following commands:
yum update google-chrome-stable
or
./install_chrome.sh
To uninstall Chrome, run the command
yum remove google-chrome-stable
or
./install_chrome.sh -u
Bonus Tip:
In case you see the following error when trying to run the browser,
run the following command via terminal as root
chmod 777 /dev/shm
____________________
Update:
To keep permissions at 777 and avoid having to constantly run the last command to open Chrome, do the following:
nano /etc/rc.local
Add the above command
chmod 777 /dev/shm
Press CTRL+X together, then Y and Enter to save.
Finally, run the following command:
chmod +x /etc/rc.d/rc.local

