In todayโs digital age, web browsers have become essential for everyday computing. Google Chrome is one of the most popular and widely used web browsers, known for its speed, security, and user-friendly interface.
However, installing Chrome on an RHEL-based system like AlmaLinux or Rocky Linux can be tricky for those new to the operating system. Why? Because it is not an open-source browser and is usually unavailable for installation from the official distroโs repositories.
This is also true for AlmaLinux and Rocky Linux. So, if you have either distribution installed, you will not find the Google Chrome browser in their official repositories.
Fortunately, there is a quick and straightforward way to enjoy the latest features and functionality of Google Chrome on your RHEL-based system in no time. In this tutorial, I will guide you through installing Google Chrome on AlmaLinux and Rocky Linux. So, without further ado, letโs get to work.
Install Google Chrome on AlmaLinux / Rocky Linux
The tutorial will use the sudo command and assume you have sudo privileges.
Step 1: Download and Import Google’s GPG Key
To ensure that the packages we receive to install the Chrome browser are genuine, first, we should download and import the Google signed GPG key on our AlmaLinux / Rocky Linux system.
To do so, type the following commands:
wget https://dl.google.com/linux/linux_signing_key.pub
sudo rpm --import linux_signing_key.pub
Code language: JavaScript (javascript)
However, if you are using AlmaLinux 9 or Roky Linux 9, you will get the “error: linux_signing_key.pub: key 2 import failed” error message when you try to import the GPG key:
This error is because SHA1 has been depreciated on all RHEL 9 derivatives, which is what the GPG key is signed with. You can learn more about it here.
Fortunately, there is a quick and easy way to deal with the problem. Run the three commands below in the order they are given.
sudo update-crypto-policies --set DEFAULT:SHA1
sudo rpm --import linux_signing_key.pub
sudo update-crypto-policies --set DEFAULT
Code language: JavaScript (javascript)
You should already have successfully imported a GPG key. But what do these commands do? In short, they temporarily enable the unsecure SHA1 GPG key checks, import the signing key, and disable it again. Now, letโs move on to the next step.
Step 2: Download the Google Chrome RPM Installation Package
After importing the GPG key, we’ll need to download the Chrome browser installation package for our AlmaLinux / Rocky Linux system. Of course, this must be an RPM file.
We’ll use the wget
command once more to get the file we need:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Code language: JavaScript (javascript)
Step 3: Install Google Chrome on AlmaLinux / Rocky Linux
Now that we have the installation file, all that is left is to install the Google Chrome browser on our AlmaLinux / Rocky Linux system. So, run the following command:
sudo dnf localinstall google-chrome-stable_current_x86_64.rpm
Code language: CSS (css)
When prompted, enter “Y” to confirm that you want to install it and hit “Enter.”
Thatโs all. The Google Chrome browser is installed and ready for use on your AlmaLinux / Rocky Linux system.
Furthermore, the official Google Chrome repository is automatically added to your systemโs repositories. So, when a new browser version is released, the update package will be made available with the rest of your systemโs regular updates.
You may quickly and easily check the list of available repositories by running the command below.
sudo dnf repolist
As you can see, the Google Chrome repository is available on our ALmaLinux / Rocky Linux system.
Step 4: Running Google Chrome on AlmaLinux / Rocky Linux
Finally, you can launch the Google Chrome browser from the GNOME Activities menu and enjoy fast and safe web browsing.
The following pop-up will appear the first time you run Google Chrome. Make your choices and click the OK
button to confirm.
Google Chrome browser will launch.
Of course, you can now safely delete the previously two downloaded files as we no longer need them.
rm linux_signing_key.pub google-chrome-stable_current_x86_64.rpm
Code language: CSS (css)
Conclusion
Installing Google Chrome on your AlmaLinux or Rocky Linux system may seem daunting, but with our step-by-step guide, itโs a breeze. Installing it lets you enjoy the latest features and enhancements and have a faster, more secure browsing experience.
I hope this guide has been helpful and that you feel confident installing Google Chrome on your AlmaLinux or Rocky Linux system. If you have any questions or comments, please leave them below. Happy browsing!