How to Install Google Chrome on AlmaLinux / Rocky Linux

Want to install Google Chrome on AlmaLinux or Rocky Linux? Our guide shows how to install it on your RHEL-based Linux system easily.

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.pubCode language: JavaScript (javascript)
Download and Import Google’s GPG Key
Download and Import Google’s GPG Key

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:

GPG key import error.
GPG key import error.

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 DEFAULTCode 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.rpmCode language: JavaScript (javascript)
Download the Google Chrome Linux installation package.
Download the Google Chrome Linux installation package.

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.rpmCode language: CSS (css)

When prompted, enter “Y” to confirm that you want to install it and hit “Enter.”

Installing Google Chrome web browser on AlmaLinux / Rocky Linux
Installing Google Chrome web browser on AlmaLinux / Rocky Linux

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
Listing software repositories.
Listing software repositories.

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.

Launching Google Chrome.
Launching Google Chrome.

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 initial settings.
Google Chrome initial settings.

Google Chrome browser will launch.

Google Chrome running on AlmaLinux / Rocky Linux.
Google Chrome web browser running on AlmaLinux / Rocky Linux.

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.rpmCode 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!

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%