Install Google Chrome with Yum on AlmaLinux, Rocky, RHEL
In this article
This guide walks you through installing Google Chrome on AlmaLinux, Rocky Linux, or RHEL using the yum package manager. You'll add the official Google repository, install the browser, and verify it works. Before starting, ensure you have sudo or root access, an internet connection, and a terminal open.
What You'll Need
- A system running AlmaLinux, Rocky Linux, or RHEL (version 8 or 9 recommended).
- Root or sudo privileges.
- Internet connectivity to download the repository and package.
- A terminal emulator (e.g., GNOME Terminal, Konsole).
Step-by-Step
- Open a terminal on your Linux system. You can usually find it in the applications menu or use a keyboard shortcut like
Ctrl+Alt+T. - Update your system packages (optional but recommended) to ensure no conflicts:
sudo yum update -y - Add the Google Chrome repository. Create a new .repo file in the yum repos directory:
(You can use any text editor like vim or vi.)sudo nano /etc/yum.repos.d/google-chrome.repo - Paste the following content into the file:
Save and exit (in nano:[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.pubCtrl+O, thenCtrl+X). - Verify the repository is recognized by yum:
You should seeyum repolistgoogle-chromelisted. - Install Google Chrome using yum:
This will download and install the stable version of Chrome. If you prefer the beta or dev channel, replacesudo yum install google-chrome-stable -ygoogle-chrome-stablewithgoogle-chrome-betaorgoogle-chrome-unstable. - Verify the installation by checking the version:
You should see output likegoogle-chrome --versionGoogle Chrome 126.0.6478.126(version numbers vary). - Launch Chrome from the terminal or application menu:
If you're on a desktop environment, you can also find Chrome in the applications list.google-chrome
Common Mistakes
- Using the wrong baseurl: The repository URL must be exactly
http://dl.google.com/linux/chrome/rpm/stable/x86_64. Some tutorials use a different path that doesn't work on RHEL-based systems. - Missing the GPG key: If you omit the
gpgkeyline, yum will fail to verify the package signature and refuse to install. - Typing the package name wrong: The package is
google-chrome-stable, notgoogle-chromeorchrome. - Forgetting to enable the repository: If you set
enabled=0in the .repo file, yum won't see the package. - Using sudo with the wrong user: Ensure you're running the commands as a user with sudo privileges, not as root unless you're sure.
Tips
- If you encounter SSL certificate errors during the update, try using
https://instead ofhttp://in the baseurl. - You can install the beta or dev channel by changing the package name in the install command (e.g.,
google-chrome-beta). - To keep Chrome updated automatically, the repository will provide updates via
yum updatejust like other packages. - If you don't want the repository to be enabled permanently, you can set
enabled=0and useyum --enablerepo=google-chrome install google-chrome-stableinstead. - For headless servers, you can still install Chrome but you'll need additional libraries for GUI features; the basic install works for most cases.
Troubleshooting
- “No package google-chrome-stable available”: This usually means the repository isn't loaded correctly. Check your .repo file for typos, run
sudo yum clean allandsudo yum makecache, then try again. - GPG key import failure: If yum prompts to import the key and you accept, but it still fails, manually import the key with:
sudo rpm --import https://dl.google.com/linux/linux_signing_key.pub - Dependency errors: If yum reports missing dependencies like
libnss3.so, install them with:
Or runsudo yum install nss -ysudo yum install -y google-chrome-stable --setopt=skip_missing_names_on_install=Trueas a temporary workaround (but better to install the missing libs). - Chrome won't launch: If you're on a minimal system without a GUI, Chrome won't start. Install a desktop environment or use
google-chrome --headlessfor testing. Also check that you have all required fonts:sudo yum install liberation-fonts -y. - Repository metadata errors: If you see “Failed to download metadata for repo 'google-chrome'”, try switching the baseurl to
https://and ensure your system's CA certificates are up to date:sudo yum update ca-certificates -y.
Frequently Asked Questions
Can I install Chrome on RHEL 7?
Yes, but the repository only provides x86_64 builds. RHEL 7 is supported, but you may need to enable the EPEL repository for some dependencies. The steps are the same.
Is there a difference between installing via yum and downloading the RPM directly?
Using yum with the repository is preferred because it allows automatic updates. Downloading the RPM directly from Google's website works too, but you'll have to manually update Chrome later.
How do I uninstall Chrome?
Run sudo yum remove google-chrome-stable and optionally remove the repository file with sudo rm /etc/yum.repos.d/google-chrome.repo.
Does this work on Fedora?
Yes, the same steps work on Fedora, but Fedora uses DNF by default. You can still use yum as an alias, but it's recommended to use dnf instead.
Why do I get a “Failed to start” error when launching Chrome?
This often happens due to missing system libraries or sandbox issues. Try running google-chrome --no-sandbox to test, but note that this is insecure for regular use. Ensure your system is fully updated and all dependencies are installed.
Can I install Chrome on an ARM-based system?
No, the Google repository only provides x86_64 packages. For ARM, you'd need to use the .deb package and convert it or use a third-party build, but that's not officially supported.