Unable to install Google Chrome on Linux
Hi All,
I am trying to install Google chrome using the command
yum install google-chrome-stable
But getting this error messge that some packages could not be downloaded, please advise.
Error downloading packages:
libXScrnSaver-1.2.2-6.1.el7.x86_64: [Errno 256] No more mirrors to try.
redhat-lsb-core-4.1-27.el7.x86_64: [Errno 256] No more mirrors to try.
spax-1.5.2-13.el7.x86_64: [Errno 256] No more mirrors to try.
redhat-lsb-submod-security-4.1-27.el7.x86_64: [Errno 256] No more mirrors to try.
Linux version 7.2
Responses
Hi Jack,
As I don't know anything about your system setup, this is what you generally should enable :
sudo subscription-manager repos --enable rhel-7-server-extras-rpmssudo subscription-manager repos --enable rhel-7-server-optional-rpms
(replace "server" with "desktop" or "workstation" when you are using one of those editions)
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Now add the Google Chrome repository : sudo nano /etc/yum.repos.d/google-chrome.repo
Paste the following text into the empty file and press Ctrl + X and then Y and Enter to save that file.
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
Execute sudo yum clean all | sudo rm -r /var/cache/yum | sudo yum update
Now install Google Chrome by executing sudo yum install google-chrome-stable
Regards,
Christian
I found that doing the following will work for installing Chrome on Red Hat:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpmthe third and final command is: yum -y localinstall google-chrome-stable_current_x86_64.rpm
Hi GD,
Thanks for sharing this alternative way to install Google Chrome - well, let me add some additional information ... :)yum install instead of yum localinstall works as well and the installation includes the creation of the repo.yum -y install redhat-lsb libXScrnSaver shouldn't be necessary, because the dependencies are pulled in automatically once you invoke the install command.
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
