User Agents

Web browsers and everyday web tech, explained

Install Google Chrome with Yum on AlmaLinux, Rocky, RHEL

· 4 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

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

  1. 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.
  2. Update your system packages (optional but recommended) to ensure no conflicts:
    sudo yum update -y
  3. Add the Google Chrome repository. Create a new .repo file in the yum repos directory:
    sudo nano /etc/yum.repos.d/google-chrome.repo
    (You can use any text editor like vim or vi.)
  4. Paste the following content into the 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
    Save and exit (in nano: Ctrl+O, then Ctrl+X).
  5. Verify the repository is recognized by yum:
    yum repolist
    You should see google-chrome listed.
  6. Install Google Chrome using yum:
    sudo yum install google-chrome-stable -y
    This will download and install the stable version of Chrome. If you prefer the beta or dev channel, replace google-chrome-stable with google-chrome-beta or google-chrome-unstable.
  7. Verify the installation by checking the version:
    google-chrome --version
    You should see output like Google Chrome 126.0.6478.126 (version numbers vary).
  8. Launch Chrome from the terminal or application menu:
    google-chrome
    If you're on a desktop environment, you can also find Chrome in the applications list.

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 gpgkey line, yum will fail to verify the package signature and refuse to install.
  • Typing the package name wrong: The package is google-chrome-stable, not google-chrome or chrome.
  • Forgetting to enable the repository: If you set enabled=0 in 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 of http:// 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 update just like other packages.
  • If you don't want the repository to be enabled permanently, you can set enabled=0 and use yum --enablerepo=google-chrome install google-chrome-stable instead.
  • 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 all and sudo 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:
    sudo yum install nss -y
    Or run sudo yum install -y google-chrome-stable --setopt=skip_missing_names_on_install=True as 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 --headless for 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.